Skip to content

Commit

Permalink
Merge pull request #2648 from Pinata-Consulting/mock-array-prettier-o…
Browse files Browse the repository at this point in the history
…utput

mock-array: use read_vcd
  • Loading branch information
maliberty authored Jan 2, 2025
2 parents 279d9c7 + 333f46e commit bdecdd0
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions flow/designs/asap7/mock-array/power.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ for {set x 0} {$x < 8} {incr x} {

report_parasitic_annotation
report_power
read_power_activities -scope TOP/MockArray -vcd $::env(RESULTS_DIR)/MockArrayTestbench.vcd
report_power

# FIXME add an automated test to check that the top-level power is
# smaller than the sum of the individual elements.
read_vcd -scope TOP/MockArray $::env(RESULTS_DIR)/MockArrayTestbench.vcd

set ces {}
for {set x 0} {$x < 8} {incr x} {
for {set y 0} {$y < 8} {incr y} {
puts "Power for ces_${x}_${y}"
report_power -instances ces_${x}_${y}
lappend ces ces_${x}_${y}
}
}

report_power -instances [get_cells $ces]
report_power

0 comments on commit bdecdd0

Please sign in to comment.