diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2015-04-27 11:17:08 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2015-04-27 11:17:08 +0200 |
commit | a315223f98fa6f1fdea2b1080c5f3e33352ebb13 (patch) | |
tree | 0fb3f6c458df78f58017e9475ff3b0c5cb3b52d0 /toolruns/Makefile | |
parent | 502f0f429a261628fe5e43582280012541c40804 (diff) |
Updating modexp core to v 0.50. This version contains a working core that can perform sign and verify with big keys/values. The core builds ok in Altera and Xilinx FPGA tools. This commit also includes a new testgenerator capable of generating testbench for modexp with autgenerated test data of different lengths. The README has been updated with status and implementation results in for different FPGA devices.
Diffstat (limited to 'toolruns/Makefile')
-rwxr-xr-x | toolruns/Makefile | 15 |
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 |