Table of Contents

Attribute specification

attribute_specification

attribute attribute_designator of entity_specification is expression ;

Parents

Further definitions

attribute_designator

attribute _simple_name

entity_specification

entity_name_list : entity_class

expression

Examples

Values for the attribute pin_number are determined. For the signal cin the attribute value is 10 and for the signal cout it is 5 .

ATTRIBUTE pin_number OF cin :
      SIGNAL IS 10 ;
 
ATTRIBUTE pin_number OF cout :
      SIGNAL IS 5 ;

For the label adder_1 the value of the attribute instance_location is (10,15) ; for all other labels it is (25,65) .

ATTRIBUTE instance_location OF
      adder_1 : LABEL IS ( 10, 15 ) ;
 
ATTRIBUTE instance_location OF
      OTHERS : LABEL IS ( 25, 65 ) ;

ATTRIBUTE author OF add_entity :
      ENTITY IS "Martin" ;
ATTRIBUTE is_generic OF cmos_nand :
      COMPONENT IS false ;
ATTRIBUTE creation_date OF add_arc :
      ARCHITECTURE IS (11, aug, 95) ;
ATTRIBUTE safety OF arithm_conv :
      PROCEDURE IS bug ;
ATTRIBUTE confidentiality OF    cmos_pkg : PACKAGE IS restrictive ;

By using predefined attributes the loop instruction can be written in a different way as well:

FOR i IN a1'LOW TO a1'HIGH
 
FOR i IN a1'RIGHT TO a1'LEFT
 
FOR i IN a1'REVERSE_RANGE
 
FOR i IN a1'RANGE
SIGNAL a1: bit_vector(3 DOWNTO 0) ;
...
PROCESS (a)
   BEGIN
   z<= "0000" :
   FOR i in 0 TO 3 LOOP
      IF (a = i) THEN
         z(i) <= '1' ;
      END IF ;
   END LOOP ;
END PROCESS ;
...