Text Input and Output
Basic file operations in VHDL are limited to unformatted input/output
VHDL includes the TEXTIO package for input and output of ASCII text
- TEXTIO is located in the STD library
-
The following data types are supported by the TEXTIO routines:
- Bit, Bit_vector
- Boolean
- Character, String
- Integer, Real
- Time
Notes:
The TEXTIO package provides additional declarations and subprograms for handling text (ASCII) files in VHDL. For example, the basic READ and WRITE operations of the FILE type are not very useful because they work with binary files. Therefore, the TEXTIO package provides subprograms for manipulating text more easily and efficiently.