Printing contents of an array using a $fmonitor or $fdisplay

K

kb33

Guest
Hi,

If there an elegant way to print the values of an array into a text
file? Can a FOR statement be used inside a $fdisplay statement to
print the values?

kb33
 
On May 7, 12:13 pm, kb33 <kanchan.devarako...@gmail.com> wrote:
Hi,

If there an elegant way to print the values of an array into a text
file? Can a FOR statement be used inside a $fdisplay statement to
print the values?

kb33
Normally I would use $fwrite inside a FOR loop. It's essentially
the same as $fdisplay, but without the line ends, so you can write
out as many elements as you want on a line.
 

Welcome to EDABoard.com

Sponsor

Back
Top