-
Notifications
You must be signed in to change notification settings - Fork 5
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
35 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
source $::env(SCRIPTS_DIR)/load.tcl | ||
load_design 2_floorplan.odb 2_floorplan.sdc | ||
|
||
set macros [find_macros] | ||
if {[llength $macros] != 1} { | ||
puts "Expected exactly one macro, but found [llength $macros]" | ||
exit 1 | ||
} | ||
|
||
set tag_array_64x184 [lindex [find_macros] 0] | ||
set bbox [$tag_array_64x184 getBBox] | ||
set width [ord::dbu_to_microns [$bbox getDX]] | ||
set height [ord::dbu_to_microns [$bbox getDY]] | ||
|
||
proc expect {value a b} { | ||
if {$a != $b} { | ||
puts "Expected $value $a == $b" | ||
exit 1 | ||
} | ||
} | ||
expect Width $width 29.105 | ||
expect Height $height 56.61 | ||
|
||
exec touch $::env(WORK_HOME)/area_ok.txt |