196 Chapter Seven
board-socket-chip analogy. (This analogy was originally presented to me
by Dr. Alec Stanculescu.) In this analogy, the architecture of the top-level
entity represents the board being modeled. The component instance repre-
sents a socket on the board, and the lower-level entity being instantiated
in the architecture represents the chip.
This analogy helps describe how the ports and generics are mapped at
each level. At the board (architecture) level component socket pins are
interconnected with signals. The chip pins are then connected to socket
pins when the chip is plugged into the socket. Following is an example of
how this works:LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;Declarations / MappingDNXADeclared, with default valueDeclared, with no default valueNot DeclaredActual MappedErrors / Warnings1 Can only map generic in configuration if declared in the entity2 Generic declared in component but not in entity, hence it is not used3 Can only map generic in component instance if declared in component declarations4 Can’t map a generic in the component instance and the configuration5 Must map at least one generic to get the default value for other genericsGeneric ValuesEMICDefault taken from entityDefault taken from configurationActual taken from component instanceActual taken from configurationFigure 7-4
Configuration
Generic Table Transla-
tions.