File size: 1,952 Bytes
198fb2a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | # Delete routing obstructions for final DEF
source $::env(SCRIPTS_DIR)/deleteRoutingObstructions.tcl
deleteRoutingObstructions
write_def $::env(RESULTS_DIR)/6_final.def
write_verilog $::env(RESULTS_DIR)/6_final.v \
-remove_cells [find_physical_only_masters]
# Run extraction and STA
if {
[env_var_exists_and_non_empty RCX_RULES]
&& !$::env(SKIP_DETAILED_ROUTE)
} {
# RCX section
define_process_corner -ext_model_index 0 X
set_extraction_rules_file $::env(RCX_RULES)
extract_parasitics
# Write Spef
write_spef $::env(RESULTS_DIR)/6_final.spef
file delete $::env(DESIGN_NAME).totCap
# Read Spef for OpenSTA
read_spef $::env(RESULTS_DIR)/6_final.spef
# Static IR drop analysis
if { [env_var_exists_and_non_empty PWR_NETS_VOLTAGES] } {
dict for {pwrNetName pwrNetVoltage} $::env(PWR_NETS_VOLTAGES) {
set_pdnsim_net_voltage -net ${pwrNetName} -voltage ${pwrNetVoltage}
analyze_power_grid -net ${pwrNetName} \
-error_file $::env(REPORTS_DIR)/${pwrNetName}.rpt
}
} else {
puts "IR drop analysis for power nets is skipped because PWR_NETS_VOLTAGES is undefined"
}
if { [env_var_exists_and_non_empty GND_NETS_VOLTAGES] } {
dict for {gndNetName gndNetVoltage} $::env(GND_NETS_VOLTAGES) {
set_pdnsim_net_voltage -net ${gndNetName} -voltage ${gndNetVoltage}
analyze_power_grid -net ${gndNetName} \
-error_file $::env(REPORTS_DIR)/${gndNetName}.rpt
}
} else {
puts "IR drop analysis for ground nets is skipped because GND_NETS_VOLTAGES is undefined"
}
} else {
puts "OpenRCX is not enabled for this platform."
puts "Falling back to global route-based estimates."
log_cmd estimate_parasitics -global_routing
}
report_cell_usage
report_metrics 6 "finish"
source_step_tcl POST FINAL_REPORT
# Save a final image if openroad is compiled with the gui
if { [ord::openroad_gui_compiled] } {
gui::show "source $::env(SCRIPTS_DIR)/save_images.tcl" false
}
|