Skip to content

Commit bdecdd0

Browse files
authored
Merge pull request #2648 from Pinata-Consulting/mock-array-prettier-output
mock-array: use read_vcd
2 parents 279d9c7 + 333f46e commit bdecdd0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

flow/designs/asap7/mock-array/power.tcl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@ for {set x 0} {$x < 8} {incr x} {
2020

2121
report_parasitic_annotation
2222
report_power
23-
read_power_activities -scope TOP/MockArray -vcd $::env(RESULTS_DIR)/MockArrayTestbench.vcd
24-
report_power
25-
26-
# FIXME add an automated test to check that the top-level power is
27-
# smaller than the sum of the individual elements.
23+
read_vcd -scope TOP/MockArray $::env(RESULTS_DIR)/MockArrayTestbench.vcd
2824

25+
set ces {}
2926
for {set x 0} {$x < 8} {incr x} {
3027
for {set y 0} {$y < 8} {incr y} {
31-
puts "Power for ces_${x}_${y}"
32-
report_power -instances ces_${x}_${y}
28+
lappend ces ces_${x}_${y}
3329
}
3430
}
31+
32+
report_power -instances [get_cells $ces]
33+
report_power

0 commit comments

Comments
 (0)