mirror of https://github.com/YosysHQ/yosys.git
9 lines
133 B
Coq
9 lines
133 B
Coq
|
module tristate (en, i, o);
|
||
|
input en;
|
||
|
input i;
|
||
|
output reg o;
|
||
|
|
||
|
always @(en or i)
|
||
|
o <= (en)? i : 1'bZ;
|
||
|
endmodule
|