[aes:dv] Use queue syntax supported by XCelium 18.09
XCelium 18.09 does not support getting last element in
an unbounded queue using [$]. Version 19.09 supports this syntax.
Use a more explicit syntax to support XCelium 18.09.
Fixes #1696
Signed-off-by: Rasmus Madsen <rasmus.madsen@wdc.com>
diff --git a/hw/ip/aes/dv/env/aes_seq_item.sv b/hw/ip/aes/dv/env/aes_seq_item.sv
index d1d3c24..12b2479 100644
--- a/hw/ip/aes/dv/env/aes_seq_item.sv
+++ b/hw/ip/aes/dv/env/aes_seq_item.sv
@@ -65,11 +65,11 @@
data_in_queue.size() == data_len >> 2 + 1;
}
if(data_len[1:0] == 2'b01) {
- data_in_queue[$][31:8] == 0;
+ data_in_queue[data_in_queue.size()-1][31:8] == 0;
} else if (data_len[1:0] == 2'b10) {
- data_in_queue[$][31:16] == 0;
+ data_in_queue[data_in_queue.size()-1][31:16] == 0;
} else {
- data_in_queue[$][31:24] == 0;
+ data_in_queue[data_in_queue.size()-1][31:24] == 0;
}
}