aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-03-06 18:14:20 -0500
committerRob Austein <sra@hactrn.net>2017-03-06 18:14:20 -0500
commit020726888d97a1da288bcc78f6345e7e181c5759 (patch)
tree24eabd49e4c39386e2723c339b45e2f880f47ddf
parent584e2974cf87b8f1b9279c0b4faa1f22b1ff54c4 (diff)
Add ecdsa384 core.
-rw-r--r--config/core.cfg56
1 files changed, 56 insertions, 0 deletions
diff --git a/config/core.cfg b/config/core.cfg
index e9ed10a..3944c5a 100644
--- a/config/core.cfg
+++ b/config/core.cfg
@@ -94,6 +94,10 @@ cores = mkmif trng sha1 sha1 sha1 sha256 sha256 sha256 sha512 sha512 sha512 aes
# make me one with everything including experimental ecdsa256 core
cores = sha1 sha256 sha512 aes trng modexp mkmif ecdsa256
+[project hsm-ecdsa384]
+# make me one with everything including experimental ecdsa384 core
+cores = sha1 sha256 sha512 aes trng modexp mkmif ecdsa384
+
# [core] sections
#
# vfiles: A list of Verilog files to include in the vfiles list when
@@ -311,3 +315,55 @@ vfiles =
../user/shatov/ecdsa256/rtl/multiword/mw_mover.v
../user/shatov/ecdsa256/rtl/multiword/mw_comparator.v
../user/shatov/ecdsa256/rtl/ecdsa256_wrapper.v
+
+[core ecdsa384]
+# ECDSA-P384 point multipler
+# I *think* this all fits in one 256-register core block (see address map in ecdsa384/README.md)
+# but I may be reading this cross-eyed so come back to this if the resulting bitstream acts weird.
+block memory = yes
+error wire = no
+module name = ecdsa384_wrapper
+vfiles =
+ ../user/shatov/ecdsa384/rtl/curve/uop/uop_conv_rom.v
+ ../user/shatov/ecdsa384/rtl/curve/uop/uop_add_rom.v
+ ../user/shatov/ecdsa384/rtl/curve/uop/uop_init_rom.v
+ ../user/shatov/ecdsa384/rtl/curve/uop/uop_dbl_rom.v
+ ../user/shatov/ecdsa384/rtl/curve/curve_mul_384.v
+ ../user/shatov/ecdsa384/rtl/curve/rom/brom_p384_q.v
+ ../user/shatov/ecdsa384/rtl/curve/rom/brom_p384_h_x.v
+ ../user/shatov/ecdsa384/rtl/curve/rom/brom_p384_h_y.v
+ ../user/shatov/ecdsa384/rtl/curve/rom/brom_p384_g_x.v
+ ../user/shatov/ecdsa384/rtl/curve/rom/brom_p384_g_y.v
+ ../user/shatov/ecdsa384/rtl/curve/rom/brom_p384_one.v
+ ../user/shatov/ecdsa384/rtl/curve/rom/brom_p384_delta.v
+ ../user/shatov/ecdsa384/rtl/curve/rom/brom_p384_zero.v
+ ../user/shatov/ecdsa384/rtl/curve/uop_ecdsa.v
+ ../user/shatov/ecdsa384/rtl/curve/curve_dbl_add_384.v
+ ../user/shatov/ecdsa384/rtl/multiword/mw_comparator.v
+ ../user/shatov/ecdsa384/rtl/multiword/mw_mover.v
+ ../user/shatov/ecdsa384/rtl/util/bram_1rw_1ro_readfirst.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_adder.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_multiplier_384.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_subtractor.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/helper/modinv_helper_invert_update.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/helper/modinv_helper_reduce_update.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/helper/modinv_helper_copy.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/helper/modinv_helper_invert_precalc.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/helper/modinv_helper_init.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/helper/modinv_helper_reduce_precalc.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/helper/modinv_helper_invert_compare.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/modular_invertor.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_invertor/modinv_clog2.v
+ ../user/shatov/ecdsa384/rtl/modular/modular_reductor_384.v
+ ../user/shatov/ecdsa384/rtl/ecdsa384.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/ecdsa_lowlevel_settings.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/mac16_wrapper.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/subtractor32_wrapper.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/adder47_wrapper.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/adder32_wrapper.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/artix7/adder32_artix7.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/artix7/adder47_artix7.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/artix7/subtractor32_artix7.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/artix7/mac16_artix7.v
+ ../user/shatov/ecdsa384/rtl/lowlevel/artix7/dsp48e1_wrapper.v
+ ../user/shatov/ecdsa384/rtl/ecdsa384_wrapper.v