[vhdl-200x-ft] Question on FT-08

From: David Bishop <dbishop@server.vhdl.org>
Date: Fri Jun 25 2004 - 12:47:43 PDT

I am currently creating the updated "std.textio" package, and looking
at FT-08 I have some questions/comments:

1)
     constant NL : string := LF ;
     constant CRLF : string := LF ; -- OS dependent constant to be CRLF

This belong in the package "std.standard". I have them looking like this:

   constant NL : string := (1 => character'val(10)) ; -- LF
   constant CRLF : string := (1 => character'val(10)) ; -- OS dependent
constant to be CRLF
   -- constant CRLF : string := (1 => character'val(13), 2 => character'val(10))
; -- OS dependent constant to be CRLF
2)
     -- Read and Write procedures for String values
     procedure SREAD (L: inout LINE; VALUE: out STRING; STRLEN: out natural;
GOOD : out BOOLEAN);
     procedure SREAD (L: inout LINE; VALUE: out STRING; STRLEN: out natural);

There already is a "READ" for type string, but there is no output "STRLEN".
You can get the length by just looking at the 'lenght of the string returned.
Why do we need the extra function.

3)

     procedure HREAD (L: inout LINE; VALUE: out REAL; GOOD : out BOOLEAN);
     procedure HREAD (L: inout LINE; VALUE: out REAL);
     procedure HWRITE (L: inout LINE; VALUE: in REAL;
                       JUSTIFIED: in SIDE := RIGHT; FIELD:in WIDTH := 0);
     procedure OREAD (L: inout LINE; VALUE: out REAL; GOOD : out BOOLEAN);
     procedure OREAD (L: inout LINE; VALUE: out REAL);
     procedure BREAD (L: inout LINE; VALUE: out REAL; GOOD : out BOOLEAN);
     procedure BREAD (L: inout LINE; VALUE: out REAL);
     procedure BWRITE (L: inout LINE; VALUE: in REAL;
                       JUSTIFIED: in SIDE := RIGHT; FIELD:in WIDTH := 0);
     procedure DREAD (L: inout LINE; VALUE: out REAL; GOOD : out BOOLEAN);
     procedure DREAD (L: inout LINE; VALUE: out REAL);
     procedure DWRITE (L: inout LINE; VALUE: in REAL;
                       JUSTIFIED: in SIDE := RIGHT; FIELD:in WIDTH := 0);

"Real" depends. Fixed or floating point?
I would rather handel these in my fixed and floating point packages. I can
just do a "real" conversion right in the read/write routine.

-- 
David W. Bishop dbishop@vhdl.org       All standard disclaimers apply.
Received on Fri Jun 25 12:48:10 2004

This archive was generated by hypermail 2.1.8 : Fri Jun 25 2004 - 12:48:12 PDT