Skip to content

Commit

Permalink
[aes,dv] Add a cast for the byte type return of getc() function to st…
Browse files Browse the repository at this point in the history
…ring variable assignment

Assign the result of getc function of a byte type to the string variable requires type casting.
Signed-off-by: Dariusz Stachanczyk <[email protected]>
  • Loading branch information
dariuszst committed Dec 10, 2024
1 parent 7e22215 commit eaf1df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/ip/aes/dv/env/seq_lib/aes_base_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit eaf1df1

Please sign in to comment.