Skip to content

Commit 14cd0f7

Browse files
committed
scripts: introduce orfs_write_db/sdc wrappers
This commit is only to simplify the review. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent 4fd6b4a commit 14cd0f7

18 files changed

Lines changed: 43 additions & 29 deletions

‎flow/scripts/cts.tcl‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ repair_clock_inverters
99

1010
proc save_progress {stage} {
1111
puts "Run 'make gui_$stage.odb' to load progress snapshot"
12-
write_db $::env(RESULTS_DIR)/$stage.odb
13-
write_sdc -no_timestamp $::env(RESULTS_DIR)/$stage.sdc
12+
orfs_write_db $::env(RESULTS_DIR)/$stage.odb
13+
orfs_write_sdc $::env(RESULTS_DIR)/$stage.sdc
1414
}
1515

1616
# Run CTS
@@ -80,5 +80,5 @@ report_metrics 4 "cts final"
8080

8181
source_env_var_if_exists POST_CTS_TCL
8282

83-
write_db $::env(RESULTS_DIR)/4_1_cts.odb
84-
write_sdc -no_timestamp $::env(RESULTS_DIR)/4_cts.sdc
83+
orfs_write_db $::env(RESULTS_DIR)/4_1_cts.odb
84+
orfs_write_sdc $::env(RESULTS_DIR)/4_cts.sdc

‎flow/scripts/density_fill.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if {$::env(USE_FILL)} {
88
# The .v file is just for debugging purposes, not a result of
99
# this stage.
1010
write_verilog $::env(RESULTS_DIR)/6_1_fill.v
11-
write_db $::env(RESULTS_DIR)/6_1_fill.odb
11+
orfs_write_db $::env(RESULTS_DIR)/6_1_fill.odb
1212
} else {
1313
log_cmd exec cp $::env(RESULTS_DIR)/5_route.odb $::env(RESULTS_DIR)/6_1_fill.odb
1414
# There is no 5_route.v file to copy

‎flow/scripts/detail_place.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ proc do_dpl {} {
3232

3333
set result [catch {do_dpl} errMsg]
3434
if {$result != 0} {
35-
write_db $::env(RESULTS_DIR)/3_5_place_dp-failed.odb
35+
orfs_write_db $::env(RESULTS_DIR)/3_5_place_dp-failed.odb
3636
error $errMsg
3737
}
3838

3939
report_metrics 3 "detailed place" true false
4040

41-
write_db $::env(RESULTS_DIR)/3_5_place_dp.odb
41+
orfs_write_db $::env(RESULTS_DIR)/3_5_place_dp.odb

‎flow/scripts/detail_route.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if {![grt::have_routes]} {
77
}
88

99
if {$::env(SKIP_DETAILED_ROUTE)} {
10-
write_db $::env(RESULTS_DIR)/5_2_route.odb
10+
orfs_write_db $::env(RESULTS_DIR)/5_2_route.odb
1111
exit
1212
}
1313

@@ -79,4 +79,4 @@ if {![design_is_routed]} {
7979

8080
report_metrics 5 "detailed route"
8181

82-
write_db $::env(RESULTS_DIR)/5_2_route.odb
82+
orfs_write_db $::env(RESULTS_DIR)/5_2_route.odb

‎flow/scripts/fillcell.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if {[env_var_exists_and_non_empty FILL_CELLS]} {
88
log_cmd filler_placement $::env(FILL_CELLS)
99
check_placement
1010

11-
write_db $::env(RESULTS_DIR)/5_3_fillcell.odb
11+
orfs_write_db $::env(RESULTS_DIR)/5_3_fillcell.odb
1212
} else {
1313
log_cmd exec cp $::env(RESULTS_DIR)/5_2_route.odb $::env(RESULTS_DIR)/5_3_fillcell.odb
1414
}

‎flow/scripts/final_report.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set_propagated_clock [all_clocks]
88
# Ensure all OR created (rsz/cts) instances are connected
99
global_connect
1010

11-
write_db $::env(RESULTS_DIR)/6_final.odb
11+
orfs_write_db $::env(RESULTS_DIR)/6_final.odb
1212

1313
# Delete routing obstructions for final DEF
1414
source $::env(SCRIPTS_DIR)/deleteRoutingObstructions.tcl

‎flow/scripts/floorplan.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ report_metrics 2 "floorplan final" false false
150150
source_env_var_if_exists POST_FLOORPLAN_TCL
151151
source_env_var_if_exists IO_CONSTRAINTS
152152

153-
write_db $::env(RESULTS_DIR)/2_1_floorplan.odb
154-
write_sdc -no_timestamp $::env(RESULTS_DIR)/2_1_floorplan.sdc
153+
orfs_write_db $::env(RESULTS_DIR)/2_1_floorplan.odb
154+
orfs_write_sdc $::env(RESULTS_DIR)/2_1_floorplan.sdc

‎flow/scripts/global_place.tcl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ proc do_placement {global_placement_args} {
4646

4747
set result [catch {do_placement $global_placement_args} errMsg]
4848
if {$result != 0} {
49-
write_db $::env(RESULTS_DIR)/3_3_place_gp-failed.odb
49+
orfs_write_db $::env(RESULTS_DIR)/3_3_place_gp-failed.odb
5050
error $errMsg
5151
}
5252

@@ -59,4 +59,4 @@ if {$::env(CLUSTER_FLOPS)} {
5959

6060
report_metrics 3 "global place" false false
6161

62-
write_db $::env(RESULTS_DIR)/3_3_place_gp.odb
62+
orfs_write_db $::env(RESULTS_DIR)/3_3_place_gp.odb

‎flow/scripts/global_place_skip_io.tcl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ if {[env_var_exists_and_non_empty FLOORPLAN_DEF]} {
1313
{*}[env_var_or_empty GLOBAL_PLACEMENT_ARGS]
1414
}
1515

16-
write_db $::env(RESULTS_DIR)/3_1_place_gp_skip_io.odb
16+
orfs_write_db $::env(RESULTS_DIR)/3_1_place_gp_skip_io.odb

‎flow/scripts/global_route.tcl‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ proc global_route_helper {} {
2929

3030
if {$result != 0} {
3131
if {!$::env(GENERATE_ARTIFACTS_ON_FAILURE)} {
32-
write_db $::env(RESULTS_DIR)/5_1_grt-failed.odb
32+
orfs_write_db $::env(RESULTS_DIR)/5_1_grt-failed.odb
3333
error $errMsg
3434
}
35-
write_sdc -no_timestamp $::env(RESULTS_DIR)/5_1_grt.sdc
36-
write_db $::env(RESULTS_DIR)/5_1_grt.odb
35+
orfs_write_sdc $::env(RESULTS_DIR)/5_1_grt.sdc
36+
orfs_write_db $::env(RESULTS_DIR)/5_1_grt.odb
3737
return
3838
}
3939

@@ -113,8 +113,8 @@ proc global_route_helper {} {
113113
source [file join $::env(SCRIPTS_DIR) "write_ref_sdc.tcl"]
114114

115115
write_guides $::env(RESULTS_DIR)/route.guide
116-
write_db $::env(RESULTS_DIR)/5_1_grt.odb
117-
write_sdc -no_timestamp $::env(RESULTS_DIR)/5_1_grt.sdc
116+
orfs_write_db $::env(RESULTS_DIR)/5_1_grt.odb
117+
orfs_write_sdc $::env(RESULTS_DIR)/5_1_grt.sdc
118118
}
119119

120120
global_route_helper

0 commit comments

Comments
 (0)