The data storage and transmission elements found in digital hardware are represented using a set of Verilog Hardware Description Language (HDL) data types. The purpose of Verilog HDL is to design digital hardware.
Data types in Verilog are divided into NETS and Registers. These data types differ in the way that they are assigned and hold values and also they represent different hardware structures.
The Verilog HDL value set consists of four basic values:
|0||Logic zero or false|
|1||Logic one or true|
|x||Unknown logical value|
|z||High impedance of tristate gate|
- NETS –
The nets variables represent the physical connection between structural entities. These variables do not store values (except trireg); have the value of their drivers which changes continuously by the driving circuit. Some net data types are wire, tri, wor, trior, wand, triand, tri0, tri1, supply0, supply1 and trireg. wire is the most frequently used type. A net data type must be used when a signal is:
- driven by the output of some device.
- declared as an input or in-out port.
- on the left-hand side of a continuous assignment.
- Registers –
The register variables are used in procedural blocks which store values from one assignment to the next. An assignment statement in a procedure acts as a trigger that changes the value of the data storage element. Some register data types are: reg, integer, time and real.reg is the most frequently used type. Reg is used for describing logic, integer for loop variables and calculations, real in system modules, and time and realtime for storing simulation times in test benches.
- The reg variables are initialised to x at the start of the simulation. Any wire variable not connected to anything has the x value.
- The size of a register or wire may be specified during declaration.
- When the reg or wire size is more than one bit then register and wire are declared as vectors.
DIGITAL ELECTRONICS – Atul P.Godse, Mrs. Deepali A. Godse
Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.
- Multiplexer Design using Verilog HDL
- Difference between Verilog and SystemVerilog
- Flip-flop types, their Conversion and Applications
- Types and Applications of LED
- Transmission Impairment in Data Communication
- Signal Processing and Time Series (Data Analysis)
- Difference between Encoder and Decoder
- Difference between Half adder and full adder
- Shift Micro-Operations in Computer Architecture
- Error Detection Codes: Parity Bit Method
- SDH Full Form
- Difference between Amplitude Modulation and Frequency Modulation
- Difference between Amplitude Modulation and Phase Modulation
- Difference between Frequency Modulation and Phase Modulation
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.