TEXTIO defines a LINE data type
- All read and write operations use the LINE type
TEXTIO also defines a FILE type of TEXT for use with ASCII text
Procedures defined by TEXTIO are:
- reads a line of file f and places it in buffer k
- reads a value of v of its type from k
- ENDFILE(f) returns TRUE at the end of FILE
TEXTIO defines two new data types to assist in text handling. The first is the LINE data type. The LINE type is a text buffer used to interface VHDL I/O and the file. Only the LINE type may read from or written to a file.
A new FILE type of TEXT is also defined. A file of type TEXT may only contain ASCII characters.
Several of the procedures provided by TEXTIO for handling text input/output are also listed in this slide.