Skip to content

Commit 9b6f160

Browse files
update macro placement script for mpl2
Signed-off-by: Ravi Varadarajan <[email protected]>
1 parent 8fe6288 commit 9b6f160

File tree

1 file changed

+15
-39
lines changed

1 file changed

+15
-39
lines changed

flow/scripts/macro_place.tcl

Lines changed: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,23 @@ if {[find_macros] != ""} {
4848
}
4949

5050
if {[info exists ::env(RTLMP_FLOW)]} {
51-
puts "RTLMP Flow enabled..."
51+
puts "HierRTLMP Flow enabled..."
5252
set additional_partition_args ""
53+
set additional_rtlmp_args ""
5354
if { [info exists ::env(RTLMP_MAX_INST)]} {
54-
append additional_partition_args " -max_num_inst $env(RTLMP_MAX_INST)"
55+
append additional_rtlmp_args " -max_num_inst $env(RTLMP_MAX_INST)"
5556
}
5657
if { [info exists ::env(RTLMP_MIN_INST)]} {
57-
append additional_partition_args " -min_num_inst $env(RTLMP_MIN_INST)"
58+
append additional_rtlmp_args " -min_num_inst $env(RTLMP_MIN_INST)"
5859
}
5960
if { [info exists ::env(RTLMP_MAX_MACRO)]} {
60-
append additional_partition_args " -max_num_macro $env(RTLMP_MAX_MACRO)"
61+
append additional_rtlmp_args " -max_num_macro $env(RTLMP_MAX_MACRO)"
6162
}
6263
if { [info exists ::env(RTLMP_MIN_MACRO)]} {
63-
append additional_partition_args " -min_num_macro $env(RTLMP_MIN_MACRO)"
64+
append additional_rtlmp_args " -min_num_macro $env(RTLMP_MIN_MACRO)"
6465
}
65-
66-
set additional_rtlmp_args ""
6766

68-
append additional_rtlmp_args " -macro_halo $halo_max"
67+
append additional_rtlmp_args " -halo_width $halo_max"
6968

7069
if { [info exists ::env(RTLMP_AREA_WT)]} {
7170
append additional_rtlmp_args " -area_weight $env(RTLMP_AREA_WT)"
@@ -79,49 +78,26 @@ if {[find_macros] != ""} {
7978
if { [info exists ::env(RTLMP_BOUNDARY_WT)]} {
8079
append additional_rtlmp_args " -boundary_weight $env(RTLMP_BOUNDARY_WT)"
8180
}
82-
if { [info exists ::env(RTLMP_MACRO_BLOCKAGE_WT)]} {
83-
append additional_rtlmp_args " -macro_blockage_weight $env(RTLMP_MACRO_BLOCKAGE_WT)"
84-
}
85-
if { [info exists ::env(RTLMP_LOCATION_WEIGHT)]} {
86-
append additional_rtlmp_args " -location_weight $env(RTLMP_LOCATION_WEIGHT)"
87-
}
81+
8882
if { [info exists ::env(RTLMP_NOTCH_WT)]} {
8983
append additional_rtlmp_args " -notch_weight $env(RTLMP_NOTCH_WT)"
9084
}
85+
9186
if { [info exists ::env(RTLMP_DEAD_SPACE)]} {
9287
append additional_rtlmp_args " -dead_space $env(RTLMP_DEAD_SPACE)"
9388
}
9489
if { [info exists ::env(RTLMP_CONFIG_FILE)]} {
9590
append additional_rtlmp_args " -config_file $env(RTLMP_CONFIG_FILE)"
9691
}
97-
if { [info exists ::env(RTLMP_RPT_FILE)]} {
98-
append additional_rtlmp_args " -report_file $env(RTLMP_RPT_FILE)"
99-
}
100-
if { [info exists ::env(RTLMP_BLOCKAGE_FILE)]} {
101-
append additional_rtlmp_args " -macro_blockage_file $env(RTLMP_BLOCKAGE_FILE)"
92+
if { [info exists ::env(RTLMP_RPT_DIR)]} {
93+
append additional_rtlmp_args " -report_directory $env(RTLMP_RPT_DIR)"
10294
}
10395

104-
if { [info exists ::env(RTLMP_KEEPIN)]} {
105-
partition_design -net_threshold 5 \
106-
-virtual_weight 1 \
107-
-num_hop 3 \
108-
-timing_weight 1 \
109-
-report_directory $env(RTLMP_RPT_DIR) \
110-
-report_file $env(RTLMP_RPT_FILE) \
111-
-keepin $env(RTLMP_KEEPIN) \
112-
{*}$additional_partition_args
113-
} else {
114-
partition_design -net_threshold 5 \
115-
-virtual_weight 1 \
116-
-num_hop 3 \
117-
-timing_weight 1 \
118-
-report_directory $env(RTLMP_RPT_DIR) \
119-
-report_file $env(RTLMP_RPT_FILE) \
120-
{*}$additional_partition_args
121-
}
12296

123-
rtl_macro_placer -report_directory $env(RTLMP_RPT_DIR) \
124-
{*}$additional_rtlmp_args
97+
puts "Call Macro Placer $additional_rtlmp_args"
98+
99+
rtl_macro_placer \
100+
{*}$additional_rtlmp_args
125101

126102
puts "Delete buffers for RTLMP flow..."
127103
remove_buffers

0 commit comments

Comments
 (0)