mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-05 01:27:43 +00:00
Cleaned tests
This commit is contained in:
parent
f94dc2c072
commit
286a272872
5 changed files with 4 additions and 49 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue