Commit 9ae07e0f authored by Dimitris Lampridis's avatar Dimitris Lampridis

sim: add timestamps to messages

parent 9872a30f
......@@ -78,9 +78,9 @@ class MockTurtleDriver;
task mdisplay ( string str );
string tmp;
if (this.name == "")
tmp = str;
tmp = $sformatf("<%t> %s", $realtime, str);
else
tmp = $sformatf("[%s] %s", this.name, str);
tmp = $sformatf("[%s] <%t> %s", this.name, $realtime, str);
$display (tmp);
endtask // mdisplay
......
......@@ -59,9 +59,9 @@ class MTCPUControl;
task mdisplay ( string str );
string tmp;
if (this.name == "")
tmp = str;
tmp = $sformatf("<%t> %s", $realtime, str);
else
tmp = $sformatf("[%s] %s", this.name, str);
tmp = $sformatf("[%s] <%t> %s", this.name, $realtime, str);
$display (tmp);
endtask // mdisplay
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment