Chapter 12. Generics
The models that we have used as examples in preceding chapters all have fixed behavior and structure. In many respects, this is a limitation, and we would like to be able to write more general, or generic, models. VHDL provides us with a mechanism, called generics, for writing parameterized models. We discuss generics in this chapter and show how they may be used to write families of models with varying behavior and structure.
Generic Constants
The simplest form of generic model is parameterized by one or more generic constants. These are constants that cannot be changed within a design unit, but whose values are set when the design unit is initialized. We can write an entity with generic constants by including a generic interface ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access