Skip to content

Commit 9cf17fc

Browse files
committed
makefile: move iffy code into tdms_place.tcl
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent ad1c669 commit 9cf17fc

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

flow/Makefile

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -697,17 +697,7 @@ endif
697697

698698
# STEP 3: Timing Driven Mixed Sized Placement
699699
#-------------------------------------------------------------------------------
700-
ifneq ($(MACRO_PLACEMENT)$(MACRO_PLACEMENT_TCL),)
701-
SKIP_TDMS:=1
702-
endif
703-
ifeq ($(RTLMP_FLOW), 1)
704-
SKIP_TDMS:=1
705-
endif
706-
ifneq ($(SKIP_TDMS), 1)
707700
$(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))
708-
else
709-
$(eval $(call do-copy,2_3_floorplan_tdms,2_2_floorplan_io.odb,$(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_synth.sdc $(LIB_FILES)))
710-
endif
711701

712702
# STEP 4: Macro Placement
713703
#-------------------------------------------------------------------------------

flow/scripts/tdms_place.tcl

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
2-
load_design 2_2_floorplan_io.odb 1_synth.sdc
32

43
proc find_macros {} {
54
set macros ""
@@ -17,14 +16,21 @@ proc find_macros {} {
1716
return $macros
1817
}
1918

20-
set_dont_use $::env(DONT_USE_CELLS)
19+
if {!([env_var_exists_and_non_empty MACRO_PLACEMENT] ||
20+
[env_var_exists_and_non_empty MACRO_PLACEMENT_TCL]) &&
21+
![env_var_equals RTLMP_FLOW 1]} {
22+
load_design 2_2_floorplan_io.odb 1_synth.sdc
2123

22-
if {[find_macros] != ""} {
23-
global_placement -density $::env(PLACE_DENSITY) \
24-
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
25-
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT)
24+
set_dont_use $::env(DONT_USE_CELLS)
25+
26+
if {[find_macros] != ""} {
27+
log_cmd global_placement -density $::env(PLACE_DENSITY) \
28+
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
29+
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT)
30+
} else {
31+
puts "No macros found: Skipping global_placement"
32+
}
33+
write_db $::env(RESULTS_DIR)/2_3_floorplan_tdms.odb
2634
} else {
27-
puts "No macros found: Skipping global_placement"
35+
log_cmd exec cp $::env(RESULTS_DIR)/2_2_floorplan_io.odb $::env(RESULTS_DIR)/2_3_floorplan_tdms.odb
2836
}
29-
30-
write_db $::env(RESULTS_DIR)/2_3_floorplan_tdms.odb

0 commit comments

Comments
 (0)