3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-09-05 01:27:43 +00:00

Cleaned tests

This commit is contained in:
Miodrag Milanovic 2019-10-04 12:42:06 +02:00
parent f94dc2c072
commit 286a272872
5 changed files with 4 additions and 49 deletions

View file

@ -2,28 +2,7 @@ module tristate (en, i, o);
input en;
input i;
output reg o;
`ifndef BUG
always @(en or i)
o <= (en)? i : 1'bZ;
`else
always @(en or i)
o <= (en)? ~i : 1'bZ;
`endif
endmodule
module top (
input en,
input a,
output b
);
tristate u_tri (
.en (en ),
.i (a ),
.o (b )
);
endmodule