Download chips/openroad_flow_scripts/flow/scripts/open.tcl from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 2.41 kB
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/openroad_flow_scripts/flow/scripts/open.tcl
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/openroad_flow_scripts/flow/scripts/open.tcl
-
curl -L -o open.tcl https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/openroad_flow_scripts/flow/scripts/open.tcl
2.41 kB
| source $::env(SCRIPTS_DIR)/util.tcl | |
| source_env_var_if_exists PLATFORM_TCL | |
| if { [env_var_equals GUI_TIMING 1] } { | |
| source $::env(SCRIPTS_DIR)/read_liberty.tcl | |
| } | |
| if { [env_var_exists_and_non_empty DEF_FILE] } { | |
| log_cmd read_lef $::env(TECH_LEF) | |
| log_cmd read_lef $::env(SC_LEF) | |
| if { [env_var_exists_and_non_empty ADDITIONAL_LEFS] } { | |
| foreach lef $::env(ADDITIONAL_LEFS) { | |
| log_cmd read_lef $lef | |
| } | |
| } | |
| set input_file $::env(DEF_FILE) | |
| log_cmd read_def $input_file | |
| } elseif { [env_var_exists_and_non_empty V_FILE] } { | |
| log_cmd read_lef $::env(TECH_LEF) | |
| log_cmd read_lef $::env(SC_LEF) | |
| if { [env_var_exists_and_non_empty ADDITIONAL_LEFS] } { | |
| foreach lef $::env(ADDITIONAL_LEFS) { | |
| log_cmd read_lef $lef | |
| } | |
| } | |
| set input_file $::env(V_FILE) | |
| log_cmd read_verilog $input_file | |
| log_cmd link_design {*}[hier_options] $::env(DESIGN_NAME) | |
| } else { | |
| set input_file $::env(ODB_FILE) | |
| log_cmd read_db {*}[hier_options] $input_file | |
| } | |
| proc read_timing { input_file } { | |
| set design_stage [lindex [extract_stage $input_file] 0] | |
| log_cmd read_sdc [sdc_file_of $input_file] | |
| if { [file exists $::env(PLATFORM_DIR)/derate.tcl] } { | |
| source $::env(PLATFORM_DIR)/derate.tcl | |
| } | |
| if { [env_var_exists_and_non_empty LAYER_PARASITICS_FILE] } { | |
| log_cmd source $::env(LAYER_PARASITICS_FILE) | |
| } else { | |
| log_cmd source $::env(PLATFORM_DIR)/setRC.tcl | |
| } | |
| if { [env_var_exists_and_non_empty WIRE_LOAD_MODEL] } { | |
| # OpenSTA applies a wire-load model only to nets without parasitics. | |
| log_cmd set_wire_load_model -name $::env(WIRE_LOAD_MODEL) | |
| } | |
| if { $design_stage >= 4 } { | |
| # CTS has run, so propagate clocks | |
| set_propagated_clock [all_clocks] | |
| } | |
| orfs_load_parasitics [file rootname [file tail $input_file]] | |
| # Warm up OpenSTA, so clicking on timing related buttons reacts faster | |
| set _tmp [log_cmd sta::find_timing] | |
| set _tmp [log_cmd sta::find_requireds] | |
| } | |
| if { [ord::openroad_gui_compiled] } { | |
| set db_basename [file rootname [file tail $input_file]] | |
| gui::set_title \ | |
| "OpenROAD - $::env(PLATFORM)/$::env(DESIGN_NICKNAME)/$::env(FLOW_VARIANT) - ${db_basename}" | |
| } | |
| use_ccs_delay_calculator | |
| if { $::env(GUI_TIMING) } { | |
| puts "GUI_TIMING=1 reading timing, takes a little while for large designs..." | |
| read_timing $input_file | |
| if { [gui::enabled] } { | |
| log_cmd gui::select_chart "Endpoint Slack" | |
| log_cmd gui::update_timing_report | |
| } | |
| } | |