file lines reading

Discussion in 'VHDL' started by srinukasam, Aug 5, 2005.

  1. srinukasam

    srinukasam Guest

    hi to all
    iam trying read file for simulation data , that is having multiple lines.
    one line for one set of data( second line again new inputs to all).
    when iam trying to read this it only reads the first line .in my file
    presently i have 2 lines( 2 sets of inputs).

    my procedure to read file is..
    in this procedur do i need to increase the line openly when i call next
    time..or it will take care of by line type. and i have readbit and
    readstring procedures , they are fuctioning well..
    please mail me some ideas.

    procedure readpatternline(file patternfile:text;
    string1,string2,string3,string4,string5,string6
    :eek:ut bit;
    string7,string8,string9,string10,string11,string12,string13,string14:eek:ut
    bit_vector) is

    variable patternline: line;
    variable column:integer;
    begin
    readline(patternfile, patternline);
    column:=1;

    readbit(patternline, column, string1);
    readbit(patternline, column, string2);
    readbit(patternline, column, string3);
    readbit(patternline, column, string4);
    readbit(patternline, column, string5);
    readbit(patternline, column, string6);
    readbitstring(patternline, column, string7);
    readbitstring(patternline, column, string8);
    readbitstring(patternline, column, string9);
    readbitstring(patternline, column, string10);
    readbitstring(patternline, column, string11);
    readbitstring(patternline, column, string12);
    readbitstring(patternline, column, string13);
    readbitstring(patternline, column, string14);

    end procedure;


    thank you
     
    srinukasam, Aug 5, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jack
    Replies:
    9
    Views:
    2,683
  2. Joe Wright
    Replies:
    0
    Views:
    526
    Joe Wright
    Jul 27, 2003
  3. lovecreatesbeauty

    How to know two lines are a pare parallel lines

    lovecreatesbeauty, Apr 27, 2006, in forum: C Programming
    Replies:
    11
    Views:
    668
    Old Wolf
    Apr 28, 2006
  4. Replies:
    1
    Views:
    460
    Jonathan Mcdougall
    Dec 6, 2005
  5. Murali
    Replies:
    2
    Views:
    577
    Jerry Coffin
    Mar 9, 2006
Loading...

Share This Page