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 5 of 11 Topic 6091 of 6417
Post > Topic >>

Re: reading an array of parallel input data

by koyel.aphy@[EMAIL PROTECTED] Jun 26, 2008 at 05:18 AM

Hi,

Here is what I am able to edit when I got few errors though there seem
to be no reason for those. But now I am getting undefined values at
the output and I checked that the stimulus signal is not taking the
values. I don't want to change this code much so it would be good if
you can see if I have missed something.

ReadAndApply:process
    variable c: character;
    variable i: integer;
    variable L: line;
  begin
    file_open(StimCSV, "StimCSV.csv", READ_MODE);
	 wait until (clk'event and clk = '1');

    if not endfile(StimCSV) and res= '1' and reset2 = '1' then

      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, WORD8'length));
      end loop;
		din <= stimulus;
		end if;
    file_close(StimCSV);
    wait;
  end process;
      dout1 <= doutf1;
      dout2 <= doutf2;

Thank you vary much again!
 




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