I have an unpacked int array:
int wanna_print [];
wanna_print = new[1];
It can be printed like this:
$display("in hex: c86E [in dec: 51310] == %p", wanna_print[0]);
It will print it in decimal, but I need it in hexadecimal.
I tried %0h, %h instead of %p, but it gives this error:
Argument number 2 is an unpacked type, and may only be printed with the '%p' format.
How can I print it in hexadecimal?
Can %p maybe somehow extended?
I tried $sformatf too, but it behaves the same.