Try something like this:
$write("%0d%% done\015", pct_done);
\015 is octal for a carriage return.
-cb
This is a discussion on Output Display - verilog ; Is there a way to display simulator (VCS preferably) output so a particular line is replaced, rather than added to the end of a log? For instance, instead of 5% done 10% done ....and so on 95% done It just ...
Is there a way to display simulator (VCS preferably) output so a
particular line is replaced, rather than added to the end of a log? For
instance, instead of
5% done
10% done
....and so on
95% done
It just displays
<percentage done>% done
where <percentage done> is updated as the simulation runs. I don't care
too much about what the log file looks like, just the run-time terminal
output.
Try something like this:
$write("%0d%% done\015", pct_done);
\015 is octal for a carriage return.
-cb
Awesome, thanks.Works great.
Chris Briggs wrote:
> Try something like this:
>
> $write("%0d%% done\015", pct_done);
>
> \015 is octal for a carriage return.
>
> -cb
>