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 8 of 11 Topic 6091 of 6418
Post > Topic >>

Re: reading an array of parallel input data

by koyel.aphy@[EMAIL PROTECTED] Jun 27, 2008 at 06:34 AM

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.

even if I do not use the clock, I get the same errors. I have checked
the simulation in modelsim without the testbench that gives correct
result.


ReadAndApply: process
    variable c: character;
    variable i: integer;
    variable L: line;
  begin
    file_open(StimCSV, "StimCSV.csv", READ_MODE);
    while not endfile(StimCSV) loop
      wait until(clk'event and clk = '1') and reset2 ='1';
      readline(StimCSV, L);   -- Get the next stimulus line
      for j in stimulus'range loop
        read(L, i);    -- Get the next integer
        if j /= stimulus'right then
          -- it's not the last item; skip the next comma
          read(L, c);
          assert c = ',' re****t "Oops, bad separator";
        end if;
        stimulus(j) <= std_logic_vector(
                          to_unsigned(i, word10'length));
      end loop;
    din<= stimulus;
    end loop;
    file_close(StimCSV);
    wait for 20 ns;
    wait;
  end process;
 




 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:18:29 CST 2008.