RolfK
New Member
Offline
Posts: 7
Germany
|
Dear Experts,
I want to read data from file ($fgets , $scanf). I have two issues with that: 1) I do not know how much records (lines) are in the file. Hence I can not declare an array variable before. 2) If I would open the file n times would this really open the file n times returning a new handle ?
How are such things handled in verilog AMS. I fear, I waste a lot of runtime keeping the file open and not store the content in memory. Another difficulty is that I can not fix in code which file to read. This is a parameter or even the next file to read is given by some string in the current open file. You could think of hierarchical file reading.
Any idea ?
Thanks a lot
RolfK
|