You are on page 1of 11

Verilog Basics

EC2004 – Digital Circuit Practice 16.08.2022 1


Hardware Description Language (HDL)
• A specialized computer language used to describe the structure and
behavior of electronic circuits, and most commonly, digital logic circuits.
• The three common HDLs are Verilog, VHDL, and SystemC.
• Verilog was developed to simplify the process and make the HDL more
robust and flexible.
• Today, Verilog is the most popular HDL used and practiced throughout
the semiconductor industry.

2
Electronics Design!!!
• Given specifications, we want to develop a circuit by connecting known
electronic devices, such that the circuit means given specifications.
• “Specifications” refer to the description of the desired behaviour of the
circuit.
• “Known” devices are those whose behaviour can be modelled by known
equations or algorithm, with known values of parameters.

3
Verilog Abstraction Levels
• Gate level (structural)
It resembles a schematic drawing with components connected with
signals.
• Register-transfer level (data-flow)
The specification is comprised of expressions made up of input
signals and assigned to outputs. (logical equations)
• Behavioral level
It specifies the circuit in terms of its expected behavior.

4
Comparison of Verilog and C

Source: https://www.tutorialspoint.com/learn_c_by_examples/compare_two_integers_in_c.htm

5
Half Adder : Structural

6
Half Adder: Data Flow and Behavioural

7
Test Bench

8
Software:
Link : https://www.edaplayground.com/

9
10
Thank You!!!

11

You might also like