2.11. Read File
The read command extracts information from an external file, see Figure 2-9. Such data can be fed into input signal(s) defined by an entity. Some of the data types that can be read from the external file using the read command are integers, Boolean, character, time, real, and string. This command is very useful when verifying the design code and is discussed more in the simulation chapter.
Figure 2-9. Read External File
The code in Listing 2-15 reads integer data from an external text file. These data are converted to standard logic vectors and used as input data to the design component named readfile. The functions of the readfile ...