mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-01 07:40: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
21
tests/xilinx_ug901/bytewrite_tdp_ram_readfirst2.ys
Normal file
21
tests/xilinx_ug901/bytewrite_tdp_ram_readfirst2.ys
Normal file
|
@ -0,0 +1,21 @@
|
|||
read_verilog bytewrite_tdp_ram_readfirst2.v
|
||||
hierarchy -top bytewrite_tdp_ram_readfirst2
|
||||
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_readfirst2
|
||||
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-none t:LUT2 t:LUT3 t:$mem %% t:* %D
|
Loading…
Add table
Add a link
Reference in a new issue