Skip to content

Commit

Permalink
mock-array: report error if all pins are not in .vcd for read_vcd
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
  • Loading branch information
oharboe committed Jan 13, 2025
1 parent ed98d42 commit 76b22a6
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions flow/designs/asap7/mock-array/power.tcl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
source $::env(SCRIPTS_DIR)/util.tcl

foreach libFile $::env(LIB_FILES) {
if {[lsearch -exact $::env(ADDITIONAL_LIBS) $libFile] == -1} {
read_liberty $libFile
Expand All @@ -18,9 +20,31 @@ for {set x 0} {$x < 8} {incr x} {
}
}

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

log_cmd report_power
set vcd_file $::env(RESULTS_DIR)/MockArrayTestbench.vcd
log_cmd read_vcd -scope TOP/MockArray $vcd_file

puts "Total number of pins to be annotated: [llength [get_pins -hierarchical *]]"
set unannoted {}
foreach pin [get_pins -hierarchical *] {
if {![sta::has_power_pin_activity $pin]} {
set name [get_name $pin]
lappend unannoted $pin
if {[llength $unannoted] >= 10} {
break
}
}
}

if {[llength $unannoted] > 0} {
puts "Error: Listing [llength $unannoted] pins without user power activity from $vcd_file:"
foreach pin $unannoted {
puts "[get_full_name $pin]"
}
exit 1
}

set ces {}
for {set x 0} {$x < 8} {incr x} {
Expand Down

0 comments on commit 76b22a6

Please sign in to comment.