2020-04-20 12:45:35 -05:00
|
|
|
### Original testcase ###
|
|
|
|
read_verilog ./dynamic_part_select/original.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gold
|
|
|
|
design -stash gold
|
|
|
|
|
|
|
|
read_verilog ./dynamic_part_select/original_gate.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gate
|
|
|
|
design -stash gate
|
|
|
|
|
|
|
|
design -copy-from gold -as gold gold
|
|
|
|
design -copy-from gate -as gate gate
|
|
|
|
|
|
|
|
miter -equiv -make_assert -make_outcmp -flatten gold gate equiv
|
2020-04-20 13:58:23 -05:00
|
|
|
sat -prove-asserts -seq 10 -show-public -verify -set-init-zero equiv
|
2020-04-20 12:45:35 -05:00
|
|
|
|
|
|
|
### Multiple blocking assingments ###
|
2020-04-20 13:54:10 -05:00
|
|
|
design -reset
|
2020-04-20 12:45:35 -05:00
|
|
|
read_verilog ./dynamic_part_select/multiple_blocking.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gold
|
|
|
|
design -stash gold
|
|
|
|
|
|
|
|
read_verilog ./dynamic_part_select/multiple_blocking_gate.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gate
|
|
|
|
design -stash gate
|
|
|
|
|
|
|
|
design -copy-from gold -as gold gold
|
|
|
|
design -copy-from gate -as gate gate
|
|
|
|
|
|
|
|
miter -equiv -make_assert -make_outcmp -flatten gold gate equiv
|
2020-04-20 13:58:23 -05:00
|
|
|
sat -prove-asserts -seq 10 -show-public -verify -set-init-zero equiv
|
2020-04-20 12:45:35 -05:00
|
|
|
|
|
|
|
### Non-blocking to the same output register ###
|
2020-04-20 13:54:10 -05:00
|
|
|
design -reset
|
2020-04-20 12:45:35 -05:00
|
|
|
read_verilog ./dynamic_part_select/nonblocking.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gold
|
|
|
|
design -stash gold
|
|
|
|
|
|
|
|
read_verilog ./dynamic_part_select/nonblocking_gate.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gate
|
|
|
|
design -stash gate
|
|
|
|
|
|
|
|
design -copy-from gold -as gold gold
|
|
|
|
design -copy-from gate -as gate gate
|
|
|
|
|
|
|
|
miter -equiv -make_assert -make_outcmp -flatten gold gate equiv
|
2020-04-20 13:58:23 -05:00
|
|
|
sat -prove-asserts -seq 10 -show-public -verify -set-init-zero equiv
|
2020-04-20 12:45:35 -05:00
|
|
|
|
|
|
|
### For-loop select, one dynamic input
|
2020-04-20 13:54:10 -05:00
|
|
|
design -reset
|
2020-04-20 12:45:35 -05:00
|
|
|
read_verilog ./dynamic_part_select/forloop_select.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gold
|
|
|
|
design -stash gold
|
|
|
|
|
|
|
|
read_verilog ./dynamic_part_select/forloop_select_gate.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gate
|
|
|
|
design -stash gate
|
|
|
|
|
|
|
|
design -copy-from gold -as gold gold
|
|
|
|
design -copy-from gate -as gate gate
|
|
|
|
|
|
|
|
miter -equiv -make_assert -make_outcmp -flatten gold gate equiv
|
2020-04-20 13:58:23 -05:00
|
|
|
sat -prove-asserts -seq 10 -show-public -verify -set-init-zero equiv
|
2020-04-20 12:45:35 -05:00
|
|
|
|
|
|
|
#### Double loop (part-select, reset) ###
|
2020-04-20 13:54:10 -05:00
|
|
|
design -reset
|
2020-04-20 12:45:35 -05:00
|
|
|
read_verilog ./dynamic_part_select/reset_test.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gold
|
|
|
|
design -stash gold
|
|
|
|
|
|
|
|
read_verilog ./dynamic_part_select/reset_test_gate.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gate
|
|
|
|
design -stash gate
|
|
|
|
|
|
|
|
design -copy-from gold -as gold gold
|
|
|
|
design -copy-from gate -as gate gate
|
|
|
|
|
|
|
|
miter -equiv -make_assert -make_outcmp -flatten gold gate equiv
|
2020-04-20 13:58:23 -05:00
|
|
|
sat -prove-asserts -seq 10 -show-public -verify -set-init-zero equiv
|
2020-04-20 12:45:35 -05:00
|
|
|
|
|
|
|
### Reversed part-select case ###
|
2020-04-20 13:54:10 -05:00
|
|
|
design -reset
|
2020-04-20 12:45:35 -05:00
|
|
|
read_verilog ./dynamic_part_select/reversed.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gold
|
|
|
|
design -stash gold
|
|
|
|
|
|
|
|
read_verilog ./dynamic_part_select/reversed_gate.v
|
2020-04-20 13:54:10 -05:00
|
|
|
proc
|
2020-04-20 12:45:35 -05:00
|
|
|
rename -top gate
|
|
|
|
design -stash gate
|
|
|
|
|
|
|
|
design -copy-from gold -as gold gold
|
|
|
|
design -copy-from gate -as gate gate
|
|
|
|
|
|
|
|
miter -equiv -make_assert -make_outcmp -flatten gold gate equiv
|
2020-04-20 13:58:23 -05:00
|
|
|
sat -prove-asserts -seq 10 -show-public -verify -set-init-zero equiv
|