The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> n times fopen read only https://designers-guide.org/forum/YaBB.pl?num=1354732263 Message started by RolfK on Dec 5th, 2012, 10:31am |
Title: n times fopen read only Post by RolfK on Dec 5th, 2012, 10:31am 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 |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |