Fix verilator clean
This commit is contained in:
@@ -90,4 +90,4 @@ $(output_dir)/%.vpd: $(output_dir)/% $(sim_debug)
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(build_dir) $(sim_prefix)-*
|
rm -rf $(gen_dir)/* $(sim_prefix)-*
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ VCS_NONCC_OPTS = \
|
|||||||
-sverilog \
|
-sverilog \
|
||||||
+incdir+$(build_dir) \
|
+incdir+$(build_dir) \
|
||||||
+define+CLOCK_PERIOD=1.0 \
|
+define+CLOCK_PERIOD=1.0 \
|
||||||
$(sim_vsrcs) \
|
$(sim_vsrcs) \
|
||||||
+define+PRINTF_COND=$(TB).printf_cond \
|
+define+PRINTF_COND=$(TB).printf_cond \
|
||||||
+define+STOP_COND=!$(TB).reset \
|
+define+STOP_COND=!$(TB).reset \
|
||||||
+define+RANDOMIZE_MEM_INIT \
|
+define+RANDOMIZE_MEM_INIT \
|
||||||
@@ -94,4 +94,4 @@ $(output_dir)/%.vpd: $(output_dir)/% $(sim_debug)
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(sim_dir)/generated-src/* csrc $(sim_prefix)-* ucli.key vc_hdrs.h
|
rm -rf $(gen_dir)/* csrc $(sim_prefix)-* ucli.key vc_hdrs.h
|
||||||
|
|||||||
@@ -138,7 +138,8 @@ output_dir=$(sim_dir)/output
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
# build output directory for compilation
|
# build output directory for compilation
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
build_dir=$(sim_dir)/generated-src/$(long_name)
|
gen_dir=$(sim_dir)/generated-src
|
||||||
|
build_dir=$(gen_dir)/$(long_name)
|
||||||
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# vsrcs needed to run projects
|
# vsrcs needed to run projects
|
||||||
|
|||||||
Reference in New Issue
Block a user