data/full_repos/permissive/436253691/hardware/nios_sys/nios_system/synthesis/submodules/DEMUX_1_3.v
data/verilator_xmls/87f91ea0-aead-4b9b-8fc7-896981e11f80.xml
module DEMUX_1_3 #(parameter INPUT_DATA_WIDTH =8)(


input [INPUT_DATA_WIDTH-1:0] DEMUX_Data_in,
input [1:0] DEMUX_selector,
input DEMUX_En,


output [INPUT_DATA_WIDTH-1:0] DEMUX_out0,
output [INPUT_DATA_WIDTH-1:0] DEMUX_out1,
output [INPUT_DATA_WIDTH-1:0] DEMUX_out2
);





localparam [INPUT_DATA_WIDTH-1:0] DATA0 = 0;





assign DEMUX_out0 = DEMUX_En == 1'b1 ? DEMUX_selector == 2'b00 ? DEMUX_Data_in : DATA0 : DATA0;
assign DEMUX_out1 = DEMUX_En == 1'b1 ? DEMUX_selector == 2'b01 ? DEMUX_Data_in : DATA0 : DATA0;
assign DEMUX_out2 = DEMUX_En == 1'b1 ? DEMUX_selector == 2'b10 ? DEMUX_Data_in : DATA0 : DATA0;

endmodule
module DEMUX_1_3 #(parameter INPUT_DATA_WIDTH =8)(


input [INPUT_DATA_WIDTH-1:0] DEMUX_Data_in,
input [1:0] DEMUX_selector,
input DEMUX_En,


output [INPUT_DATA_WIDTH-1:0] DEMUX_out0,
output [INPUT_DATA_WIDTH-1:0] DEMUX_out1,
output [INPUT_DATA_WIDTH-1:0] DEMUX_out2
);






localparam [INPUT_DATA_WIDTH-1:0] DATA0 = 0;





assign DEMUX_out0 = DEMUX_En == 1'b1 ? DEMUX_selector == 2'b00 ? DEMUX_Data_in : DATA0 : DATA0;
assign DEMUX_out1 = DEMUX_En == 1'b1 ? DEMUX_selector == 2'b01 ? DEMUX_Data_in : DATA0 : DATA0;
assign DEMUX_out2 = DEMUX_En == 1'b1 ? DEMUX_selector == 2'b10 ? DEMUX_Data_in : DATA0 : DATA0;

endmodule