TEXTIO Procedures
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:
- READLINE(f,k)
- reads a line of file f and places it in buffer k
- READ(k,v,...)
- reads a value of v of its type from k
- WRITE(k,v,...)
- WRITELINE(f,k)
- ENDFILE(f) returns TRUE at the end of FILE
Notes:
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.