VHDL
VHDL
Entity declaration
Interface declaration
Architecture body
Functional definition
ENTITY declaration is analogous to symbol of a component
entity nand2 is
A
port ( A,B : in bit ;
C: out bit ) ; nand 2 C
B
end nand2;
entity fulladder is
A
port ( A,B,Cin : in bit ; Sum
B fulladder
sum : out bit; Carry
Cin
carry : out bit ) ;
end fulladder;
Thus, entity declaration of a device tells us about
-Ports and their types
-Type of data they can hold i.e bit, bit_vector etc.
Port : in , out, inout, buffer
Architecture
• Schematic in conventional design methodology defines
functionality of design
• Architecture gives the functional behavior of the entity i.e.
how its inputs and outputs are related
• Architectures can be modeled in four different ways
Behavioral modeling Structural modeling
Data flow modeling Mixed modeling
Example :
architecture arch1 of nand2 is
begin
C <= A nand B;
end arch1;
Data Type
• Scalar types: enumeration, integer, physical,
floating point.
• Composite types: array, record, access.
Data Objects
• Constant
• Variable
• Signal
• file
begin
begin
Statement Statement
Statement
Statement
Statement
Statement
end
end
Concurrent Sequential
Concurrent statements Sequential statements