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 > code for calcul...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 6102 of 6417
Post > Topic >>

code for calculating string length

by rahul.bajait30@[EMAIL PROTECTED] Jun 23, 2008 at 03:34 AM

can anybody tell me whats wrong in the following code ::

library ieee,std;
use std.textio.all;
use ieee.std_logic_textio.all;

entity len is
end len;

architecture length of len is
    signal final : integer := 0;
    begin
        process
            file infile : text is in "E:\shweta\extra\RCS card\examples
\data.dat";
            file outfile :text is out "E:\shweta\extra\RCS card
\examples\out.dat";
            variable inlin : line;
            variable outlin : line;
            variable length : integer := 0;
            begin
                while(not(endfile(infile))) loop
                    readline(infile,inlin);
                    wait for 100 ns;
                    length := length + inlin'length;
                    deallocate(inlin);
                end loop;
                final <= length;
        end process;
end length;
 




 5 Posts in Topic:
code for calculating string length
rahul.bajait30@[EMAIL PRO  2008-06-23 03:34:11 
Re: code for calculating string length
Ashani Patel <ashani40  2008-06-24 00:22:28 
Re: code for calculating string length
KJ <kkjennings@[EMAIL   2008-06-24 05:06:08 
Re: code for calculating string length
Tricky <Trickyhead@[EM  2008-06-24 08:33:04 
Re: code for calculating string length
rahul.bajait30@[EMAIL PRO  2008-06-24 22:16:03 

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 16:13:54 CST 2008.