Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Electronic Equipment > VHDL > Re: reading an ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 11 Topic 6091 of 6418
Post > Topic >>

Re: reading an array of parallel input data

by Jonathan Bromley <jonathan.bromley@[EMAIL PROTECTED] > Jun 27, 2008 at 03:19 PM

On Fri, 27 Jun 2008 06:34:39 -0700 (PDT), koyel.aphy@[EMAIL PROTECTED]
 wrote:

>This is what I am using right now and I get the errors
>
>Error at 30.000 ns(1): Textio read:: called on empty string or line
>at 30.000 ns(1): Error: Oops, bad separator
>this continues upto 100 ns.

Is it time for me to get angry?  Surely not.

ADD SOME DIAGNOSTICS.

There is a CLUE here...
    Textio read:: called on empty string or line

Now, I can't even start to guess why this might be so.
But if I were trying to debug it, I would begin by
printing each line of text that I read from the file,
before I start doing the read() operations.  Something
like this would do the job:

  ...
  readline(F, L);  -- get line of text
  -- Let's have a look at that line, before we read it
  re****t "Got line from file: '" & L.all & "'";
  ...

And we'll probably find that there's a blank line, or
some spurious separator character, or something of the sort,
that's preventing our simple-minded read() operation from
working.  And then we can fix it.  This is a technique
that we skilled engineers have come to know as "debugging".

Alternatively, of course, we could continue to pester
a newsgroup with incomplete error re****ts.

Choose which you think is likely to be more productive
and a better learning experience.
-- 
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@[EMAIL PROTECTED]
 contents of this message may contain personal views which 
are not the views of Doulos Ltd., unless specifically stated.
 




 11 Posts in Topic:
reading an array of parallel input data
koyel.aphy@[EMAIL PROTECT  2008-06-19 03:05:15 
Re: reading an array of parallel input data
Jonathan Bromley <jona  2008-06-19 11:53:34 
Re: reading an array of parallel input data
koyel.aphy@[EMAIL PROTECT  2008-06-25 04:41:53 
Re: reading an array of parallel input data
Jonathan Bromley <jona  2008-06-25 13:37:30 
Re: reading an array of parallel input data
koyel.aphy@[EMAIL PROTECT  2008-06-26 05:18:42 
Re: reading an array of parallel input data
Jonathan Bromley <jona  2008-06-26 13:40:04 
Re: reading an array of parallel input data
koyel.aphy@[EMAIL PROTECT  2008-06-26 07:34:39 
Re: reading an array of parallel input data
koyel.aphy@[EMAIL PROTECT  2008-06-27 06:34:39 
Re: reading an array of parallel input data
Jonathan Bromley <jona  2008-06-27 15:19:25 
Re: reading an array of parallel input data
koyel.aphy@[EMAIL PROTECT  2008-06-27 10:43:19 
Re: reading an array of parallel input data
koyel.aphy@[EMAIL PROTECT  2008-06-27 10:47:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 22:23:43 CST 2008.