Skip to content

Commit 703e904

Browse files
authored
Merge pull request #4080 from oharboe/design-dir-consistency
fix: use DESIGN_DIR instead of custom dir variables in chameleon/microwatt
2 parents 7ecbab8 + dc44f64 commit 703e904

3 files changed

Lines changed: 14 additions & 17 deletions

File tree

flow/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ DESIGN_CONFIG ?= ./designs/nangate45/gcd/config.mk
8888
export DESIGN_CONFIG
8989
include $(DESIGN_CONFIG)
9090

91-
export DESIGN_DIR ?= $(dir $(DESIGN_CONFIG))
91+
export DESIGN_DIR ?= $(patsubst %/,%,$(dir $(DESIGN_CONFIG)))
9292

9393
# default value "base" for FLOW_VARIANT and "." for WORK_HOME are duplicated
9494
# from variables.yaml and variables.mk because we need it

flow/designs/sky130hd/chameleon/config.mk

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,19 @@ export CORE_UTILIZATION = 70
3333
export CORE_ASPECT_RATIO = 1.3
3434
export CORE_MARGIN = 2
3535

36-
export chameleon_DIR = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)
37-
export LEC_AUX_VERILOG_FILES = $(chameleon_DIR)/lec_blackbox_stubs.v
36+
export LEC_AUX_VERILOG_FILES = $(DESIGN_DIR)/lec_blackbox_stubs.v
3837

39-
export ADDITIONAL_GDS = $(chameleon_DIR)/gds/apb_sys_0.gds.gz \
40-
$(chameleon_DIR)/gds/DMC_32x16HC.gds.gz \
41-
$(chameleon_DIR)/gds/DFFRAM_4K.gds.gz \
42-
$(chameleon_DIR)/gds/ibex_wrapper.gds.gz
38+
export ADDITIONAL_GDS = $(DESIGN_DIR)/gds/apb_sys_0.gds.gz \
39+
$(DESIGN_DIR)/gds/DMC_32x16HC.gds.gz \
40+
$(DESIGN_DIR)/gds/DFFRAM_4K.gds.gz \
41+
$(DESIGN_DIR)/gds/ibex_wrapper.gds.gz
4342

44-
export ADDITIONAL_LEFS = $(chameleon_DIR)/lef/apb_sys_0.lef \
45-
$(chameleon_DIR)/lef/DFFRAM_4K.lef \
46-
$(chameleon_DIR)/lef/DMC_32x16HC.lef \
47-
$(chameleon_DIR)/lef/ibex_wrapper.lef
43+
export ADDITIONAL_LEFS = $(DESIGN_DIR)/lef/apb_sys_0.lef \
44+
$(DESIGN_DIR)/lef/DFFRAM_4K.lef \
45+
$(DESIGN_DIR)/lef/DMC_32x16HC.lef \
46+
$(DESIGN_DIR)/lef/ibex_wrapper.lef
4847

49-
#export MACRO_PLACEMENT_TCL = $(chameleon_DIR)/macro_placement.tcl
48+
#export MACRO_PLACEMENT_TCL = $(DESIGN_DIR)/macro_placement.tcl
5049

5150
export FP_PDN_RAIL_WIDTH = 0.48
5251
export FP_PDN_RAIL_OFFSET = 0

flow/designs/sky130hd/microwatt/config.mk

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ export SDC_FILE = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/constraint.
1111
export DIE_AREA = 0 0 3020 3610
1212
export CORE_AREA = 10 10 3010 3600
1313

14-
export microwatt_DIR = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)
14+
export ADDITIONAL_GDS = $(wildcard $(DESIGN_DIR)/gds/*.gds.gz)
1515

16-
export ADDITIONAL_GDS = $(wildcard $(microwatt_DIR)/gds/*.gds.gz)
16+
export ADDITIONAL_LEFS = $(wildcard $(DESIGN_DIR)/lef/*.lef)
1717

18-
export ADDITIONAL_LEFS = $(wildcard $(microwatt_DIR)/lef/*.lef)
19-
20-
export ADDITIONAL_LIBS = $(wildcard $(microwatt_DIR)/lib/*.lib)
18+
export ADDITIONAL_LIBS = $(wildcard $(DESIGN_DIR)/lib/*.lib)
2119

2220
export SYNTH_HIERARCHICAL = 1
2321

0 commit comments

Comments
 (0)