From a315223f98fa6f1fdea2b1080c5f3e33352ebb13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Mon, 27 Apr 2015 11:17:08 +0200 Subject: 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. --- toolruns/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'toolruns') 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 -- cgit v1.2.3