Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions test/orfs/mock-array/load_power.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ foreach libFile $::env(LIB_FILES) {
}
}

proc check_log_for_warning {logfile} {
set f [open $logfile r]
set log_contents [read $f]
close $f
puts $log_contents
if { [regexp -nocase "Warning" $log_contents] } {
puts "ERROR: Warning found in $logfile"
exit 1
}
}

# $::env(VARIANT) contains 4x4_foo, fish out what comes before _
set name [lindex [split $::env(FLOW_VARIANT) "_"] 0]

Expand All @@ -15,12 +26,15 @@ log_cmd read_verilog $::env(PLATFORM_DIR)/verilog/stdcell/empty.v
log_cmd link_design MockArray

log_cmd read_sdc $::env(RESULTS_DIR)/$::env(POWER_STAGE_STEM).sdc
log_cmd read_spef $::env(RESULTS_DIR)/$::env(POWER_STAGE_STEM).spef
log_cmd read_spef $::env(RESULTS_DIR)/$::env(POWER_STAGE_STEM).spef > log.txt
check_log_for_warning log.txt

puts "read_spef for ces_*_* macros"
for { set x 0 } { $x < $::env(ARRAY_COLS) } { incr x } {
for { set y 0 } { $y < $::env(ARRAY_ROWS) } { incr y } {
log_cmd read_spef -path ces_${x}_${y} \
$::env(RESULTS_DIR)/../../Element/${name}_base/$::env(POWER_STAGE_STEM).spef
$::env(RESULTS_DIR)/../../Element/${name}_base/$::env(POWER_STAGE_STEM).spef > log.txt
check_log_for_warning log.txt
}
}

Expand Down
Loading