aboutsummaryrefslogtreecommitdiff
path: root/rtl/curve
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2017-02-12 22:21:57 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2017-02-12 22:21:57 +0300
commit9fa6e368879d30835880b3bb0e87c8cf13dd9874 (patch)
tree75d141e3c84a38e6bbe4e449424066492c125ff1 /rtl/curve
parenta66be3237f5e9f4b6144cec093b047acfd70ffc6 (diff)
Various clean-ups
* Added sample C program for STM32 to test the core in hardware * Parametrized math modules are now instantiated with explicit operand width for clarify (previously relied on default parameter values in underlying modules) * Fixed some comments
Diffstat (limited to 'rtl/curve')
-rw-r--r--rtl/curve/curve_dbl_add_256.v12
1 files changed, 9 insertions, 3 deletions
diff --git a/rtl/curve/curve_dbl_add_256.v b/rtl/curve/curve_dbl_add_256.v
index 08a9931..8ef505d 100644
--- a/rtl/curve/curve_dbl_add_256.v
+++ b/rtl/curve/curve_dbl_add_256.v
@@ -1,8 +1,8 @@
//------------------------------------------------------------------------------
//
-// curve_adder_256.v
+// curve_dbl_add_256.v
// -----------------------------------------------------------------------------
-// Elliptic curve point adder.
+// Elliptic curve point adder and doubler.
//
// Authors: Pavel Shatov
//
@@ -292,7 +292,13 @@ module curve_dbl_add_256
wire [ 32-1:0] mw_mov_din_x;
wire [ 32-1:0] mw_mov_dout_y;
- mw_mover mw_mover_inst
+ mw_mover #
+ (
+ .WORD_COUNTER_WIDTH (WORD_COUNTER_WIDTH),
+ .OPERAND_NUM_WORDS (OPERAND_NUM_WORDS)
+
+ )
+ mw_mover_inst
(
.clk (clk),
.rst_n (rst_n),