Merge pull request #1899 from ucb-bar/firrtl-log
Generate a log file of the CIRCT output
This commit is contained in:
17
common.mk
17
common.mk
@@ -96,16 +96,6 @@ TAPEOUT_VLOG_SOURCES = $(call lookup_srcs_by_multiple_type,$(TAPEOUT_SOURCE_DIRS
|
|||||||
SBT_SOURCE_DIRS = $(addprefix $(base_dir)/,generators tools)
|
SBT_SOURCE_DIRS = $(addprefix $(base_dir)/,generators tools)
|
||||||
SBT_SOURCES = $(call lookup_srcs,$(SBT_SOURCE_DIRS),sbt) $(base_dir)/build.sbt $(base_dir)/project/plugins.sbt $(base_dir)/project/build.properties
|
SBT_SOURCES = $(call lookup_srcs,$(SBT_SOURCE_DIRS),sbt) $(base_dir)/build.sbt $(base_dir)/project/plugins.sbt $(base_dir)/project/build.properties
|
||||||
|
|
||||||
#########################################################################################
|
|
||||||
# SBT Server Setup (start server / rebuild proj. defs. if SBT_SOURCES change)
|
|
||||||
#########################################################################################
|
|
||||||
$(SBT_THIN_CLIENT_TIMESTAMP): $(SBT_SOURCES)
|
|
||||||
ifneq (,$(wildcard $(SBT_THIN_CLIENT_TIMESTAMP)))
|
|
||||||
cd $(base_dir) && $(SBT) "reload"
|
|
||||||
touch $@
|
|
||||||
else
|
|
||||||
cd $(base_dir) && $(SBT) "exit"
|
|
||||||
endif
|
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# copy over bootrom files
|
# copy over bootrom files
|
||||||
@@ -179,7 +169,8 @@ SFC_MFC_TARGETS = \
|
|||||||
$(MFC_MODEL_SMEMS_JSON) \
|
$(MFC_MODEL_SMEMS_JSON) \
|
||||||
$(MFC_FILELIST) \
|
$(MFC_FILELIST) \
|
||||||
$(MFC_BB_MODS_FILELIST) \
|
$(MFC_BB_MODS_FILELIST) \
|
||||||
$(GEN_COLLATERAL_DIR)
|
$(GEN_COLLATERAL_DIR) \
|
||||||
|
$(FIRTOOL_LOG_FILE)
|
||||||
|
|
||||||
MFC_BASE_LOWERING_OPTIONS ?= emittedLineLength=2048,noAlwaysComb,disallowLocalVariables,verifLabels,disallowPortDeclSharing,locationInfoStyle=wrapInAtSquareBracket
|
MFC_BASE_LOWERING_OPTIONS ?= emittedLineLength=2048,noAlwaysComb,disallowLocalVariables,verifLabels,disallowPortDeclSharing,locationInfoStyle=wrapInAtSquareBracket
|
||||||
|
|
||||||
@@ -194,7 +185,7 @@ endif
|
|||||||
|
|
||||||
$(SFC_MFC_TARGETS) &: $(FIRRTL_FILE) $(FINAL_ANNO_FILE) $(MFC_LOWERING_OPTIONS)
|
$(SFC_MFC_TARGETS) &: $(FIRRTL_FILE) $(FINAL_ANNO_FILE) $(MFC_LOWERING_OPTIONS)
|
||||||
rm -rf $(GEN_COLLATERAL_DIR)
|
rm -rf $(GEN_COLLATERAL_DIR)
|
||||||
firtool \
|
(set -o pipefail && firtool \
|
||||||
--format=fir \
|
--format=fir \
|
||||||
--export-module-hierarchy \
|
--export-module-hierarchy \
|
||||||
--verify-each=true \
|
--verify-each=true \
|
||||||
@@ -208,7 +199,7 @@ $(SFC_MFC_TARGETS) &: $(FIRRTL_FILE) $(FINAL_ANNO_FILE) $(MFC_LOWERING_OPTIONS)
|
|||||||
--annotation-file=$(FINAL_ANNO_FILE) \
|
--annotation-file=$(FINAL_ANNO_FILE) \
|
||||||
--split-verilog \
|
--split-verilog \
|
||||||
-o $(GEN_COLLATERAL_DIR) \
|
-o $(GEN_COLLATERAL_DIR) \
|
||||||
$(FIRRTL_FILE)
|
$(FIRRTL_FILE) |& tee $(FIRTOOL_LOG_FILE))
|
||||||
$(SED) -i 's/.*/& /' $(MFC_SMEMS_CONF) # need trailing space for SFC macrocompiler
|
$(SED) -i 's/.*/& /' $(MFC_SMEMS_CONF) # need trailing space for SFC macrocompiler
|
||||||
touch $(MFC_BB_MODS_FILELIST) # if there are no BB's then the file might not be generated, instead always generate it
|
touch $(MFC_BB_MODS_FILELIST) # if there are no BB's then the file might not be generated, instead always generate it
|
||||||
# DOC include end: FirrtlCompiler
|
# DOC include end: FirrtlCompiler
|
||||||
|
|||||||
@@ -154,6 +154,7 @@ TAPEOUT_CLASSPATH ?= $(CLASSPATH_CACHE)/tapeout.jar
|
|||||||
FIRRTL_FILE ?= $(build_dir)/$(long_name).fir
|
FIRRTL_FILE ?= $(build_dir)/$(long_name).fir
|
||||||
ANNO_FILE ?= $(build_dir)/$(long_name).anno.json
|
ANNO_FILE ?= $(build_dir)/$(long_name).anno.json
|
||||||
CHISEL_LOG_FILE ?= $(build_dir)/$(long_name).chisel.log
|
CHISEL_LOG_FILE ?= $(build_dir)/$(long_name).chisel.log
|
||||||
|
FIRTOOL_LOG_FILE ?= $(build_dir)/$(long_name).firtool.log
|
||||||
|
|
||||||
# chisel anno modification output
|
# chisel anno modification output
|
||||||
MFC_EXTRA_ANNO_FILE ?= $(build_dir)/$(long_name).extrafirtool.anno.json
|
MFC_EXTRA_ANNO_FILE ?= $(build_dir)/$(long_name).extrafirtool.anno.json
|
||||||
|
|||||||
Reference in New Issue
Block a user