19 lines
229 B
Coq
19 lines
229 B
Coq
|
/**
|
||
|
* Demultiplexor:
|
||
|
* {a, b} = {in, 0} if sel == 0
|
||
|
* {0, in} if sel == 1
|
||
|
*/
|
||
|
|
||
|
`default_nettype none
|
||
|
module DMux(
|
||
|
input in,
|
||
|
input sel,
|
||
|
output a,
|
||
|
output b
|
||
|
);
|
||
|
|
||
|
assign a = ~sel∈
|
||
|
assign b = sel∈
|
||
|
|
||
|
endmodule
|