proxmark3/fpga/mux2_oneout.v

23 lines
397 B
Coq
Raw Normal View History

2021-08-22 05:43:06 +08:00
//-----------------------------------------------------------------------------
// Two way MUX.
//
// kombi, 2020.05
//-----------------------------------------------------------------------------
2023-05-31 01:47:27 +08:00
module mux2_oneout(
input [1:0] sel,
input y,
output reg x0,
output reg x1
);
2021-08-22 05:43:06 +08:00
2023-05-31 01:47:27 +08:00
always @(*)
2021-08-22 05:43:06 +08:00
begin
case (sel)
1'b0: x1 = y;
1'b1: x0 = y;
endcase
end
endmodule