The entity
declaration defines the interface of a design.
entity entity_name is
port (
port_name : mode data_type;
...
);
end entity entity_name;
A quick reference guide to VHDL (VHSIC Hardware Description Language), covering syntax, data types, operators, and common constructs used in digital circuit design.
The
|
Example:
|
The
|
Example:
|
VHDL uses libraries and packages for predefined types and functions.
|
|
|
Represents a single bit with nine possible values (‘U’, ‘X’, ‘0’, ‘1’, ‘Z’, ‘W’, ‘L’, ‘H’, ‘-’). |
|
An array of |
|
Represents signed integer values. Range is implementation-dependent. |
|
Represents boolean values ( |
|
Represents floating-point values. |
|
Represents time values with a specified unit (e.g., |
Logical Operators |
|
Relational Operators |
|
Arithmetic Operators |
|
Shift Operators |
|
Concatenation Operator |
|
Concurrent statements execute in parallel.
|
|
|
|
|
Sequential statements execute in order within a process.
|
|
|
|
|
Components are instances of entities used within an architecture.
|
|
Function |
A function returns a value and cannot have side effects.
|
Procedure |
A procedure does not return a value directly and can have side effects.
|
Generics provide a way to parameterize entities and components.
|
Example:
|