fpga: sim: Print timestamp in hex

Update PkgChdrBfm so that the print() methods print the timestamp in
hexadecimal in addition to decimal.
This commit is contained in:
Wade Fife 2025-04-23 14:22:52 -05:00
parent ec8dcf8ce2
commit c75a78b0ea

View File

@ -206,7 +206,7 @@ package PkgChdrBfm;
str = {str, $sformatf("ChdrPacket:\n")};
str = {str, $sformatf("- header: %p\n", header) };
if (header.pkt_type == CHDR_DATA_WITH_TS) begin
str = {str, $sformatf("- timestamp: %0d\n", timestamp) };
str = {str, $sformatf("- timestamp: %0d (0x%X)\n", timestamp, timestamp) };
end
if (header.num_mdata != '0) begin
str = {str, $sformatf("- metadata:\n") };