mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-30 17:27:16 +00:00
Add smoke tests to tests/xilinx
This commit is contained in:
parent
ca7a58bcc8
commit
757c476f62
30 changed files with 656 additions and 10 deletions
29
tests/xilinx/tribuf.v
Normal file
29
tests/xilinx/tribuf.v
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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