Skip to content

Commit 41375a5

Browse files
author
cwalter
committed
create testcase to check correct addition of areas.
1 parent 01d80c7 commit 41375a5

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

tests/various/stat.ys

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,35 @@ stat -liberty ../../tests/liberty/foundry_data/sg13g2_stdcell_typ_1p20V_25C.lib.
1515

1616

1717
design -reset
18-
read_rtlil <<EOT
18+
read_rtlil << EOT
1919
module \top
2020
wire input 1 \A
2121
wire output 2 \Y
22-
wire output 3 \NY
22+
wire output 3 \N
23+
24+
cell \sg13g2_and2_1 \sub1
25+
connect \A \A
26+
connect \B 1'0
27+
connect \Y \Y
28+
end
29+
2330
cell \child \sequential
2431
connect \A \A
2532
connect \B 1'0
2633
connect \R 1'0
2734
connect \Y \Y
28-
connect \NY \NY
35+
connect \N \N
2936
end
3037

31-
cell \sg13g2_and2_1 \sub
38+
cell \child \sequential1
39+
connect \A \A
40+
connect \B 1'0
41+
connect \R 1'0
42+
connect \Y \Y
43+
connect \N \N
44+
end
45+
46+
cell \sg13g2_and2_1 \sub2
3247
connect \A \A
3348
connect \B 1'0
3449
connect \Y \Y
@@ -41,19 +56,19 @@ module \child
4156
wire input 3 \R
4257

4358
wire output 4 \Y
44-
wire output 5 \NY
45-
cell \sg13g2_dfrbp_1
59+
wire output 5 \N
60+
61+
cell \sg13g2_dfrbp_1 \sequential_ff
4662
connect \CLK \A
4763
connect \D \B
4864
connect \Q \Y
49-
connect \Q_N \NY
65+
connect \Q_N \N
5066
connect \RESET_B \R
5167
end
5268

53-
5469
end
5570
EOT
56-
logger -expect log "Chip area for module '\\top': 63.504000" 1
57-
logger -expect log "of which used for sequential elements: 54.432000 (85.71%) " 1
71+
logger -expect log "Chip area for top module '\\top': 112.492800" 1
72+
logger -expect log "of which used for sequential elements: 94.348800" 1
5873
logger -expect-no-warnings
59-
stat -liberty ../../tests/liberty/foundry_data/sg13g2_stdcell_typ_1p20V_25C.lib.filtered.gz
74+
stat -liberty ../../tests/liberty/foundry_data/sg13g2_stdcell_typ_1p20V_25C.lib.filtered.gz -top \top

0 commit comments

Comments
 (0)