yosys/tests/ice40/tribuf.v

24 lines
242 B
Coq
Raw Normal View History

2019-08-19 23:50:05 -05:00
module tristate (en, i, o);
input en;
input i;
2019-08-21 13:52:07 -05:00
output o;
assign o = en ? i : 1'bz;
2019-08-19 23:50:05 -05:00
endmodule
module top (
input en,
input a,
output b
);
tristate u_tri (
.en (en ),
.i (a ),
.o (b )
);
endmodule