|
104 | 104 | # Default design |
105 | 105 | DESIGN_CONFIG ?= ./designs/nangate45/gcd/config.mk |
106 | 106 |
|
| 107 | +# Include design and platform configuration before setting default options |
| 108 | +# in this file. This allows the DESIGN_CONFIG to set different defaults than |
| 109 | +# this file. |
| 110 | +include $(DESIGN_CONFIG) |
| 111 | + |
107 | 112 | # For instance Bazel needs artifacts (.odb and .rpt files) on a failure to |
108 | 113 | # allow the user to save hours on re-running the failed step locally, but |
109 | 114 | # when working with a Makefile flow, it is more natural to fail the step |
@@ -139,6 +144,7 @@ export ROUTING_LAYER_ADJUSTMENT ?= 0.5 |
139 | 144 | export RECOVER_POWER ?= 0 |
140 | 145 | export SKIP_INCREMENTAL_REPAIR ?= 0 |
141 | 146 | export DETAILED_METRICS ?= 0 |
| 147 | +export EQUIVALENCE_CHECK ?= 0 |
142 | 148 |
|
143 | 149 | # If we are running headless use offscreen rendering for save_image |
144 | 150 | ifndef DISPLAY |
@@ -191,10 +197,6 @@ export UTILS_DIR ?= $(FLOW_HOME)/util |
191 | 197 | export SCRIPTS_DIR ?= $(FLOW_HOME)/scripts |
192 | 198 | export TEST_DIR ?= $(FLOW_HOME)/test |
193 | 199 |
|
194 | | -#------------------------------------------------------------------------------- |
195 | | -# Include design and platform configuration |
196 | | -include $(DESIGN_CONFIG) |
197 | | - |
198 | 200 | PUBLIC=nangate45 sky130hd sky130hs asap7 ihp-sg13g2 gf180 |
199 | 201 |
|
200 | 202 | ifneq ($(wildcard $(PLATFORM_HOME)/$(PLATFORM)),) |
@@ -373,7 +375,7 @@ ifeq ($(wildcard $(3)),) |
373 | 375 | # each macro. |
374 | 376 | block := $(patsubst ./designs/$(PLATFORM)/$(DESIGN_NICKNAME)/%,%,$(dir $(3))) |
375 | 377 | $(1) $(2) &: |
376 | | - $$(UNSET_AND_MAKE) DESIGN_NAME=${block} DESIGN_NICKNAME=$$(DESIGN_NICKNAME)_${block} DESIGN_CONFIG=./designs/$$(PLATFORM)/$$(DESIGN_NICKNAME)/block.mk generate_abstract |
| 378 | + $$(UNSET_AND_MAKE) DESIGN_NAME=${block} DESIGN_NICKNAME=$$(DESIGN_NICKNAME)_${block} DESIGN_CONFIG=$$(shell dirname $$(DESIGN_CONFIG))/block.mk generate_abstract |
377 | 379 | else |
378 | 380 | # There is a unique config.mk for this Verilog module |
379 | 381 | $(1) $(2) &: |
|
0 commit comments