The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> readung file in verilog https://designers-guide.org/forum/YaBB.pl?num=1239214617 Message started by SUBU on Apr 8th, 2009, 11:16am |
Title: readung file in verilog Post by SUBU on Apr 8th, 2009, 11:16am initial begin $readmemh("ee",mema,mema[0]); end .......... i used this prog to read a textfile......... but synthsis failed-saying unable to read file.......... can any1 solve this prob.......... please make it soon i hav to submit my project on 15th april |
Title: Re: readung file in verilog Post by jbdavid on Apr 8th, 2009, 6:04pm That only works for reading in binary data.. possibly appropriate for Synthesis.. (As a mixed signal guy, I let the Phys Design guys do any Synth for RTL from the Digital designers..) for general purpose textfile reading I use $fscanf function (and its associated functions for open and close.. (see 1364-2005 LRM avail on ieee-xplore) |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |