Vous êtes sur la page 1sur 9

DESIGNING A DIGITAL

CIRCUIT USING VERILOG


BY
Dwaraka.O.N

Contents
An introduction to verilog
Different styles of programming in verilog
Design of a 2:1 MUX
Programming 2:1 mux in different styles in verilog
Significance of each style of programming

Introduction
What is verilog?
Verilog is a HDL which is used to formally describe electronic
circuits
It usually used to design and test digital circuits
What is the significance of verilog?
Verilog helps in describing the behaviour of the circuit
Allows to have different levels of abstraction in the same design
Design can be simulated using software to check the functionality
before implementing the design in hardware.
Can check for delays in the circuit before implementing the design
in hardware.

Different styles of programming


There are various styles of programming in verilog
This is based on the level of abstraction the design is

being analysed.
Hence we can use 3 styles of programming
A) Dataflow
B)Behavioural
C) Structural

2:1 MUX
A

Y
B

S
S

Truth Table of 2:1 Mux

Data flow style of programming

Behavioural style of programming

Structural Style of programming


S

n1

a1
b1

Significance of each style of


programming
Sl No

Dataflow

Behavioural

Structural

Shows how data


flows from input to
the output

Shows how the circuit


behaves for various
kinds of inputs

Helps in realizing the


circuit

Does not show the


internal signals

Does not show the


internal signals

Shows the internal


signals

Can be used for


simple designs

Can be used for simple


as well as complicated
designs

Can be used only for


simple designs

Vous aimerez peut-être aussi