aboutsummaryrefslogtreecommitdiff
path: root/toolruns/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolruns/Makefile')
-rwxr-xr-xtoolruns/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/toolruns/Makefile b/toolruns/Makefile
index 64aed4f..1f7c155 100755
--- a/toolruns/Makefile
+++ b/toolruns/Makefile
@@ -55,20 +55,22 @@ MONTPROD_SRC = ../src/rtl/montprod.v
MODEXP_SRC=../src/rtl/modexp.v $(MONTPROD_SRC) $(RESIDUE_SRC) $(COMMON_SRC)
MODEXP_TB=../src/tb/tb_modexp.v
+MODEXP_AUTOGENERATED_TB = ../src/tb/tb_modexp_autogenerated.v
# Rules.
-all: modexp.sim montprod.sim residue.sim
+all: modexp.sim modexp.autogenerated.sim montprod.sim residue.sim
modexp.sim: $(MODEXP_TB) $(MODEXP_SRC)
$(CC) $(CCFLAGS) -o modexp.sim $(MODEXP_TB) $(MODEXP_SRC)
+modexp.autogenerated.sim: $(MODEXP_AUTOGENERATED_TB) $(MODEXP_SRC)
+ $(CC) $(CCFLAGS) -o modexp.autogenerated.sim $(MODEXP_AUTOGENERATED_TB) $(MODEXP_SRC)
montprod.sim: $(MONTPROD_TB) $(MONTPROD_SRC) $(COMMON_SRC)
$(CC) $(CCFLAGS) -o montprod.sim $(MONTPROD_TB) $(MONTPROD_SRC) $(COMMON_SRC)
-
residue.sim: $(RESIDUE_TB) $(RESIDUE_SRC) $(COMMON_SRC)
$(CC) $(CCFLAGS) -o residue.sim $(RESIDUE_TB) $(RESIDUE_SRC) $(COMMON_SRC)
@@ -76,6 +78,9 @@ residue.sim: $(RESIDUE_TB) $(RESIDUE_SRC) $(COMMON_SRC)
sim-modexp: modexp.sim
./modexp.sim
+# run autogenerate-tests manually to renew ../src/tb/tb_montprod_autogenerated.v
+sim-modexp-autogenerated: modexp.autogenerated.sim
+ ./modexp.autogenerated.sim
sim-montprod: montprod.sim
./montprod.sim
@@ -105,6 +110,7 @@ autogenerate-tests:
clean:
rm -f modexp.sim
+ rm -f modexp.autogenerated.sim
rm -f montprod.sim
rm -f residue.sim
@@ -123,6 +129,11 @@ help:
@echo "sim-montprod: Run montprod simulation."
@echo "sim-residue: Run residue simulation."
@echo "clean: Delete all built files."
+ @echo ""
+ @echo "Supported autogeneration targets:"
+ @echo "autogenerate-tests - rebuild autogenerated tests source code"
+ @echo "modexp.autogenerated.sim - run autogenerated test bench"
+ @echo "sim-modexp-autogenerated - simulate autogenerated tests"
#===================================================================
# EOF Makefile