44SHELL =/bin/bash
55
66ifndef RISCV
7- $(error RISCV is unset. You must set RISCV yourself, or through the Chipyard auto-generated env file)
7+ $(error RISCV is unset. Did you source the Chipyard auto-generated env file (which activates the default conda environment)? )
88else
99$(info Running with RISCV=$(RISCV))
1010endif
@@ -101,12 +101,8 @@ $(BOOTROM_TARGETS): $(build_dir)/bootrom.%.img: $(TESTCHIP_RSRCS_DIR)/testchipip
101101# ########################################################################################
102102# create firrtl file rule and variables
103103# ########################################################################################
104- .INTERMEDIATE : generator_temp
105- $(FIRRTL_FILE ) $(ANNO_FILE ) : generator_temp
106- @echo " " > /dev/null
107-
108104# AG: must re-elaborate if cva6 sources have changed... otherwise just run firrtl compile
109- generator_temp : $(SCALA_SOURCES ) $(sim_files ) $(SCALA_BUILDTOOL_DEPS ) $(EXTRA_GENERATOR_REQS )
105+ $( FIRRTL_FILE ) $( ANNO_FILE ) & : $(SCALA_SOURCES ) $(sim_files ) $(SCALA_BUILDTOOL_DEPS ) $(EXTRA_GENERATOR_REQS )
110106 mkdir -p $(build_dir )
111107 $(call run_scala_main,$(SBT_PROJECT ) ,$(GENERATOR_PACKAGE ) .Generator,\
112108 --target-dir $(build_dir ) \
@@ -128,12 +124,7 @@ TOP_TARGETS = $(TOP_FILE) $(TOP_SMEMS_CONF) $(TOP_ANNO) $(TOP_FIR) $(sim_top_bla
128124HARNESS_TARGETS = $(HARNESS_FILE ) $(HARNESS_SMEMS_CONF ) $(HARNESS_ANNO ) $(HARNESS_FIR ) $(sim_harness_blackboxes )
129125
130126# DOC include start: FirrtlCompiler
131- # NOTE: These *_temp intermediate targets will get removed in favor of make 4.3 grouped targets (&: operator)
132- .INTERMEDIATE : firrtl_temp
133- $(TOP_TARGETS ) $(HARNESS_TARGETS ) : firrtl_temp
134- @echo " " > /dev/null
135-
136- firrtl_temp : $(FIRRTL_FILE ) $(ANNO_FILE ) $(VLOG_SOURCES )
127+ $(TOP_TARGETS ) $(HARNESS_TARGETS ) & : $(FIRRTL_FILE ) $(ANNO_FILE ) $(VLOG_SOURCES )
137128 $(call run_scala_main,tapeout,barstools.tapeout.transforms.GenerateTopAndHarness,\
138129 --allow-unrecognized-annotations \
139130 --output-file $(TOP_FILE ) \
@@ -158,19 +149,11 @@ firrtl_temp: $(FIRRTL_FILE) $(ANNO_FILE) $(VLOG_SOURCES)
158149
159150# This file is for simulation only. VLSI flows should replace this file with one containing hard SRAMs
160151MACROCOMPILER_MODE ?= --mode synflops
161- .INTERMEDIATE : top_macro_temp
162- $(TOP_SMEMS_FILE ) $(TOP_SMEMS_FIR ) : top_macro_temp
163- @echo " " > /dev/null
164-
165- top_macro_temp : $(TOP_SMEMS_CONF )
152+ $(TOP_SMEMS_FILE ) $(TOP_SMEMS_FIR ) & : $(TOP_SMEMS_CONF )
166153 $(call run_scala_main,tapeout,barstools.macros.MacroCompiler,-n $(TOP_SMEMS_CONF ) -v $(TOP_SMEMS_FILE ) -f $(TOP_SMEMS_FIR ) $(MACROCOMPILER_MODE ) )
167154
168155HARNESS_MACROCOMPILER_MODE = --mode synflops
169- .INTERMEDIATE : harness_macro_temp
170- $(HARNESS_SMEMS_FILE ) $(HARNESS_SMEMS_FIR ) : harness_macro_temp
171- @echo " " > /dev/null
172-
173- harness_macro_temp : $(HARNESS_SMEMS_CONF ) | top_macro_temp
156+ $(HARNESS_SMEMS_FILE ) $(HARNESS_SMEMS_FIR ) & : $(HARNESS_SMEMS_CONF ) | $(TOP_SMEMS_FILE )
174157 $(call run_scala_main,tapeout,barstools.macros.MacroCompiler, -n $(HARNESS_SMEMS_CONF ) -v $(HARNESS_SMEMS_FILE ) -f $(HARNESS_SMEMS_FIR ) $(HARNESS_MACROCOMPILER_MODE ) )
175158
176159# #######################################################################################
0 commit comments