improved tutorial makefile [skip ci]
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# makefile variables for Hammer tutorials
|
# makefile variables for Hammer tutorials
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
tutorial ?= none
|
tutorial ?= none
|
||||||
|
EXTRA_CONFS ?=
|
||||||
|
|
||||||
# TODO: eventually have asap7 commercial/openroad tutorial flavors
|
# TODO: eventually have asap7 commercial/openroad tutorial flavors
|
||||||
ifeq ($(tutorial),asap7)
|
ifeq ($(tutorial),asap7)
|
||||||
@@ -9,7 +10,7 @@ ifeq ($(tutorial),asap7)
|
|||||||
CONFIG ?= TinyRocketConfig
|
CONFIG ?= TinyRocketConfig
|
||||||
TOOLS_CONF ?= example-tools.yml
|
TOOLS_CONF ?= example-tools.yml
|
||||||
TECH_CONF ?= example-asap7.yml
|
TECH_CONF ?= example-asap7.yml
|
||||||
INPUT_CONFS ?= $(EXTRA_CONFS) $(TOOLS_CONF) $(TECH_CONF)
|
DESIGN_CONFS ?=
|
||||||
VLSI_OBJ_DIR ?= build-asap7-commercial
|
VLSI_OBJ_DIR ?= build-asap7-commercial
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -18,9 +19,9 @@ ifeq ($(tutorial),sky130-commercial)
|
|||||||
CONFIG ?= TinyRocketConfig
|
CONFIG ?= TinyRocketConfig
|
||||||
TOOLS_CONF ?= example-tools.yml
|
TOOLS_CONF ?= example-tools.yml
|
||||||
TECH_CONF ?= example-sky130.yml
|
TECH_CONF ?= example-sky130.yml
|
||||||
DESIGN_CONF ?= example-designs/sky130-commercial.yml
|
DESIGN_CONFS ?= example-designs/sky130-commercial.yml \
|
||||||
EXTRA_CONFS ?= $(if $(filter $(VLSI_TOP),Rocket), example-designs/sky130-rocket.yml, )
|
$(if $(filter $(VLSI_TOP),Rocket), \
|
||||||
INPUT_CONFS ?= $(TOOLS_CONF) $(TECH_CONF) $(DESIGN_CONF) $(EXTRA_CONFS)
|
example-designs/sky130-rocket.yml, )
|
||||||
VLSI_OBJ_DIR ?= build-sky130-commercial
|
VLSI_OBJ_DIR ?= build-sky130-commercial
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@@ -29,13 +30,14 @@ ifeq ($(tutorial),sky130-openroad)
|
|||||||
CONFIG ?= TinyRocketConfig
|
CONFIG ?= TinyRocketConfig
|
||||||
TOOLS_CONF ?= example-openroad.yml
|
TOOLS_CONF ?= example-openroad.yml
|
||||||
TECH_CONF ?= example-sky130.yml
|
TECH_CONF ?= example-sky130.yml
|
||||||
DESIGN_CONF ?= example-designs/sky130-openroad.yml
|
DESIGN_CONFS ?= example-designs/sky130-openroad.yml \
|
||||||
EXTRA_CONFS ?= $(if $(filter $(VLSI_TOP),Rocket), \
|
$(if $(filter $(VLSI_TOP),Rocket), \
|
||||||
example-designs/sky130-rocket.yml, \
|
example-designs/sky130-rocket.yml) \
|
||||||
$(if $(filter $(VLSI_TOP),RocketTile), \
|
$(if $(filter $(VLSI_TOP),RocketTile), \
|
||||||
example-designs/sky130-openroad-rockettile.yml, ))
|
example-designs/sky130-openroad-rockettile.yml, )
|
||||||
INPUT_CONFS ?= $(TOOLS_CONF) $(TECH_CONF) $(DESIGN_CONF) $(EXTRA_CONFS)
|
|
||||||
VLSI_OBJ_DIR ?= build-sky130-openroad
|
VLSI_OBJ_DIR ?= build-sky130-openroad
|
||||||
# Yosys compatibility for CIRCT-generated Verilog, at the expense of elaboration time.
|
# Yosys compatibility for CIRCT-generated Verilog, at the expense of elaboration time.
|
||||||
ENABLE_YOSYS_FLOW = 1
|
ENABLE_YOSYS_FLOW = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
INPUT_CONFS ?= $(TOOLS_CONF) $(TECH_CONF) $(DESIGN_CONFS) $(EXTRA_CONFS)
|
||||||
|
|||||||
Reference in New Issue
Block a user