Professional Documents
Culture Documents
INTRODUCTION
• Data types used to represent the data storage and transmission
elements found in digital hardware
• Verilog consists of only four basic values
wiret1
Wire t2
Net datatypes
1. Wire
A wire represents a physical wire in a circuit and is used to connect gates or
modules. The value of a wire can be read, but not assigned to, in a function or
block.
A wire does not store its value but must be driven by a continuous
assignment statement or by connecting it to the output of a gate or module.
Wire and tri have same syntax and function
Keyword wire denotes single drivers
Keyword tri denotes nets that have multiple drivers
NET DATATYPES
Trireg
Used to model nets having capacitance that stores values.
Nets of type trireg are in one of the 2 states
Driven state:atleast one driver has values 0,1,x and value is continuosly stored in the trireg net
Capacitive state: all drivers have high impedence and the net hold the last driven value
Tri0 and tri 1
Used to model pull up and pull down devices
Tri0 =0 if nothing is driving the net
Tri1=1 if nothing is driving the network
Net datatypes
Integer
It is used to declare integers.
Example :- integer count ; //assume that count is an integer value.
It is signed.
It is synthesizable .
Default size is 32 bit.
Real
Used to declare the floating point values.
Default size is 64 bit.
Not synthesizable .
REGISTERS
Time
This is used to record the simulation time .
Default size is 64 bit .
Not synthesizable .
Example :- time snapshot ;
THANK YOU