The architecture keyword defines the internal details of a design entity.

 

An architecture body defines the relationships between the input and output elements of the entity.  An architecture body consists of a series of concurrent statements.  An architecture body can also include processes, functions, and procedures, each of which may include sequential statements.  Although the statements inside a process, for example, are executed sequentially, the process itself is treated within the architecture body as a concurrent statement.

 

A given architecture can be associated with only one entity.  However, a given entity may have more than one architecture body.

 

An architecture statement includes—in this order—the following:

 

(1)  the reserved word "architecture", followed by :

  (a)  the name of the architecture,

  (b)  the reserved word "of",

  (c)  the entity name, and

  (d)  the reserved word "is",

(2)  a declarations section,

(3)  the reserved word "begin",

(4)  the architecture body (a series of concurrent statements as described above), and

(5)  the reserved word "end", followed optionally by the name of the architecture from (1)(a) above.

 

Example

    architecture   sample_architecture of compare is

    begin

      GT <= ‘1’ when A > B else ‘0’;

      LT <= ‘1’ when A < B else ‘0’;

      EQ <= ‘1’ when A = B else ‘0’;

    end sample_architecture;

 

LRM

    1.2

 

See also

image\diamond.gif  First Look: Entities and Architectures