TEXTIO
TEXTIO
FILE
• VHDL provides a std package that can be used to read or write lines
from or to a file.
• Files are frequently used with test benches to provides a source of
test data and to provide storage for test results.
• File is declared within architecture, process, or package. The file is
opened when simulator starts and it closes when exit from it.
• File is also declared in subprogram.
Syntax
File file_name: file_type open [mode] is “file_pathname”;
Syntax:
Type file_name is file of data_type;