go-board-code/demux_1_to_4.v

15 lines
337 B
Coq
Raw Normal View History

2024-07-06 18:51:29 +00:00
module Demux_1_to_4(
input i_Data,
input i_Sel0,
input i_Sel1,
output o_Data0,
output o_Data1,
output o_Data2,
output o_Data3
);
assign o_Data0 = i_Data & !i_Sel0 & !i_Sel1;
assign o_Data1 = i_Data & i_Sel0 & !i_Sel1;
assign o_Data2 = i_Data & !i_Sel0 & i_Sel1;
assign o_Data3 = i_Data & i_Sel0 & i_Sel1;
endmodule