You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
811 B
Tcl

if {![info exists standalone] || $standalone} {
# Read lef
read_lef $::env(TECH_LEF)
read_lef $::env(SC_LEF)
if {[info exist ::env(ADDITIONAL_LEFS)]} {
foreach lef $::env(ADDITIONAL_LEFS) {
read_lef $lef
}
}
# Read liberty files
foreach libFile $::env(LIB_FILES) {
read_liberty $libFile
}
# Read design files
read_def $::env(RESULTS_DIR)/2_1_floorplan.def
} else {
puts "Starting random IO placement"
}
if {![info exists ::env(FOOTPRINT)]} {
if {[info exists ::env(IO_CONSTRAINTS)]} {
source $::env(IO_CONSTRAINTS)
}
place_pins -hor_layer $::env(IO_PLACER_H) \
-ver_layer $::env(IO_PLACER_V) \
-random
}
if {![info exists standalone] || $standalone} {
# write output
write_def $::env(RESULTS_DIR)/2_2_floorplan_io.def
exit
}