summaryrefslogtreecommitdiff
path: root/tests/various/pmux2shiftx.ys
blob: 51ee2f7be975b9b34362cbbc7f53b17efed3e53a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
read_verilog pmux2shiftx.v
design -save read

hierarchy -top pmux2shiftx_test
prep
design -save gold

pmux2shiftx -min_density 70

opt

stat
# show -width
select -assert-count 1 t:$sub
select -assert-count 1 t:$mux
select -assert-count 1 t:$shift
select -assert-count 3 t:$shiftx

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

design -load read
hierarchy -top issue01135
proc
pmux2shiftx -norange
opt -full
select -assert-count 0 t:$shift*
select -assert-count 1 t:$pmux