[Cryptech-Commits] [core/cipher/aes] 12/20: Polished the wait_ready task to use defined bit index.
git at cryptech.is
git at cryptech.is
Thu Jan 10 15:57:00 UTC 2019
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch aes_speed
in repository core/cipher/aes.
commit ea98bf78abd32420b803ba2f67e264c89ee98077
Author: Joachim Strömbergson <joachim at secworks.se>
AuthorDate: Tue May 22 09:43:08 2018 +0200
Polished the wait_ready task to use defined bit index.
---
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 9fdb601..bd51ec8 100644
--- a/src/tb/tb_aes.v
+++ b/src/tb/tb_aes.v
@@ -313,12 +313,12 @@ module tb_aes();
task wait_ready;
begin : wait_ready
reg rdy;
- rdy = 0;
+ rdy = 1'b0;
- while (rdy != 1)
+ while (rdy != 1'b1)
begin
read_word(ADDR_STATUS);
- rdy = tb_read_data[0];
+ rdy = tb_read_data[STATUS_READY_BIT];
end
end
endtask // wait_ready
More information about the Commits
mailing list