mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-04 09:07:42 +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/top_mux.ys
Normal file
13
tests/xilinx_ug901/top_mux.ys
Normal file
|
@ -0,0 +1,13 @@
|
|||
read_verilog top_mux.v
|
||||
hierarchy -top mux4
|
||||
proc
|
||||
flatten
|
||||
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
|
||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||
|
||||
cd mux4
|
||||
#Vivado synthesizes 2 LUT.
|
||||
stat
|
||||
select -assert-count 2 t:LUT6
|
||||
|
||||
select -assert-none t:LUT6 %% t:* %D
|
Loading…
Add table
Add a link
Reference in a new issue