From c44c8a77b56778c951fb09f94a577057573dbfa7 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Fri, 17 Jul 2015 10:31:26 -0400 Subject: experimental modexps6 (which requires changing the read timing on all other cores) --- eim/build/Makefile | 26 ++++++++++++++------------ eim/build/xilinx.mk | 4 +++- 2 files changed, 17 insertions(+), 13 deletions(-) (limited to 'eim/build') diff --git a/eim/build/Makefile b/eim/build/Makefile index ae8a5ad..a173950 100644 --- a/eim/build/Makefile +++ b/eim/build/Makefile @@ -56,19 +56,21 @@ vfiles = \ ../../../../cipher/chacha/src/rtl/chacha.v \ ../../../../cipher/chacha/src/rtl/chacha_core.v \ ../../../../cipher/chacha/src/rtl/chacha_qr.v \ - ../../../../math/modexp/src/rtl/adder.v \ - ../../../../math/modexp/src/rtl/blockmem1r1w.v \ - ../../../../math/modexp/src/rtl/blockmem2r1wptr.v \ - ../../../../math/modexp/src/rtl/blockmem2r1w.v \ - ../../../../math/modexp/src/rtl/blockmem2rptr1w.v \ - ../../../../math/modexp/src/rtl/modexp.v \ - ../../../../math/modexp/src/rtl/modexp_core.v \ - ../../../../math/modexp/src/rtl/montprod.v \ - ../../../../math/modexp/src/rtl/residue.v \ - ../../../../math/modexp/src/rtl/shl.v \ - ../../../../math/modexp/src/rtl/shr.v + ../../../../../test/modexps6/src/rtl/modexps6_adder64_carry32.v \ + ../../../../../test/modexps6/src/rtl/modexps6_buffer_core.v \ + ../../../../../test/modexps6/src/rtl/modexps6_buffer_user.v \ + ../../../../../test/modexps6/src/rtl/modexps6_modinv32.v \ + ../../../../../test/modexps6/src/rtl/modexps6_montgomery_coeff.v \ + ../../../../../test/modexps6/src/rtl/modexps6_montgomery_multiplier.v \ + ../../../../../test/modexps6/src/rtl/modexps6_top.v \ + ../../../../../test/modexps6/src/rtl/modexps6_wrapper.v \ + ../../../../../test/modexps6/src/rtl/ram_1rw_1ro_readfirst.v + +xilinx_cores = \ + ../../../../../test/modexps6/src/rtl/ipcore/multiplier_s6.xco \ + ../../../../../test/modexps6/src/rtl/ipcore/subtractor_s6.xco include xilinx.mk lint: - verilator --lint-only --top-module novena_top -Wall -Wno-fatal -Wno-DECLFILENAME $(vfiles) ../../common/rtl/lint-dummy.v + verilator --lint-only --top-module novena_top -Wall -Wno-fatal -Wno-DECLFILENAME $(vfiles) ../../../../math/modexps6/src/rtl/ipcore/multiplier_s6.v ../../../../math/modexps6/src/rtl/ipcore/subtractor_s6..v ../../common/rtl/lint-dummy.v diff --git a/eim/build/xilinx.mk b/eim/build/xilinx.mk index 8065e45..8a81ef9 100644 --- a/eim/build/xilinx.mk +++ b/eim/build/xilinx.mk @@ -31,7 +31,9 @@ # TODO: .xco files are device dependant, should use a template based system coregen_work_dir ?= ./coregen-tmp -map_opts ?= -timing -ol high -detail -pr b -register_duplication -w -xe n +#map_opts ?= -timing -ol high -detail -pr b -register_duplication -w -xe n +# from https://github.com/fpga-logi/logi-hard/blob/master/build_lib/synth/xilinx.mk: +map_opts ?= -w -logic_opt off -ol high -t 1 -xt 0 -register_duplication off -r 4 -global_opt off -mt off -ir off -pr off -lc off -power off par_opts ?= -ol high isedir ?= /opt/Xilinx/13.3/ISE_DS xil_env ?= . $(isedir)/settings32.sh -- cgit v1.2.3 From 769f9691eb54453c2eee00c958ba53a5c2885c71 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Fri, 17 Jul 2015 12:04:46 -0400 Subject: move new modexps6 core from test to core --- eim/build/Makefile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'eim/build') diff --git a/eim/build/Makefile b/eim/build/Makefile index a173950..1541f45 100644 --- a/eim/build/Makefile +++ b/eim/build/Makefile @@ -56,19 +56,19 @@ vfiles = \ ../../../../cipher/chacha/src/rtl/chacha.v \ ../../../../cipher/chacha/src/rtl/chacha_core.v \ ../../../../cipher/chacha/src/rtl/chacha_qr.v \ - ../../../../../test/modexps6/src/rtl/modexps6_adder64_carry32.v \ - ../../../../../test/modexps6/src/rtl/modexps6_buffer_core.v \ - ../../../../../test/modexps6/src/rtl/modexps6_buffer_user.v \ - ../../../../../test/modexps6/src/rtl/modexps6_modinv32.v \ - ../../../../../test/modexps6/src/rtl/modexps6_montgomery_coeff.v \ - ../../../../../test/modexps6/src/rtl/modexps6_montgomery_multiplier.v \ - ../../../../../test/modexps6/src/rtl/modexps6_top.v \ - ../../../../../test/modexps6/src/rtl/modexps6_wrapper.v \ - ../../../../../test/modexps6/src/rtl/ram_1rw_1ro_readfirst.v + ../../../../math/modexps6/src/rtl/modexps6_adder64_carry32.v \ + ../../../../math/modexps6/src/rtl/modexps6_buffer_core.v \ + ../../../../math/modexps6/src/rtl/modexps6_buffer_user.v \ + ../../../../math/modexps6/src/rtl/modexps6_modinv32.v \ + ../../../../math/modexps6/src/rtl/modexps6_montgomery_coeff.v \ + ../../../../math/modexps6/src/rtl/modexps6_montgomery_multiplier.v \ + ../../../../math/modexps6/src/rtl/modexps6_top.v \ + ../../../../math/modexps6/src/rtl/modexps6_wrapper.v \ + ../../../../math/modexps6/src/rtl/ram_1rw_1ro_readfirst.v xilinx_cores = \ - ../../../../../test/modexps6/src/rtl/ipcore/multiplier_s6.xco \ - ../../../../../test/modexps6/src/rtl/ipcore/subtractor_s6.xco + ../../../../math/modexps6/src/rtl/ipcore/multiplier_s6.xco \ + ../../../../math/modexps6/src/rtl/ipcore/subtractor_s6.xco include xilinx.mk -- cgit v1.2.3 From f5cfe0b5d45f627877d8829b25f9ff637749cf97 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Fri, 17 Jul 2015 15:47:57 -0400 Subject: remove .xco files from build --- eim/build/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'eim/build') diff --git a/eim/build/Makefile b/eim/build/Makefile index 1541f45..59f792f 100644 --- a/eim/build/Makefile +++ b/eim/build/Makefile @@ -64,11 +64,9 @@ vfiles = \ ../../../../math/modexps6/src/rtl/modexps6_montgomery_multiplier.v \ ../../../../math/modexps6/src/rtl/modexps6_top.v \ ../../../../math/modexps6/src/rtl/modexps6_wrapper.v \ - ../../../../math/modexps6/src/rtl/ram_1rw_1ro_readfirst.v - -xilinx_cores = \ - ../../../../math/modexps6/src/rtl/ipcore/multiplier_s6.xco \ - ../../../../math/modexps6/src/rtl/ipcore/subtractor_s6.xco + ../../../../math/modexps6/src/rtl/ram_1rw_1ro_readfirst.v \ + ../../../../math/modexps6/src/rtl/ipcore/multiplier_s6.v \ + ../../../../math/modexps6/src/rtl/ipcore/subtractor_s6.v include xilinx.mk -- cgit v1.2.3 From 5f1de63e3bc6043ee10683a2c9fd8a7c03a3983a Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Sat, 18 Jul 2015 06:06:55 -0400 Subject: update lint for new ipcore modules --- eim/build/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eim/build') diff --git a/eim/build/Makefile b/eim/build/Makefile index 59f792f..6b251f2 100644 --- a/eim/build/Makefile +++ b/eim/build/Makefile @@ -71,4 +71,4 @@ vfiles = \ include xilinx.mk lint: - verilator --lint-only --top-module novena_top -Wall -Wno-fatal -Wno-DECLFILENAME $(vfiles) ../../../../math/modexps6/src/rtl/ipcore/multiplier_s6.v ../../../../math/modexps6/src/rtl/ipcore/subtractor_s6..v ../../common/rtl/lint-dummy.v + verilator --lint-only --top-module novena_top -Wall -Wno-fatal -Wno-DECLFILENAME $(vfiles) ../../common/rtl/lint-dummy.v -- cgit v1.2.3