-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Øyvind Harboe <[email protected]>
- Loading branch information
Showing
3 changed files
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
source $::env(SCRIPTS_DIR)/load.tcl | ||
load_design 4_cts.odb 4_cts.sdc | ||
source $::env(SCRIPTS_DIR)/open.tcl | ||
|
||
set paths [find_timing_paths -path_group reg2reg -sort_by_slack -group_count 1000000] | ||
|
||
set db [::ord::get_db] | ||
set block [[$db getChip] getBlock] | ||
|
||
# open file | ||
set fp [open $::env(OUTPUT) w] | ||
foreach path $paths { | ||
set endpoint [get_property $path endpoint] | ||
set instance [$endpoint instance] | ||
set instance [sta::sta_to_db_inst [$endpoint instance]] | ||
set port [sta::sta_to_db_port [$endpoint port]] | ||
set name [get_property $endpoint full_name] | ||
set slack [get_property $path slack] | ||
|
||
# If DFF is in the $name and it ends with /D | ||
if {[regexp {DFF} $name] && [regexp {/D$} $name]} { | ||
# remove the /D suffix | ||
set name [string range $name 0 end-2] | ||
# replace [ and ] with \[ and \] | ||
set name [string map { {[} {\[} {]} {\]} } $name] | ||
set b [$block findInst $name] | ||
set bbox [$b getBBox] | ||
puts $fp "$name $slack [$bbox xMin] [$bbox yMin]" | ||
set obj {NULL} | ||
if {$port!={NULL}} { | ||
set obj $port | ||
} elseif {$instance!={NULL}} { | ||
set obj $instance | ||
} else { | ||
puts "Nothing found for $name" | ||
continue | ||
} | ||
set slack [get_property $path slack] | ||
set skew [$path clk_skew] | ||
set bbox [$obj getBBox] | ||
puts $fp "$name $slack $skew [ord::dbu_to_microns [$bbox xMin]] [ord::dbu_to_microns [$bbox yMin]]" | ||
} | ||
close $fp |
2965bd3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: bazel is complaining:
2965bd3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.