The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 4:26am
Pages: 1
Send Topic Print
readung file in verilog (Read 1733 times)
SUBU
New Member
*
Offline



Posts: 2

readung file in verilog
Apr 08th, 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
Back to top
 
 
View Profile   IP Logged
jbdavid
Community Fellow
*****
Offline



Posts: 378
Silicon Valley
Re: readung file in verilog
Reply #1 - 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)

Back to top
 
 

jbdavid
Mixed Signal Design Verification
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.