[Cryptech-Commits] [core/cipher/aes] 01/01: (1) Changed name and version to reflect that it is not only AES-128 and that the core is fairly close to done. (2) Moved counter update.

git at cryptech.is git at cryptech.is
Sat May 16 10:15:31 UTC 2015


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

joachim at secworks.se pushed a commit to branch master
in repository core/cipher/aes.

commit d35e060d1d66691e63f2d20c2500723b4bae8566
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Sat May 16 12:15:01 2015 +0200

    (1) Changed name and version to reflect that it is not only AES-128 and that the core is fairly close to done. (2) Moved counter update.
---
 src/rtl/aes.v   | 6 +++---
 src/tb/tb_aes.v | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/rtl/aes.v b/src/rtl/aes.v
index 5d6030b..f9fb318 100644
--- a/src/rtl/aes.v
+++ b/src/rtl/aes.v
@@ -90,9 +90,9 @@ module aes(
   localparam ADDR_RESULT2     = 8'h32;
   localparam ADDR_RESULT3     = 8'h33;
 
-  localparam CORE_NAME0       = 32'h6165732d; // "aes-"
-  localparam CORE_NAME1       = 32'h31323820; // "128 "
-  localparam CORE_VERSION     = 32'h302e3580; // "0.80"
+  localparam CORE_NAME0       = 32'h61657320; // "aes "
+  localparam CORE_NAME1       = 32'h20202020; // "    "
+  localparam CORE_VERSION     = 32'h302e3820; // "0.80"
 
 
   //----------------------------------------------------------------
diff --git a/src/tb/tb_aes.v b/src/tb/tb_aes.v
index 3c1f7cc..f25fcf3 100644
--- a/src/tb/tb_aes.v
+++ b/src/tb/tb_aes.v
@@ -387,7 +387,6 @@ module tb_aes();
                                   input [127 : 0] expected);
     begin
       $display("*** TC %0d ECB mode test started.", tc_number);
-      tc_ctr = tc_ctr + 1;
 
       init_key(key, key_length);
       write_block(block);
@@ -402,6 +401,7 @@ module tb_aes();
 
       if (result_data == expected)
         begin
+          tc_ctr = tc_ctr  + 1;
           $display("*** TC %0d successful.", tc_number);
           $display("");
         end



More information about the Commits mailing list