std.textio.all procedure read

Z

Zhane

Guest
variable L: Line;
variable Tim: time;
variable Int: integer;
variable cha: character;
variable str : string(1 to 6);

READLINE(F,L);
READ(L, Tim);
READ(L, Int);
READ(L, cha);
READ(L, Str);
READ(L, Int);

for the above code, what will i get if the input file, F has..
100 NS 99 ABCDEF 27

as the input stimuli?
 
On Sat, 25 Apr 2009 02:52:22 -0700 (PDT), Zhane wrote:

variable L: Line;
variable Tim: time;
variable Int: integer;
variable cha: character;
variable str : string(1 to 6);

READLINE(F,L);
READ(L, Tim);
READ(L, Int);
READ(L, cha);
READ(L, Str);
READ(L, Int);

for the above code, what will i get if the input file, F has..
100 NS 99 ABCDEF 27

as the input stimuli?
I've seen that example somewhere before....
--
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@MYCOMPANY.com
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
 

Welcome to EDABoard.com

Sponsor

Back
Top