Structural And-Or-Invert Gate Example(Architecture)
ARCHITECTURE structural OF aoi2_str IS
-- COMPONENT DECLARATIONS
FOR ALL : and2 USE ENTITY gate_lib.and2(behav);
FOR ALL : or2 USE ENTITY gate_lib.or2(behav);
FOR ALL : inv USE ENTITY gate_lib.inv(behav);
SIGNAL and_out : level; -- signal for output
SIGNAL or_out : level; -- signal for output
-- COMPONENT INSTANTIATIONS
AND_1 : and2 GENERIC MAP(trise => trise,
OR_1 : or2 GENERIC MAP(trise => trise,
PORT MAP(a => and_out, b => c,
INV_1 : inv GENERIC MAP(trise => trise,
PORT MAP(a => or_out, b => d);
Notes:
This is the structural architecture of the and-or-invert gate. It shows the three major elements of a structural description. The component declarations which list which components will be used in the structure are in yellow. The binding indications which tell what library the component comes from and which library component is to be used for each declared component are in blue. Finally, the green highlights the component instantiations where the individual components are “placed” in the structure and connected to the proper generics and ports or signals.