2019-04-19 13:23:09 -05:00
|
|
|
read_verilog pmux2shiftx.v
|
|
|
|
prep
|
|
|
|
design -save gold
|
|
|
|
|
2019-04-19 19:03:44 -05:00
|
|
|
pmux2shiftx -min_density 70
|
2019-04-19 16:37:11 -05:00
|
|
|
|
2019-04-19 13:23:09 -05:00
|
|
|
opt
|
2019-04-19 16:37:11 -05:00
|
|
|
|
|
|
|
stat
|
2019-04-19 13:23:09 -05:00
|
|
|
# show -width
|
|
|
|
select -assert-count 1 t:$sub
|
2019-04-19 16:37:11 -05:00
|
|
|
select -assert-count 2 t:$mux
|
|
|
|
select -assert-count 2 t:$shift
|
|
|
|
select -assert-count 3 t:$shiftx
|
|
|
|
|
2019-04-19 13:23:09 -05:00
|
|
|
design -stash gate
|
|
|
|
|
|
|
|
design -import gold -as gold
|
|
|
|
design -import gate -as gate
|
|
|
|
|
|
|
|
miter -equiv -flatten -make_assert -make_outputs gold gate miter
|
|
|
|
sat -verify -prove-asserts -show-ports miter
|
|
|
|
|
|
|
|
design -load gold
|
|
|
|
stat
|
|
|
|
|
|
|
|
design -load gate
|
|
|
|
stat
|