2019-08-21 13:52:07 -05:00
|
|
|
read_verilog memory.v
|
2019-08-22 17:50:45 -05:00
|
|
|
hierarchy -top top
|
|
|
|
proc
|
|
|
|
memory -nomap
|
|
|
|
equiv_opt -run :prove -map +/ice40/cells_sim.v synth_ice40
|
|
|
|
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
|
2019-08-22 14:30:49 -05:00
|
|
|
cd top
|
2019-08-21 13:52:07 -05:00
|
|
|
select -assert-count 1 t:SB_RAM40_4K
|
2019-08-22 14:35:35 -05:00
|
|
|
select -assert-none t:SB_RAM40_4K %% t:* %D
|
2019-08-21 13:52:07 -05:00
|
|
|
write_verilog memory_synth.v
|