std.textio.all procedure read

  • Follow


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?
0
Reply Zhane 4/25/2009 9:52:22 AM

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.
0
Reply Jonathan 4/25/2009 2:54:14 PM


1 Replies
252 Views

(page loaded in 0.008 seconds)

Similiar Articles:













7/25/2012 2:59:35 AM


Reply: