aboutsummaryrefslogtreecommitdiff
path: root/src/tb
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2018-05-22 09:43:08 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2018-05-22 09:43:08 +0200
commit3bc745447004568aa73f3498a229a751ea843624 (patch)
tree88fea15a2577286e55bd6eec8846015a534c3232 /src/tb
parentc596c2f7a29b673d85a127e2c7b03e9e52830e22 (diff)
Polished the wait_ready task to use defined bit index.
Diffstat (limited to 'src/tb')
-rw-r--r--src/tb/tb_aes.v6
1 files 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