mirror of https://github.com/YosysHQ/yosys.git
wrapcell: Test `check -assert` post wrapping
This commit is contained in:
parent
3cd01a57cd
commit
48c8d70a45
|
@ -18,6 +18,7 @@ EOF
|
||||||
|
|
||||||
wreduce
|
wreduce
|
||||||
wrapcell -setattr foo -formatattr bar w{Y_WIDTH} -name OR_{A_WIDTH}_{B_WIDTH}_{Y_WIDTH}
|
wrapcell -setattr foo -formatattr bar w{Y_WIDTH} -name OR_{A_WIDTH}_{B_WIDTH}_{Y_WIDTH}
|
||||||
|
check -assert
|
||||||
select -assert-count 2 top/t:OR_2_3_3
|
select -assert-count 2 top/t:OR_2_3_3
|
||||||
select -assert-count 1 top/t:OR_3_4_4
|
select -assert-count 1 top/t:OR_3_4_4
|
||||||
select -assert-none top/t:OR_2_3_3 top/t:OR_3_4_4 %% top/t:* %D
|
select -assert-none top/t:OR_2_3_3 top/t:OR_3_4_4 %% top/t:* %D
|
||||||
|
@ -47,6 +48,7 @@ EOF
|
||||||
opt_clean
|
opt_clean
|
||||||
wreduce
|
wreduce
|
||||||
wrapcell -setattr foo -formatattr bar w{Y_WIDTH} -name OR_{A_WIDTH}_{B_WIDTH}_{Y_WIDTH}{%unused}
|
wrapcell -setattr foo -formatattr bar w{Y_WIDTH} -name OR_{A_WIDTH}_{B_WIDTH}_{Y_WIDTH}{%unused}
|
||||||
|
check -assert
|
||||||
select -assert-count 1 top/t:OR_2_3_3
|
select -assert-count 1 top/t:OR_2_3_3
|
||||||
select -assert-count 1 top/t:OR_2_3_3_unused_Y[1]
|
select -assert-count 1 top/t:OR_2_3_3_unused_Y[1]
|
||||||
select -assert-count 1 top/t:OR_3_4_4
|
select -assert-count 1 top/t:OR_3_4_4
|
||||||
|
|
Loading…
Reference in New Issue