Hi,
I am trying to display the the content of my queue as hexadecimal all I get is are decimal values:
Case A: $sformatf with UVM_INFO
`uvm_info("LRU", $sformatf("Contents: %0p", lru), UVM_HIGH)
Result: Decimal output
UVM_INFO sv/tb_mmu_refmodel.sv(5160) @ 968965000: reporter [LRU] Contents: 833 257 818 418
Case B: $displayh
$displayh("Contents: %0p", lru);
Result: Hex output but not inside UVM_INFO
Contents: 341 101 332 1a2
Case C: $sformatf with %x or %h with UVM_INFO
`uvm_info("LRU", $sformatf("Contents: %0x", lru), UVM_HIGH)
`uvm_info("LRU", $sformatf("Contents: %0h", lru), UVM_HIGH)
Result: Error
tb_mmu_refmodel.sv(5162): $sformatf : Argument is an unpacked type, and may only be printed with the ‘%p’ format.
So how to display an unpacked type with $sformat in hex ?
Thank you in advance