aboutsummaryrefslogtreecommitdiff
path: root/src/rtl/sha1_core.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtl/sha1_core.v')
-rw-r--r--src/rtl/sha1_core.v18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rtl/sha1_core.v b/src/rtl/sha1_core.v
index 9a311ca..d055467 100644
--- a/src/rtl/sha1_core.v
+++ b/src/rtl/sha1_core.v
@@ -117,8 +117,8 @@ module sha1_core(
//----------------------------------------------------------------
reg digest_init;
reg digest_update;
- reg state_init;
- reg state_update;
+ reg init_state;
+ reg update_state;
reg first_block;
reg ready_flag;
reg w_init;
@@ -266,7 +266,7 @@ module sha1_core(
e_new = 32'h0;
a_e_we = 0;
- if (state_init)
+ if (init_state)
begin
if (first_block)
begin
@@ -288,7 +288,7 @@ module sha1_core(
end
end
- if (state_update)
+ if (update_state)
begin
if (round_ctr_reg <= 19)
begin
@@ -357,8 +357,8 @@ module sha1_core(
begin : sha1_ctrl_fsm
digest_init = 0;
digest_update = 0;
- state_init = 0;
- state_update = 0;
+ init_state = 0;
+ update_state = 0;
first_block = 0;
ready_flag = 0;
w_init = 0;
@@ -379,7 +379,7 @@ module sha1_core(
begin
digest_init = 1;
w_init = 1;
- state_init = 1;
+ init_state = 1;
first_block = 1;
round_ctr_rst = 1;
digest_valid_new = 0;
@@ -391,7 +391,7 @@ module sha1_core(
if (next)
begin
w_init = 1;
- state_init = 1;
+ init_state = 1;
round_ctr_rst = 1;
digest_valid_new = 0;
digest_valid_we = 1;
@@ -403,7 +403,7 @@ module sha1_core(
CTRL_ROUNDS:
begin
- state_update = 1;
+ update_state = 1;
round_ctr_inc = 1;
w_next = 1;