[Cryptech-Commits] [user/sra/aes_merged] 11/45: Corrected where config bits are.

git at cryptech.is git at cryptech.is
Wed Jan 9 16:32:28 UTC 2019


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository user/sra/aes_merged.

commit fc8c9324320af3fc258df33f176583506ea5de38
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Thu May 28 14:01:41 2015 +0200

    Corrected where config bits are.
---
 src/tb/tb_aes.v | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tb/tb_aes.v b/src/tb/tb_aes.v
index f25fcf3..0694250 100644
--- a/src/tb/tb_aes.v
+++ b/src/tb/tb_aes.v
@@ -63,14 +63,14 @@ module tb_aes();
   localparam ADDR_CTRL        = 8'h08;
   localparam CTRL_INIT_BIT    = 0;
   localparam CTRL_NEXT_BIT    = 1;
-  localparam CTRL_ENCDEC_BIT  = 2;
-  localparam CTRL_KEYLEN_BIT  = 3;
 
   localparam ADDR_STATUS      = 8'h09;
   localparam STATUS_READY_BIT = 0;
   localparam STATUS_VALID_BIT = 1;
 
   localparam ADDR_CONFIG      = 8'h0a;
+  localparam CTRL_ENCDEC_BIT  = 2;
+  localparam CTRL_KEYLEN_BIT  = 3;
 
   localparam ADDR_KEY0        = 8'h10;
   localparam ADDR_KEY1        = 8'h11;
@@ -392,7 +392,7 @@ module tb_aes();
       write_block(block);
       dump_dut_state();
 
-      write_word(ADDR_CONFIG, (8'h00 + (key_length << 1)+ encdec));
+      write_word(ADDR_CONFIG, (8'h00 + (key_length << 1) + encdec));
       write_word(ADDR_CTRL, 8'h02);
 
       #(100 * CLK_PERIOD);



More information about the Commits mailing list