Professional Documents
Culture Documents
L2 VHDL Introduction
L2 VHDL Introduction
Introduction to VHDL
ALL SYSTEMS
Source Files
Analysis VHDL
(Compile) Library Files
Simulation Synthesis
A First Example
ENTITY unit_name IS
[port_clause]
END unit_name;
ENTITY full_adder IS
PORT( a,b,cin : IN BIT;
sum : OUT BIT;
cout : OUT BIT);
END full_adder;
Signals/Port Modes/Types
Port Modes:
Mode:
USE of SIGNALS
a <= ‘0’;
b <= x AND y OR z;
[declarations]
BEGIN
[architecture_statement_part]
END [identifier ];
[architecture_statement_part] -
B3 A3 B2 A2 B1 A1 B0 A0
Cout Cin
SIGNAL x, y : BIT;
Logical Operations:
Assignment Operators:
For signals <=
For variables :=
Relational Operators:
(x = y) (x /= y) (x <= y) (x >= y)
Structural Example
ENTITY and2 IS
PORT (A,B : IN BIT; Z : OUT BIT);
END and2;
ENTITY xor2 IS
PORT (A,B : IN BIT; Z : OUT BIT);
END xor;
ENTITY or3 IS
PORT (A,B,C : IN BIT; Z : OUT BIT);
END or3;
A Structural Description
END Structural;