Skip to content

Commit b2a0693

Browse files
authored
Merge pull request #2513 from The-OpenROAD-Project-staging/rm-tmds-mpl
Remove old mpl/tdms flow now that mpl2 is the default.
2 parents fd99d94 + 25b1c29 commit b2a0693

File tree

9 files changed

+21
-73
lines changed

9 files changed

+21
-73
lines changed

flow/BUILD.bazel

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ orfs_flow(
7070
"SDC_FILE": "$(location :constraints-swerv)",
7171
},
7272
"floorplan": SWERV_ALL | {
73-
"RTLMP_FLOW": "1",
7473
"RTLMP_MAX_INST": "30000",
7574
"RTLMP_MIN_INST": "5000",
7675
"RTLMP_MAX_MACRO": "30",
@@ -144,7 +143,6 @@ MOCK_ARRAY_FLOORPLAN_PLACE = {
144143
"CORE_AREA": "2.16 2.16 356.40000000000003 386.64000000000004",
145144
"MACRO_PLACE_HALO": "0 2.16",
146145
"RTLMP_BOUNDARY_WT": "0",
147-
"RTLMP_FLOW": "1",
148146
"PDN_TCL": "$(PLATFORM_DIR)/openRoad/pdn/BLOCKS_grid_strategy.tcl",
149147
"MACRO_HALO_X": "0.5",
150148
"MACRO_HALO_Y": "0.5",

flow/Makefile

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ ifneq ($(BLOCKS),)
233233
endif
234234
endif
235235

236-
export RTLMP_FLOW ?= 1
237236
export RTLMP_RPT_DIR ?= $(OBJECTS_DIR)/rtlmp
238237
export RTLMP_RPT_FILE ?= partition.txt
239238
export RTLMP_BLOCKAGE_FILE ?= $(OBJECTS_DIR)/rtlmp/partition.txt.blockage
@@ -642,31 +641,29 @@ endef
642641
#-------------------------------------------------------------------------------
643642
$(eval $(call do-step,2_1_floorplan,$(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_synth.sdc $(TECH_LEF) $(SC_LEF) $(ADDITIONAL_LEFS) $(FOOTPRINT) $(SIG_MAP_FILE) $(FOOTPRINT_TCL),floorplan))
644643

645-
$(eval $(call do-step,2_2_floorplan_io,$(RESULTS_DIR)/2_1_floorplan.odb $(IO_CONSTRAINTS),io_placement_random))
646-
647-
# STEP 3: Timing Driven Mixed Sized Placement
644+
# STEP 2: Random IO placement
648645
#-------------------------------------------------------------------------------
649-
$(eval $(call do-step,2_3_floorplan_tdms,$(RESULTS_DIR)/2_2_floorplan_io.odb $(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_synth.sdc $(LIB_FILES),tdms_place))
646+
$(eval $(call do-step,2_2_floorplan_io,$(RESULTS_DIR)/2_1_floorplan.odb $(IO_CONSTRAINTS),io_placement_random))
650647

651-
# STEP 4: Macro Placement
648+
# STEP 3: Macro Placement
652649
#-------------------------------------------------------------------------------
653-
$(eval $(call do-step,2_4_floorplan_macro,$(RESULTS_DIR)/2_3_floorplan_tdms.odb $(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_synth.sdc $(MACRO_PLACEMENT) $(MACRO_PLACEMENT_TCL),macro_place))
650+
$(eval $(call do-step,2_3_floorplan_macro,$(RESULTS_DIR)/2_2_floorplan_io.odb $(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_synth.sdc $(MACRO_PLACEMENT) $(MACRO_PLACEMENT_TCL),macro_place))
654651

655-
# STEP 5: Tapcell and Welltie insertion
652+
# STEP 4: Tapcell and Welltie insertion
656653
#-------------------------------------------------------------------------------
657-
$(eval $(call do-step,2_5_floorplan_tapcell,$(RESULTS_DIR)/2_4_floorplan_macro.odb $(TAPCELL_TCL),tapcell))
654+
$(eval $(call do-step,2_4_floorplan_tapcell,$(RESULTS_DIR)/2_3_floorplan_macro.odb $(TAPCELL_TCL),tapcell))
658655

659-
# STEP 6: PDN generation
656+
# STEP 5: PDN generation
660657
#-------------------------------------------------------------------------------
661-
$(eval $(call do-step,2_6_floorplan_pdn,$(RESULTS_DIR)/2_5_floorplan_tapcell.odb $(PDN_TCL),pdn))
658+
$(eval $(call do-step,2_5_floorplan_pdn,$(RESULTS_DIR)/2_4_floorplan_tapcell.odb $(PDN_TCL),pdn))
662659

663-
$(eval $(call do-copy,2_floorplan,2_6_floorplan_pdn.odb,))
660+
$(eval $(call do-copy,2_floorplan,2_5_floorplan_pdn.odb,))
664661

665662
$(RESULTS_DIR)/2_floorplan.sdc: $(RESULTS_DIR)/2_1_floorplan.odb
666663

667664
.PHONY: do-floorplan
668665
do-floorplan:
669-
$(UNSET_AND_MAKE) do-2_1_floorplan do-2_2_floorplan_io do-2_3_floorplan_tdms do-2_4_floorplan_macro do-2_5_floorplan_tapcell do-2_6_floorplan_pdn do-2_floorplan
666+
$(UNSET_AND_MAKE) do-2_1_floorplan do-2_2_floorplan_io do-2_3_floorplan_io do-2_4_floorplan_tapcell do-2_5_floorplan_pdn do-2_floorplan
670667

671668
.PHONY: clean_floorplan
672669
clean_floorplan:

flow/scripts/macro_place.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
22
erase_non_stage_variables floorplan
3-
load_design 2_3_floorplan_tdms.odb 2_floorplan.sdc
3+
load_design 2_2_floorplan_io.odb 2_floorplan.sdc
44

55
source $::env(SCRIPTS_DIR)/macro_place_util.tcl
66

7-
write_db $::env(RESULTS_DIR)/2_4_floorplan_macro.odb
7+
write_db $::env(RESULTS_DIR)/2_3_floorplan_macro.odb

flow/scripts/macro_place_util.tcl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if {[find_macros] != ""} {
3535
source $::env(SCRIPTS_DIR)/read_macro_placement.tcl
3636
puts "Using manual macro placement file $::env(MACRO_PLACEMENT)"
3737
read_macro_placement $::env(MACRO_PLACEMENT)
38-
} elseif {[env_var_equals RTLMP_FLOW 1]} {
38+
} else {
3939
puts "HierRTLMP Flow enabled..."
4040
set additional_rtlmp_args ""
4141
append_env_var additional_rtlmp_args RTLMP_MAX_LEVEL -max_num_level 1
@@ -70,10 +70,6 @@ if {[find_macros] != ""} {
7070
}
7171

7272
log_cmd rtl_macro_placer {*}$all_args
73-
} else {
74-
macro_placement \
75-
-halo $::env(MACRO_PLACE_HALO) \
76-
-channel $::env(MACRO_PLACE_CHANNEL)
7773
}
7874

7975
source $::env(SCRIPTS_DIR)/placement_blockages.tcl

flow/scripts/pdn.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
22
erase_non_stage_variables floorplan
3-
load_design 2_5_floorplan_tapcell.odb 2_floorplan.sdc
3+
load_design 2_4_floorplan_tapcell.odb 2_floorplan.sdc
44

55
source $::env(PDN_TCL)
66
pdngen
@@ -20,4 +20,4 @@ foreach net [$block getNets] {
2020
}
2121
}
2222

23-
write_db $::env(RESULTS_DIR)/2_6_floorplan_pdn.odb
23+
write_db $::env(RESULTS_DIR)/2_5_floorplan_pdn.odb

flow/scripts/tapcell.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
22
erase_non_stage_variables floorplan
33

4-
load_design 2_4_floorplan_macro.odb 2_floorplan.sdc
4+
load_design 2_3_floorplan_macro.odb 2_floorplan.sdc
55

66
if {[env_var_exists_and_non_empty TAPCELL_TCL]} {
77
source $::env(TAPCELL_TCL)
88
} else {
99
cut_rows
1010
}
1111

12-
write_db $::env(RESULTS_DIR)/2_5_floorplan_tapcell.odb
12+
write_db $::env(RESULTS_DIR)/2_4_floorplan_tapcell.odb

flow/scripts/tdms_place.tcl

Lines changed: 0 additions & 37 deletions
This file was deleted.

flow/scripts/variables.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ TAPCELL_TCL:
200200
Path to Endcap and Welltie cells file.
201201
stages:
202202
- floorplan
203-
RTLMP_FLOW:
204-
description: >
205-
1 to enable the Hierarchical RTLMP flow, default empty.
206-
stages:
207-
- floorplan
208203
MACRO_PLACEMENT:
209204
description: >
210205
Specifies the path of a file on how to place certain macros manually using read_macro_placement.
@@ -222,7 +217,7 @@ MACRO_PLACE_HALO:
222217
- floorplan
223218
MACRO_PLACE_CHANNEL:
224219
description: >
225-
Horizontal/vertical channel width between macros (microns). Used by automatic macro placement when RTLMP_FLOW is disabled.
220+
Horizontal/vertical channel width between macros (microns). Used by automatic macro placement.
226221
Imagine channel=10 and halo=5. Then macros must be 10 apart but standard cells must be 5 away from a macro.
227222
stages:
228223
- floorplan

flow/util/genMetrics.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,13 @@ def extract_metrics(cwd, platform, design, flow_variant, output, hier_json):
313313
extractGnuTime("synth", metrics_dict, logPath + "/1_1_yosys.log")
314314
extractGnuTime("floorplan", metrics_dict, logPath + "/2_1_floorplan.log")
315315
extractGnuTime("floorplan_io", metrics_dict, logPath + "/2_2_floorplan_io.log")
316-
extractGnuTime("floorplan_tdms", metrics_dict, logPath + "/2_3_floorplan_tdms.log")
317316
extractGnuTime(
318-
"floorplan_macro", metrics_dict, logPath + "/2_4_floorplan_macro.log"
317+
"floorplan_macro", metrics_dict, logPath + "/2_3_floorplan_macro.log"
319318
)
320319
extractGnuTime(
321-
"floorplan_tap", metrics_dict, logPath + "/2_5_floorplan_tapcell.log"
320+
"floorplan_tap", metrics_dict, logPath + "/2_4_floorplan_tapcell.log"
322321
)
323-
extractGnuTime("floorplan_pdn", metrics_dict, logPath + "/2_6_floorplan_pdn.log")
322+
extractGnuTime("floorplan_pdn", metrics_dict, logPath + "/2_5_floorplan_pdn.log")
324323
extractGnuTime(
325324
"globalplace_skip_io", metrics_dict, logPath + "/3_1_place_gp_skip_io.log"
326325
)

0 commit comments

Comments
 (0)