Skip to content

Commit edf3d6b

Browse files
authored
Merge pull request The-OpenROAD-Project#3246 from The-OpenROAD-Project-staging/rm-resynth
Remove RESYNTH_TIMING_RECOVER & RESYNTH_AREA_RECOVER
2 parents 4d94e07 + 58a7031 commit edf3d6b

File tree

2 files changed

+0
-85
lines changed

2 files changed

+0
-85
lines changed

flow/scripts/floorplan.tcl

Lines changed: 0 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -110,84 +110,11 @@ if { [env_var_equals REMOVE_ABC_BUFFERS 1] } {
110110
repair_timing_helper 0
111111
}
112112

113-
##### Restructure for timing #########
114-
if { [env_var_equals RESYNTH_TIMING_RECOVER 1] } {
115-
repair_design_helper
116-
repair_timing_helper
117-
# pre restructure area/timing report (ideal clocks)
118-
puts "Post synth-opt area"
119-
report_design_area
120-
report_worst_slack -min -digits 3
121-
puts "Post synth-opt wns"
122-
report_worst_slack -max -digits 3
123-
puts "Post synth-opt tns"
124-
report_tns -digits 3
125-
126-
write_verilog $::env(RESULTS_DIR)/2_pre_abc_timing.v
127-
128-
restructure -target timing -liberty_file $::env(DONT_USE_SC_LIB) \
129-
-work_dir $::env(RESULTS_DIR)
130-
131-
write_verilog $::env(RESULTS_DIR)/2_post_abc_timing.v
132-
133-
# post restructure area/timing report (ideal clocks)
134-
remove_buffers
135-
repair_design_helper
136-
repair_timing_helper
137-
138-
puts "Post restructure-opt wns"
139-
report_worst_slack -max -digits 3
140-
puts "Post restructure-opt tns"
141-
report_tns -digits 3
142-
143-
# remove buffers inserted by optimization
144-
remove_buffers
145-
}
146-
147-
148113
puts "Default units for flow"
149114
report_units
150115
report_units_metric
151116
report_metrics 2 "floorplan final" false false
152117

153-
if { [env_var_equals RESYNTH_AREA_RECOVER 1] } {
154-
155-
utl::push_metrics_stage "floorplan__{}__pre_restruct"
156-
set num_instances [llength [get_cells -hier *]]
157-
puts "number instances before restructure is $num_instances"
158-
puts "Design Area before restructure"
159-
report_design_area
160-
report_design_area_metrics
161-
utl::pop_metrics_stage
162-
163-
write_verilog $::env(RESULTS_DIR)/2_pre_abc.v
164-
165-
set tielo_cell_name [lindex $env(TIELO_CELL_AND_PORT) 0]
166-
set tielo_lib_name [get_name [get_property [lindex [get_lib_cell $tielo_cell_name] 0] library]]
167-
set tielo_port $tielo_lib_name/$tielo_cell_name/[lindex $env(TIELO_CELL_AND_PORT) 1]
168-
169-
set tiehi_cell_name [lindex $env(TIEHI_CELL_AND_PORT) 0]
170-
set tiehi_lib_name [get_name [get_property [lindex [get_lib_cell $tiehi_cell_name] 0] library]]
171-
set tiehi_port $tiehi_lib_name/$tiehi_cell_name/[lindex $env(TIEHI_CELL_AND_PORT) 1]
172-
173-
restructure -liberty_file $::env(DONT_USE_SC_LIB) -target "area" \
174-
-tiehi_port $tiehi_port \
175-
-tielo_port $tielo_port \
176-
-work_dir $::env(RESULTS_DIR)
177-
178-
# remove buffers inserted by abc
179-
remove_buffers
180-
181-
write_verilog $::env(RESULTS_DIR)/2_post_abc.v
182-
utl::push_metrics_stage "floorplan__{}__post_restruct"
183-
set num_instances [llength [get_cells -hier *]]
184-
puts "number instances after restructure is $num_instances"
185-
puts "Design Area after restructure"
186-
report_design_area
187-
report_design_area_metrics
188-
utl::pop_metrics_stage
189-
}
190-
191118
if { [env_var_exists_and_non_empty POST_FLOORPLAN_TCL] } {
192119
log_cmd source $::env(POST_FLOORPLAN_TCL)
193120
}

flow/scripts/variables.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -708,18 +708,6 @@ DIE_AREA:
708708
stages:
709709
- floorplan
710710
tunable: 1
711-
RESYNTH_AREA_RECOVER:
712-
description: |
713-
Enable re-synthesis for area reclaim.
714-
stages:
715-
- floorplan
716-
default: 0
717-
RESYNTH_TIMING_RECOVER:
718-
description: |
719-
Enable re-synthesis for timing optimization.
720-
stages:
721-
- floorplan
722-
default: 0
723711
MACRO_ROWS_HALO_X:
724712
description: >
725713
Horizontal distance between the edge of the macro and the beginning of the

0 commit comments

Comments
 (0)