$fdisplay --> max number of arguments

  • Thread starter Arie Zychlinski
  • Start date
A

Arie Zychlinski

Guest
is there a MAX number of arguments ?
I want to write a very long line with many samples (into a text file) and I
see that it does NOT work with 32 samples (each is an integer value)
thank you.

--

yours -
Arie Z.

============================================
Arie Zychlinski
R&D Consulting & Development
P.O.Box 536
Kfar-Saba 44104
ISRAEL

Mobile: 972-52-8320230
Phone: W: 972-9-7673074 H: 972-9-7658268

E-Mail: arie_zy@bezeqint.net
===========================================
 
I don't know the official answer to $fdisplay max aguements, but
there's a very easy way around it. Just use multiple $fwrite.
$write/$fwrite are the same as $display/$fdisplay except they don't put
a newline at the end. Therefore, you can build your output line with
multiple $fwrites and put either "\n" (newline) in the last one, or use
$fdisplay for the last one of a line.

David
 
Arie Zychlinski wrote:
is there a MAX number of arguments ?
I want to write a very long line with many samples (into a text file) and I
see that it does NOT work with 32 samples (each is an integer value)
thank you.
There is no official (as in called out by the standard) limit to the
number of arguments that you can pass to any system task. It is likely
that various compilers have various limits that indirectly effect the
number of arguments that you can pass to a system task, but 32 seems
really low. Are you sure you're not running into some other problem
or limitiation?


--
Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
http://www.icarus.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
 
I agree with Steve. Such a low limit seems unlikely for any
reasonable tool. What do you mean when you say that it
does not work? Are you perhaps making the Verilog source
line too long for the tool? If so, break it up with newlines. Or
perhaps you are just having trouble looking at the output
file because you are creating such long lines in it.
 

Welcome to EDABoard.com

Sponsor

Back
Top