diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-07-06 09:47:05 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-07-06 09:47:05 +0200 |
commit | 694ff57dc365f0b51eaea0afc1a808d3f3f6f28c (patch) | |
tree | 4586a0bdee27ec660f45b2531803e5b53bcffca1 /src/rtl | |
parent | f4ac53ac5e0885021fa7ae40f72a61846682ce41 (diff) |
(1) Fixed dump of core_addr in testbench to actually show the core_addr. Fixed boundaries for the block counter. Now we don't read mem out of bounds.
Diffstat (limited to 'src/rtl')
-rw-r--r-- | src/rtl/keywrap_core.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtl/keywrap_core.v b/src/rtl/keywrap_core.v index 1f180c9..35bdfa6 100644 --- a/src/rtl/keywrap_core.v +++ b/src/rtl/keywrap_core.v @@ -280,7 +280,7 @@ module keywrap_core ( if (block_ctr_set) begin - block_ctr_new = (rlen - 1); + block_ctr_new = rlen; block_ctr_we = 1'h1; end @@ -483,7 +483,7 @@ module keywrap_core ( CTRL_NEXT_UCHECK: begin - if (block_ctr_reg > 0) + if (block_ctr_reg > 1) begin block_ctr_dec = 1'h1; keywrap_core_ctrl_new = CTRL_NEXT_LOOP; |