Skip to content

Commit 629c464

Browse files
authored
Merge pull request #2337 from Pinata-Consulting/makefile-pola-tweaks
Makefile POLA and less repetition tweaks
2 parents 8184f71 + 9deebe4 commit 629c464

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

flow/Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# file to avoid having to adding the to the make command line.
33
-include settings.mk
44

5+
# Include design and platform configuration before setting default options
6+
# in this file. This allows the DESIGN_CONFIG to set different defaults than
7+
# this file.
8+
include $(DESIGN_CONFIG)
9+
510
# ==============================================================================
611
# Uncomment or add the design to run
712
# ==============================================================================
@@ -139,6 +144,7 @@ export ROUTING_LAYER_ADJUSTMENT ?= 0.5
139144
export RECOVER_POWER ?= 0
140145
export SKIP_INCREMENTAL_REPAIR ?= 0
141146
export DETAILED_METRICS ?= 0
147+
export EQUIVALENCE_CHECK ?= 0
142148

143149
# If we are running headless use offscreen rendering for save_image
144150
ifndef DISPLAY
@@ -191,10 +197,6 @@ export UTILS_DIR ?= $(FLOW_HOME)/util
191197
export SCRIPTS_DIR ?= $(FLOW_HOME)/scripts
192198
export TEST_DIR ?= $(FLOW_HOME)/test
193199

194-
#-------------------------------------------------------------------------------
195-
# Include design and platform configuration
196-
include $(DESIGN_CONFIG)
197-
198200
PUBLIC=nangate45 sky130hd sky130hs asap7 ihp-sg13g2 gf180
199201

200202
ifneq ($(wildcard $(PLATFORM_HOME)/$(PLATFORM)),)

flow/scripts/cts.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ if {[info exist ::env(CTS_SNAPSHOTS)]} {
7272
}
7373

7474
if {[info exists ::env(SKIP_CTS_REPAIR_TIMING)] == 0 || $::env(SKIP_CTS_REPAIR_TIMING) == 0} {
75-
if {[info exists ::env(EQUIVALENCE_CHECK)] && $::env(EQUIVALENCE_CHECK) == 1} {
75+
if {$::env(EQUIVALENCE_CHECK)} {
7676
write_eqy_verilog 4_before_rsz.v
7777
}
7878

7979
repair_timing_helper
8080

81-
if {[info exists ::env(EQUIVALENCE_CHECK)] && $::env(EQUIVALENCE_CHECK) == 1} {
81+
if {$::env(EQUIVALENCE_CHECK)} {
8282
run_equivalence_test
8383
}
8484

0 commit comments

Comments
 (0)