mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 17:56:53 +08:00
22 lines
397 B
Verilog
22 lines
397 B
Verilog
//-----------------------------------------------------------------------------
|
|
// Two way MUX.
|
|
//
|
|
// kombi, 2020.05
|
|
//-----------------------------------------------------------------------------
|
|
|
|
module mux2_oneout(
|
|
input [1:0] sel,
|
|
input y,
|
|
output reg x0,
|
|
output reg x1
|
|
);
|
|
|
|
always @(*)
|
|
begin
|
|
case (sel)
|
|
1'b0: x1 = y;
|
|
1'b1: x0 = y;
|
|
endcase
|
|
end
|
|
|
|
endmodule
|