Hi
Is there is a way to print over the same line to display percentage or something like that?
Thanks in advance
It would really help if you could show an example of what you are asking for.
Normally it is better to build up the string you want to display, then print the string.
For Example i have a block in the DUT that monitor 4 MEG Symbols so i want to know the percentage of monioring without printing the count with every symbol input in a new line , so i need to print the percentage as a sting that is updates its value in the same line during monitoring.
In reply to ahmedfair:
Maybe use $write in Verilog/SV to print
forever begin : mon
<during 5 MEG monitor>
$write ("..");
end : mon
HTH
Ajeetha, CVC
In reply to Ajeetha Kumari CVC:
If you are interactively running the simulation, you may want to use a watch window of your simulators GUI to display the percentage, rather than printing it to the log. Otherwise, I recommend using the modulo operator (%) to print progress at some fixed interval.
if ((count % 1000) == 0 ) print a message.