mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-02 04:27:53 +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
22
tests/xilinx_ug901/bytewrite_tdp_ram_nc.ys
Normal file
22
tests/xilinx_ug901/bytewrite_tdp_ram_nc.ys
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
read_verilog bytewrite_tdp_ram_nc.v
|
||||
hierarchy -top bytewrite_tdp_ram_nc
|
||||
proc
|
||||
memory -nomap
|
||||
equiv_opt -run :prove -map +/xilinx/cells_sim.v synth_xilinx
|
||||
memory
|
||||
opt -full
|
||||
|
||||
# TODO
|
||||
#equiv_opt -run prove: -assert null
|
||||
miter -equiv -flatten -make_assert -make_outputs gold gate miter
|
||||
#sat -verify -prove-asserts -tempinduct -show-inputs -show-outputs miter
|
||||
|
||||
design -load postopt
|
||||
cd bytewrite_tdp_ram_nc
|
||||
stat
|
||||
#Vivado synthesizes 1 RAMB36E1.
|
||||
select -assert-count 1 t:$mem
|
||||
select -assert-count 8 t:LUT2
|
||||
select -assert-count 64 t:LUT3
|
||||
select -assert-count 2 t:LUT5
|
||||
select -assert-none t:LUT2 t:LUT3 t:LUT5 t:$mem %% t:* %D
|
||||
Loading…
Add table
Add a link
Reference in a new issue