3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-15 21:38:45 +00:00
yosys/tests/efinix/tribuf.v
Miodrag Milanovic 286a272872 Cleaned tests
2019-10-04 12:42:06 +02:00

9 lines
133 B
Verilog

module tristate (en, i, o);
input en;
input i;
output reg o;
always @(en or i)
o <= (en)? i : 1'bZ;
endmodule