Guest
Hi,
Could anyone help me to get the hex value stored in the string back?
Please see the example code below
Thanks
Dev
string e;
e = "07";
logic [31:0] b;
b = e; // i would like to have equalent hexadecimal value
"00000000000000000000000000000111"
but the value of b it returns is "00000000000000000000000000110111"
Could anyone help me to get the hex value stored in the string back?
Please see the example code below
Thanks
Dev
string e;
e = "07";
logic [31:0] b;
b = e; // i would like to have equalent hexadecimal value
"00000000000000000000000000000111"
but the value of b it returns is "00000000000000000000000000110111"