 Architecture
ArchitectureDefines the internal view of a block of hardware, i.e. the functionality, behaviour or structure of the hardware. Belongs with an entity, which defines the interface. An entity may have several alternative architectures.
Syntax ( Key to Notation )
architecture ArchitectureName of EntityName is Declarations... begin ConcurrentStatements... end [architecture] [ArchitectureName];
See (VHDL) File
All the architectures of a particular entity must have different names, but the architectures of two different entities can have the same name.
It is easy to forget the begin, or put it in the wrong place!
library IEEE;
use IEEE.STD_LOGIC_1164.all;
architecture BENCH of TEST_MUX4 is
  subtype V2 is STD_LOGIC_VECTOR(1 downto 0);
  -- Component declaration...
  component MUX4
    port (SEL, A, B, C, D: in V2;
    F : out V2);
  end component;
  -- Internal signal...
  signal SEL, A, B, C, D, F: V2;
begin
  P: process
  begin
    SEL <= "00";
    wait for 10 NS;
    SEL <= "01";
    wait for 10 NS,
    SEL <= "10";
    wait for 10 NS, 
    SEL <= "11";
    wait for 10 NS;
    wait;
  end process P;
  -- Concurrent assignments...
  A <= "00"; 
  B <= "01";
  C <= "10";
  D <= "11";
  -- Component instantiation...
  M: MUX4 port map (SEL, A, B, C, D, F);
end BENCH;
Entity, Configuration, Concurrent Statement
 VHDL Quick Reference
VHDL Quick Reference
 Doulos Training
Courses
Doulos Training
Courses
 Back to the VHDL Golden Reference Guide
Back to the VHDL Golden Reference Guide
Copyright 1995-1997 Doulos
This page was last updated 25th June 1996
 We welcome your e-mail
comments. Please contact us at: webmaster@doulos.co.uk
We welcome your e-mail
comments. Please contact us at: webmaster@doulos.co.uk