O'Reilly logo

FPGAs 101 by Gina Smith

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required