From 1cf06fc324f3e3821e88e7cc12cff75dd8c771cd Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Wed, 17 Jan 2024 11:30:27 -0800 Subject: [PATCH] Track changes in Radiance args.bin/op_*.bin in makefiles --- common.mk | 2 +- variables.mk | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/common.mk b/common.mk index 3763584f..9ee59fe2 100644 --- a/common.mk +++ b/common.mk @@ -23,7 +23,7 @@ HELP_COMPILATION_VARIABLES += \ " MFC_BASE_LOWERING_OPTIONS = override lowering options to pass to the MLIR FIRRTL compiler" \ " ASPECTS = comma separated list of Chisel aspect flows to run (e.x. chipyard.upf.ChipTopUPFAspect)" -EXTRA_GENERATOR_REQS ?= $(BOOTROM_TARGETS) +EXTRA_GENERATOR_REQS ?= $(BOOTROM_TARGETS) $(ARGSROM_TARGETS) EXTRA_SIM_CXXFLAGS ?= EXTRA_SIM_LDFLAGS ?= EXTRA_SIM_SOURCES ?= diff --git a/variables.mk b/variables.mk index 705b8955..e296b410 100644 --- a/variables.mk +++ b/variables.mk @@ -226,6 +226,10 @@ ALL_MODS_FILELIST ?= $(build_dir)/$(long_name).all.f BOOTROM_FILES ?= bootrom.rv64.img bootrom.rv32.img bootrom.radiance.rv32.img BOOTROM_TARGETS ?= $(addprefix $(build_dir)/, $(BOOTROM_FILES)) +# custom *.bin argument files needed for Radiance +ARGSROM_FILES ?= args.bin op_a.bin op_b.bin +ARGSROM_TARGETS ?= $(addprefix $(base_dir)/sims/, $(ARGSROM_FILES)) + # files that contain lists of files needed for VCS or Verilator simulation SIM_FILE_REQS = sim_files ?= $(build_dir)/sim_files.f