aboutsummaryrefslogtreecommitdiff
path: root/src/rtl/chacha_qr.v
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-08-23 12:45:23 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-08-23 12:45:23 +0200
commit702c57e301342005ea6f854fbeeb862d78b75360 (patch)
tree6926dc26b3829648c9c8f7baac8011fb9f4a3590 /src/rtl/chacha_qr.v
parent90b5fcc58633957ed5a03f0ba210216a5639d2a7 (diff)
Debugged pipeline register and state update. All test cases ok.timing_fix
Diffstat (limited to 'src/rtl/chacha_qr.v')
-rw-r--r--src/rtl/chacha_qr.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtl/chacha_qr.v b/src/rtl/chacha_qr.v
index 5189030..ba68d51 100644
--- a/src/rtl/chacha_qr.v
+++ b/src/rtl/chacha_qr.v
@@ -130,7 +130,7 @@ module chacha_qr(
a0 = a + b;
a0_new = a0;
- d0 = d ^ a0;
+ d0 = d ^ a0_reg;
d1 = {d0[15 : 0], d0[31 : 16]};
c0 = c + d1;
@@ -139,7 +139,7 @@ module chacha_qr(
b0 = b ^ c0;
b1 = {b0[19 : 0], b0[31 : 20]};
- a1 = a0 + b1;
+ a1 = a0_reg + b1;
// a1_new = a1;
d2 = d1 ^ a1;