diff options
-rw-r--r-- | src/rtl/keywrap_core.v | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rtl/keywrap_core.v b/src/rtl/keywrap_core.v index 14768d8..aa6f0df 100644 --- a/src/rtl/keywrap_core.v +++ b/src/rtl/keywrap_core.v @@ -134,7 +134,6 @@ module keywrap_core ( wire aes_ready; reg [127 : 0] aes_block; wire [127 : 0] aes_result; - wire aes_valid; reg update_state; @@ -176,7 +175,7 @@ module keywrap_core ( .ready(aes_ready), .result(aes_result), - .result_valid(aes_valid) + .result_valid() ); @@ -245,7 +244,7 @@ module keywrap_core ( aes_block = {a_reg, core_rd_data}; core_wr_data = aes_result[63 : 0]; - xor_val = (rlen * iteration_ctr_reg) + block_ctr_reg; + xor_val = (rlen * iteration_ctr_reg) + {51'h0, block_ctr_reg}; if (init_a) begin |