nand2/01_Boolean_Logic/DMux4Way.v

22 lines
368 B
Coq
Raw Normal View History

2023-01-11 10:13:09 +00:00
/**
* 4-way demultiplexor:
* {a, b, c, d} = {in, 0, 0, 0} if sel == 00
* {0, in, 0, 0} if sel == 01
* {0, 0, in, 0} if sel == 10
* {0, 0, 0, in} if sel == 11
*/
`default_nettype none
module DMux4Way(
input in,
input [1:0] sel,
output a,
output b,
output c,
output d
);
// Put your code here:
endmodule