3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-07 06:44:18 +00:00
Brooklyn/arch/arm/mm/MUX_2_to_1.v
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

24 lines
368 B
Verilog

`include "settings.h"
module MUX_2_to_1
(
sel,
in1,
in2,
out
);
parameter WORD_WIDTH = `WORD_WIDTH;
input sel;
input [WORD_WIDTH-1:0] in1, in2;
output reg [WORD_WIDTH-1:0] out;
always@(sel or in1 or in2) begin
out = 0;
case(sel)
1'd0: out = in1;
1'd1: out = in2;
default: out = 0;
endcase
end
endmodule