[Cryptech-Commits] [user/js/keywrap] branch increase_api_addr_space updated: Test write to all positions in the mem.
git at cryptech.is
git at cryptech.is
Fri Sep 7 07:52:41 UTC 2018
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch increase_api_addr_space
in repository user/js/keywrap.
The following commit(s) were added to refs/heads/increase_api_addr_space by this push:
new cc8b25b Test write to all positions in the mem.
cc8b25b is described below
commit cc8b25b0196053cf58e8724df57b3c97033aaf03
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Fri Sep 7 09:52:01 2018 +0200
Test write to all positions in the mem.
---
src/tb/tb_keywrap_mem.v | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/tb/tb_keywrap_mem.v b/src/tb/tb_keywrap_mem.v
index 0cc8ca0..58169b9 100644
--- a/src/tb/tb_keywrap_mem.v
+++ b/src/tb/tb_keywrap_mem.v
@@ -146,7 +146,7 @@ module tb_keywrap_mem();
reg [13 : 0] addr_ctr;
$display("Content of the memory:");
- for (addr_ctr = 0 ; addr_ctr <= API_ADDR_MAX ; addr_ctr = addr_ctr + 1)
+ for (addr_ctr = 0 ; addr_ctr < API_ADDR_MAX ; addr_ctr = addr_ctr + 1)
begin
tb_api_addr = addr_ctr;
#(CLK_PERIOD);
@@ -206,11 +206,11 @@ module tb_keywrap_mem();
//----------------------------------------------------------------
task test_api_write;
begin : test_api_write
- reg [(API_ADDR_BITS - 1) : 0] addr_ctr;
+ reg [API_ADDR_BITS : 0] addr_ctr;
$display("** TC API WRITE START");
- for (addr_ctr = 0 ; addr_ctr < API_ADDR_MAX ; addr_ctr = addr_ctr + 1)
+ for (addr_ctr = 0 ; addr_ctr < (API_ADDR_MAX + 1); addr_ctr = addr_ctr + 1)
begin
tb_api_we = 1;
tb_api_addr = addr_ctr;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list