VHDL Seminar: Data Types
VHDL Seminar: Data Types
Ajay K S
Reg. no. 13S06001
Data types
Data object:
A data object holds a value of
specified type. It is created by
means of an object declaration.
Eg: variable COUNT : INTEGER
Here data object called COUNT,
which hold integer values. The
object COUNT is also declared to be
of variable class.
Classes of data object:
1. Constant
2. Variable
3. Signal
4. File
Data Types:
Every data object in VHDL can hold a
value that belongs to a set of
values. This set of values is
specified by using a type
declaration. A type is a name that
has associated with a set of values
and a set of operations.
Eg: For INTEGER type operators are
+ for addition, - for subrtaction, *
for multiplication, / for division.
Data Types:
For BOOLEAN type some operators are
and, or, nor, nand, xor, xnor, not.
A major categories of data type are
Enumeration type
b)
Integer type
c)
Physical type
d)
Floating type
9.5
D). Physical type:
It contain values that represent
measurement of some physical
quantity, like time, length, voltage,
current.
Eg: type CURRENT is range 0 to 19
units;
2. Composite type:
A composite type represents a collection
of values.
2 types are :
a)
Recorded type
b)
Array type
3. Access type:
4. File type:
Objects of the file type represent files in
the host environment. They provide a
mechanism by which a VHDL design
communicates with the host
environment.
Syntax of file type representationis.
file_type_name is file of
type_name;
Eg:
Type NAMES is file of STRING;
THANK YOU..