Makefile: override configuration variables from command line

This commit is contained in:
Zihao Yu 2023-07-28 10:39:29 +08:00
parent a6fff7f0d7
commit 111f0e0b0a
1 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
PROJ_PATH = $(shell pwd)
DESIGN = gcd
SDC_FILE = $(PROJ_PATH)/example/gcd.sdc
RTL_FILES = $(shell find $(PROJ_PATH)/example -name "*.v")
export CLK_FREQ_MHZ = 500
DESIGN ?= gcd
SDC_FILE ?= $(PROJ_PATH)/example/gcd.sdc
RTL_FILES ?= $(shell find $(PROJ_PATH)/example -name "*.v")
export CLK_FREQ_MHZ ?= 500
RESULT_DIR = $(PROJ_PATH)/result/$(DESIGN)
NETLIST_V = $(RESULT_DIR)/$(DESIGN).netlist.v