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

sim: add timestamps to messages

parent 9872a30f
...@@ -78,9 +78,9 @@ class MockTurtleDriver; ...@@ -78,9 +78,9 @@ class MockTurtleDriver;
task mdisplay ( string str ); task mdisplay ( string str );
string tmp; string tmp;
if (this.name == "") if (this.name == "")
tmp = str; tmp = $sformatf("<%t> %s", $realtime, str);
else else
tmp = $sformatf("[%s] %s", this.name, str); tmp = $sformatf("[%s] <%t> %s", this.name, $realtime, str);
$display (tmp); $display (tmp);
endtask // mdisplay endtask // mdisplay
......
...@@ -59,9 +59,9 @@ class MTCPUControl; ...@@ -59,9 +59,9 @@ class MTCPUControl;
task mdisplay ( string str ); task mdisplay ( string str );
string tmp; string tmp;
if (this.name == "") if (this.name == "")
tmp = str; tmp = $sformatf("<%t> %s", $realtime, str);
else else
tmp = $sformatf("[%s] %s", this.name, str); tmp = $sformatf("[%s] <%t> %s", this.name, $realtime, str);
$display (tmp); $display (tmp);
endtask // mdisplay 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