From 7866ef977fa9613491d5daf334745fe5ac80bce8 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Tue, 14 Mar 2023 21:00:47 -0700 Subject: [PATCH 1/2] Fix common.mk help message string --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mk b/common.mk index d0526444..ce210bbc 100644 --- a/common.mk +++ b/common.mk @@ -18,7 +18,7 @@ HELP_COMPILATION_VARIABLES += \ " EXTRA_SIM_REQS = additional make requirements to build the simulator" \ " ENABLE_SBT_THIN_CLIENT = if set, use sbt's experimental thin client (works best when overridding SBT_BIN with the mainline sbt script)" \ " ENABLE_CUSTOM_FIRRTL_PASS = if set, enable custom firrtl passes (SFC lowers to LowFIRRTL & MFC converts to Verilog)" \ -" ENABLE_YOSYS_FLOW = if set, add compilation flags to enable the vlsi flow for yosys(tutorial flow) \ +" ENABLE_YOSYS_FLOW = if set, add compilation flags to enable the vlsi flow for yosys(tutorial flow)" \ " EXTRA_CHISEL_OPTIONS = additional options to pass to the Chisel compiler" \ " EXTRA_FIRRTL_OPTIONS = additional options to pass to the FIRRTL compiler" From 954ea0722a93513a5d07de11532761be8fdf3e5a Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Tue, 14 Mar 2023 21:01:11 -0700 Subject: [PATCH 2/2] Add logged output of chisel elab to generated-src --- common.mk | 4 ++-- variables.mk | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common.mk b/common.mk index ce210bbc..76705a7f 100644 --- a/common.mk +++ b/common.mk @@ -104,14 +104,14 @@ $(BOOTROM_TARGETS): $(build_dir)/bootrom.%.img: $(TESTCHIP_RSRCS_DIR)/testchipip # create firrtl file rule and variables ######################################################################################### # AG: must re-elaborate if cva6 sources have changed... otherwise just run firrtl compile -$(FIRRTL_FILE) $(ANNO_FILE) &: $(SCALA_SOURCES) $(SCALA_BUILDTOOL_DEPS) $(EXTRA_GENERATOR_REQS) +$(FIRRTL_FILE) $(ANNO_FILE) $(CHISEL_LOG_FILE) &: $(SCALA_SOURCES) $(SCALA_BUILDTOOL_DEPS) $(EXTRA_GENERATOR_REQS) mkdir -p $(build_dir) $(call run_scala_main,$(SBT_PROJECT),$(GENERATOR_PACKAGE).Generator,\ --target-dir $(build_dir) \ --name $(long_name) \ --top-module $(MODEL_PACKAGE).$(MODEL) \ --legacy-configs $(CONFIG_PACKAGE):$(CONFIG) \ - $(EXTRA_CHISEL_OPTIONS)) + $(EXTRA_CHISEL_OPTIONS)) | tee $(CHISEL_LOG_FILE) define mfc_extra_anno_contents [ diff --git a/variables.mk b/variables.mk index 28727a26..a38d8c85 100644 --- a/variables.mk +++ b/variables.mk @@ -147,6 +147,7 @@ endif FIRRTL_FILE ?= $(build_dir)/$(long_name).fir ANNO_FILE ?= $(build_dir)/$(long_name).anno.json EXTRA_ANNO_FILE ?= $(build_dir)/$(long_name).extra.anno.json +CHISEL_LOG_FILE ?= $(build_dir)/$(long_name).chisel.log # chisel anno modification output MFC_EXTRA_ANNO_FILE ?= $(build_dir)/$(long_name).extrafirtool.anno.json