The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> Read data from external file https://designers-guide.org/forum/YaBB.pl?num=1148313459 Message started by prego64 on May 22nd, 2006, 8:57am |
Title: Read data from external file Post by prego64 on May 22nd, 2006, 8:57am Can somebody show me howto read in external data from a ASCII file into an array ? For example: I have a file with three integer numbers (one number per line), that I want to assign to an array x[0]...x{2]. The documentation on fread() is very limited or non-existant. Thanks ! Bernd |
Title: Re: Read data from external file Post by Geoffrey_Coram on May 24th, 2006, 4:22am 1364-2005 has $fscanf -- as well as more documentation on the system tasks for handling files than the AMS LRM does. Some simulators already support the new 1364 for the digital engine and have brought that support over for AMS. You might also consider the $table_model in AMS. |
Title: Re: Read data from external file Post by rajdeep on May 31st, 2006, 7:56am Is there any equivalent table model concept in VerilogA?? |
Title: Re: Read data from external file Post by Geoffrey_Coram on May 31st, 2006, 9:33am $table_model is in Verilog-A. (That is, it's in AMS, and the LRM doesn't exclude $table_model from the "analog only subset"; ergo, it is in Verilog-A.) |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |