aboutsummaryrefslogtreecommitdiff
path: root/src/rtl/sha256_core.v
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2019-01-08 09:55:33 +0100
committerJoachim StroĢˆmbergson <joachim@secworks.se>2019-01-08 09:55:33 +0100
commitcaf3ad473fc5325af2146274aebe2f7c66dbd63d (patch)
tree4ea586e35ea97dbd116a180d27036858cb293423 /src/rtl/sha256_core.v
parentd0bff25faf6cb96e0c4600cfc16eec03a78b059e (diff)
Ported the timing fix from SHA-512 to SHA-256. The core can now run at 170 MHz in the target FPGA.HEADmaster
Diffstat (limited to 'src/rtl/sha256_core.v')
-rw-r--r--src/rtl/sha256_core.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtl/sha256_core.v b/src/rtl/sha256_core.v
index 048df2b..564d45e 100644
--- a/src/rtl/sha256_core.v
+++ b/src/rtl/sha256_core.v
@@ -564,6 +564,7 @@ module sha256_core(
CTRL_ROUNDS0:
begin
+ w_next = 1'h1;
state_update = 1'h1;
sha256_ctrl_new = CTRL_ROUNDS1;
sha256_ctrl_we = 1'h1;
@@ -572,7 +573,6 @@ module sha256_core(
CTRL_ROUNDS1:
begin
- w_next = 1'h1;
state_update = 1'h1;
a_h_we = 1'h1;
t_ctr_inc = 1'h1;