Skip to content

Commit 333f46e

Browse files
committed
mock-array: use read_vcd
read_power_activities is deprecated report_power now uses a table instead of one call to report_power per element in the array, much easier on the eye, much less verbose Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 36e13b0 commit 333f46e

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)