From eaf1df11dc03c468b08ed92ff0c9fdc71824fffb Mon Sep 17 00:00:00 2001 From: Dariusz Stachanczyk Date: Wed, 4 Dec 2024 14:47:52 +0100 Subject: [PATCH] [aes,dv] Add a cast for the byte type return of getc() function to string variable assignment Assign the result of getc function of a byte type to the string variable requires type casting. Signed-off-by: Dariusz Stachanczyk --- hw/ip/aes/dv/env/seq_lib/aes_base_vseq.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ip/aes/dv/env/seq_lib/aes_base_vseq.sv b/hw/ip/aes/dv/env/seq_lib/aes_base_vseq.sv index dc622fd0712d2..4766b0058e02b 100644 --- a/hw/ip/aes/dv/env/seq_lib/aes_base_vseq.sv +++ b/hw/ip/aes/dv/env/seq_lib/aes_base_vseq.sv @@ -503,7 +503,7 @@ class aes_base_vseq extends cip_base_vseq #( // the index of multi-reg is at the last char of the name virtual function int get_multireg_idx(string name); - string s = name.getc(name.len - 1); + string s = string'(name.getc(name.len - 1)); return s.atoi(); endfunction