summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2018-10-15 15:49:49 +0300
committerPavel V. Shatov (Meister) <meisterpaul1@yandex.ru>2018-10-15 15:49:49 +0300
commit1a233271ba75b0a878068e5c6acfb7ba66480c21 (patch)
tree85b7092d5a72306e9a602891818f9b9c84d313d9
parent469110c8636aff88bde5a94f7a1596b88126547b (diff)
Fixed wrong word order.
-rw-r--r--rtl/ed25519_bank.v78
1 files changed, 39 insertions, 39 deletions
diff --git a/rtl/ed25519_bank.v b/rtl/ed25519_bank.v
index 9c8100e..81984f3 100644
--- a/rtl/ed25519_bank.v
+++ b/rtl/ed25519_bank.v
@@ -58,60 +58,60 @@ module ed25519_bank
//
// CONST_ZERO
//
- bram[ 0*8 + 0] = 32'h00000000;
- bram[ 0*8 + 1] = 32'h00000000;
- bram[ 0*8 + 2] = 32'h00000000;
- bram[ 0*8 + 3] = 32'h00000000;
- bram[ 0*8 + 4] = 32'h00000000;
- bram[ 0*8 + 5] = 32'h00000000;
- bram[ 0*8 + 6] = 32'h00000000;
bram[ 0*8 + 7] = 32'h00000000;
+ bram[ 0*8 + 6] = 32'h00000000;
+ bram[ 0*8 + 5] = 32'h00000000;
+ bram[ 0*8 + 4] = 32'h00000000;
+ bram[ 0*8 + 3] = 32'h00000000;
+ bram[ 0*8 + 2] = 32'h00000000;
+ bram[ 0*8 + 1] = 32'h00000000;
+ bram[ 0*8 + 0] = 32'h00000000;
//
// CONST_ONE
//
- bram[ 1*8 + 0] = 32'h00000001;
- bram[ 1*8 + 1] = 32'h00000000;
- bram[ 1*8 + 2] = 32'h00000000;
- bram[ 1*8 + 3] = 32'h00000000;
- bram[ 1*8 + 4] = 32'h00000000;
- bram[ 1*8 + 5] = 32'h00000000;
- bram[ 1*8 + 6] = 32'h00000000;
bram[ 1*8 + 7] = 32'h00000000;
+ bram[ 1*8 + 6] = 32'h00000000;
+ bram[ 1*8 + 5] = 32'h00000000;
+ bram[ 1*8 + 4] = 32'h00000000;
+ bram[ 1*8 + 3] = 32'h00000000;
+ bram[ 1*8 + 2] = 32'h00000000;
+ bram[ 1*8 + 1] = 32'h00000000;
+ bram[ 1*8 + 0] = 32'h00000001;
//
// G_X
//
- bram[15*8 + 0] = 32'h216936d3;
- bram[15*8 + 1] = 32'hcd6e53fe;
- bram[15*8 + 2] = 32'hc0a4e231;
- bram[15*8 + 3] = 32'hfdd6dc5c;
- bram[15*8 + 4] = 32'h692cc760;
- bram[15*8 + 5] = 32'h9525a7b2;
- bram[15*8 + 6] = 32'hc9562d60;
- bram[15*8 + 7] = 32'h8f25d51a;
+ bram[14*8 + 7] = 32'h216936d3;
+ bram[14*8 + 6] = 32'hcd6e53fe;
+ bram[14*8 + 5] = 32'hc0a4e231;
+ bram[14*8 + 4] = 32'hfdd6dc5c;
+ bram[14*8 + 3] = 32'h692cc760;
+ bram[14*8 + 2] = 32'h9525a7b2;
+ bram[14*8 + 1] = 32'hc9562d60;
+ bram[14*8 + 0] = 32'h8f25d51a;
//
// G_Y
//
- bram[16*8 + 0] = 32'h66666666;
- bram[16*8 + 1] = 32'h66666666;
- bram[16*8 + 2] = 32'h66666666;
- bram[16*8 + 3] = 32'h66666666;
- bram[16*8 + 4] = 32'h66666666;
- bram[16*8 + 5] = 32'h66666666;
- bram[16*8 + 6] = 32'h66666666;
- bram[16*8 + 7] = 32'h66666658;
+ bram[15*8 + 7] = 32'h66666666;
+ bram[15*8 + 6] = 32'h66666666;
+ bram[15*8 + 5] = 32'h66666666;
+ bram[15*8 + 4] = 32'h66666666;
+ bram[15*8 + 3] = 32'h66666666;
+ bram[15*8 + 2] = 32'h66666666;
+ bram[15*8 + 1] = 32'h66666666;
+ bram[15*8 + 0] = 32'h66666658;
//
// G_T
//
- bram[18*8 + 0] = 32'h67875f0f;
- bram[18*8 + 1] = 32'hd78b7665;
- bram[18*8 + 2] = 32'h66ea4e8e;
- bram[18*8 + 3] = 32'h64abe37d;
- bram[18*8 + 4] = 32'h20f09f80;
- bram[18*8 + 5] = 32'h775152f5;
- bram[18*8 + 6] = 32'h6dde8ab3;
- bram[18*8 + 7] = 32'ha5b7dda3;
+ bram[16*8 + 7] = 32'h67875f0f;
+ bram[16*8 + 6] = 32'hd78b7665;
+ bram[16*8 + 5] = 32'h66ea4e8e;
+ bram[16*8 + 4] = 32'h64abe37d;
+ bram[16*8 + 3] = 32'h20f09f80;
+ bram[16*8 + 2] = 32'h775152f5;
+ bram[16*8 + 1] = 32'h6dde8ab3;
+ bram[16*8 + 0] = 32'ha5b7dda3;
end
-
+
//
// Output Register