mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-01 12:07:51 +00:00
Add tests for Xilinx UG901 examples
This commit is contained in:
parent
0d037bf9d8
commit
2ae7dec530
89 changed files with 2962 additions and 0 deletions
13
tests/xilinx_ug901/tristates_1.ys
Normal file
13
tests/xilinx_ug901/tristates_1.ys
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
read_verilog tristates_1.v
|
||||
hierarchy -top tristates_1
|
||||
proc
|
||||
tribuf
|
||||
flatten
|
||||
synth
|
||||
equiv_opt -assert -map +/xilinx/cells_sim.v -map +/simcells.v synth_xilinx # equivalency check
|
||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||
cd tristates_1 # Constrain all select calls below inside the top module
|
||||
#Vivado synthesizes 3 IBUF, 1 OBUFT.
|
||||
select -assert-count 1 t:LUT1
|
||||
select -assert-count 1 t:$_TBUF_
|
||||
select -assert-none t:LUT1 t:$_TBUF_ %% t:* %D
|
||||
Loading…
Add table
Add a link
Reference in a new issue