Skip to content

Commit d5a1b0a

Browse files
committed
Merge branch 'master' into secure-yosys0.45_new
Signed-off-by: Eder Monteiro <[email protected]>
2 parents 85ece88 + f6356a0 commit d5a1b0a

File tree

14 files changed

+660
-659
lines changed

14 files changed

+660
-659
lines changed

docs/user/FlowVariables.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,9 @@ Note:
145145
| `IO_PLACER_H` | The metal layer on which to place the I/O pins horizontally (top and bottom of the die). |
146146
| `IO_PLACER_V` | The metal layer on which to place the I/O pins vertically (sides of the die). |
147147
| `GUI_NO_TIMING` | Skip loading timing for a faster GUI load. |
148-
| `GUI_SOURCE` | Source the script. |
149-
| `GUI_ARGS` | OpenROAD command line options for gui_ and open_ targets, typically set tup `-exit` in combination with GUI_SOURCE to run a script and exit. |
150148
| `FILL_CELLS` | Fill cells are used to fill empty sites. If not set or empty, fill cell insertion is skipped. |
151149
| `TAP_CELL_NAME` | Name of the cell to use in tap cell insertion. |
152150

153-
154151
### Placement
155152

156153

flow/Makefile

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export DIE_AREA ?=
150150
export CORE_AREA ?=
151151

152152
# If we are running headless use offscreen rendering for save_image
153-
ifndef DISPLAY
153+
ifeq ($(DISPLAY),)
154154
export QT_QPA_PLATFORM ?= offscreen
155155
endif
156156

@@ -261,7 +261,7 @@ export RESULTS_DIR = $(WORK_HOME)/results/$(PLATFORM)/$(DESIGN_NICKNAME)/$(FLOW_
261261
# but not necessarily built by ORFS using the BLOCKS mechanism.
262262
export MACROS ?= $(BLOCKS)
263263

264-
ifdef BLOCKS
264+
ifneq ($(BLOCKS),)
265265
$(foreach block,$(BLOCKS),$(eval BLOCK_LEFS += ./results/$(PLATFORM)/$(DESIGN_NICKNAME)_$(block)/$(FLOW_VARIANT)/${block}.lef))
266266
$(foreach block,$(BLOCKS),$(eval BLOCK_LIBS += ./results/$(PLATFORM)/$(DESIGN_NICKNAME)_$(block)/$(FLOW_VARIANT)/${block}.lib))
267267
$(foreach block,$(BLOCKS),$(eval BLOCK_GDS += ./results/$(PLATFORM)/$(DESIGN_NICKNAME)_$(block)/$(FLOW_VARIANT)/6_final.gds))
@@ -271,7 +271,7 @@ ifdef BLOCKS
271271
export ADDITIONAL_LIBS += $(BLOCK_LIBS)
272272
export ADDITIONAL_GDS += $(BLOCK_GDS)
273273
export GDS_FILES += $(BLOCK_GDS)
274-
ifdef CDL_FILES
274+
ifneq ($(CDL_FILES),)
275275
export CDL_FILES += $(BLOCK_CDL)
276276
endif
277277
endif
@@ -614,7 +614,7 @@ endef
614614
define OPEN_GUI
615615
.PHONY: $(1)_$(2)
616616
$(1)_$(2):
617-
$(3)=$(RESULTS_DIR)/$(2) $(4) $(GUI_ARGS) $(SCRIPTS_DIR)/gui.tcl
617+
$(3)=$(RESULTS_DIR)/$(2) $(4) $(SCRIPTS_DIR)/gui.tcl
618618
endef
619619

620620
# Separate dependency checking and doing a step. This can
@@ -689,10 +689,10 @@ $(eval $(call do-step,2_1_floorplan,$(RESULTS_DIR)/1_synth.v $(RESULTS_DIR)/1_sy
689689

690690
# STEP 2: IO Placement (random)
691691
#-------------------------------------------------------------------------------
692-
ifndef IS_CHIP
693-
$(eval $(call do-step,2_2_floorplan_io,$(RESULTS_DIR)/2_1_floorplan.odb $(IO_CONSTRAINTS),io_placement_random))
694-
else
692+
ifeq ($(IS_CHIP),1)
695693
$(eval $(call do-copy,2_2_floorplan_io,2_1_floorplan.odb,$(IO_CONSTRAINTS)))
694+
else
695+
$(eval $(call do-step,2_2_floorplan_io,$(RESULTS_DIR)/2_1_floorplan.odb $(IO_CONSTRAINTS),io_placement_random))
696696
endif
697697

698698
# STEP 3: Timing Driven Mixed Sized Placement
@@ -756,10 +756,10 @@ $(eval $(call do-step,3_1_place_gp_skip_io,$(RESULTS_DIR)/2_floorplan.odb $(RESU
756756

757757
# STEP 2: IO placement (non-random)
758758
#-------------------------------------------------------------------------------
759-
ifndef IS_CHIP
760-
$(eval $(call do-step,3_2_place_iop,$(RESULTS_DIR)/3_1_place_gp_skip_io.odb $(IO_CONSTRAINTS),io_placement))
761-
else
759+
ifeq ($(IS_CHIP),1)
762760
$(eval $(call do-copy,3_2_place_iop,3_1_place_gp_skip_io.odb,$(IO_CONSTRAINTS)))
761+
else
762+
$(eval $(call do-step,3_2_place_iop,$(RESULTS_DIR)/3_1_place_gp_skip_io.odb $(IO_CONSTRAINTS),io_placement))
763763
endif
764764

765765
# STEP 3: Global placement with placed IOs, timing-driven, and routability-driven.
@@ -851,11 +851,7 @@ $(eval $(call do-step,5_1_grt,$(RESULTS_DIR)/4_cts.odb $(FASTROUTE_TCL) $(PRE_GL
851851

852852
# STEP 2: Run detailed route
853853
#-------------------------------------------------------------------------------
854-
ifeq ($(USE_WXL),)
855854
$(eval $(call do-step,5_2_route,$(RESULTS_DIR)/5_1_grt.odb,detail_route))
856-
else
857-
$(eval $(call do-step,5_2_route,$(RESULTS_DIR)/4_cts.odb,detail_route))
858-
endif
859855

860856
# SEP 3: Filler cell insertion
861857
# ------------------------------------------------------------------------------
@@ -1096,10 +1092,10 @@ $(foreach file,$(RESULTS_DEF) $(RESULTS_GDS) $(RESULTS_OAS),klayout_$(file)): kl
10961092

10971093
.PHONY: gui_synth
10981094
gui_synth:
1099-
$(OPENROAD_GUI_CMD) $(GUI_ARGS) $(SCRIPTS_DIR)/sta-synth.tcl
1095+
$(OPENROAD_GUI_CMD) $(SCRIPTS_DIR)/sta-synth.tcl
11001096
.PHONY: open_synth
11011097
open_synth:
1102-
$(OPENROAD_NO_EXIT_CMD) $(GUI_ARGS) $(SCRIPTS_DIR)/sta-synth.tcl
1098+
$(OPENROAD_NO_EXIT_CMD) $(SCRIPTS_DIR)/sta-synth.tcl
11031099

11041100
$(eval $(call OPEN_GUI_SHORTCUT,floorplan,2_floorplan.odb))
11051101
$(eval $(call OPEN_GUI_SHORTCUT,place,3_place.odb))

0 commit comments

Comments
 (0)