Skip to content

Commit

Permalink
Save SPEF/SDC/SDF files after the flow finishes (The-OpenROAD-Project…
Browse files Browse the repository at this point in the history
  • Loading branch information
Manarabdelaty authored Nov 30, 2021
1 parent 540e2a2 commit e3fc1f5
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ proc run_non_interactive_mode {args} {
-maglef_path $::env(finishing_results)/$::env(DESIGN_NAME).lef.mag \
-spice_path $::env(finishing_results)/$::env(DESIGN_NAME).spice \
-verilog_path $::env(CURRENT_NETLIST) \
-spef_path $::env(SPEF_TYPICAL) \
-sdf_path $::env(CURRENT_SDF) \
-sdc_path $::env(CURRENT_SDC) \
-save_path $arg_values(-save_path) \
-tag $::env(RUN_TAG)
}
Expand Down
27 changes: 27 additions & 0 deletions scripts/tcl_commands/all.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,9 @@ proc save_views {args} {
{-gds_path optional}
{-verilog_path optional}
{-spice_path optional}
{-sdf_path optional}
{-spef_path optional}
{-sdc_path optional}
{-save_path optional}
{-tag required}
}
Expand Down Expand Up @@ -708,6 +711,30 @@ proc save_views {args} {
file copy -force $arg_values(-spice_path) $destination/$arg_values(-tag).spice
}
}

if { [info exists arg_values(-spef_path)] } {
set destination $path/spef
file mkdir $destination
if { [file exists $arg_values(-spef_path)] } {
file copy -force $arg_values(-spef_path) $destination/$arg_values(-tag).spef
}
}

if { [info exists arg_values(-sdf_path)] } {
set destination $path/sdf
file mkdir $destination
if { [file exists $arg_values(-sdf_path)] } {
file copy -force $arg_values(-sdf_path) $destination/$arg_values(-tag).sdf
}
}

if { [info exists arg_values(-sdc_path)] } {
set destination $path/sdc
file mkdir $destination
if { [file exists $arg_values(-sdc_path)] } {
file copy -force $arg_values(-sdc_path) $destination/$arg_values(-tag).sdc
}
}
}


Expand Down
2 changes: 2 additions & 0 deletions scripts/tcl_commands/routing.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ proc run_routing {args} {
run_sta -log $::env(routing_logs)/parasitics_sta.log
set ::env(FINAL_TIMING_REPORT_TAG) [index_file $::env(routing_reports)/parasitics_sta]

set ::env(CURRENT_SDF) $::env(SAVE_SDF)

# run sta at the three corners
run_sta -log $::env(routing_logs)/parasitics_multi_corner_sta.log -multi_corner

Expand Down

0 comments on commit e3fc1f5

Please sign in to comment.