Digital Circuits and Systems Introduction to Verilog Shankar - - PowerPoint PPT Presentation

digital circuits and systems
SMART_READER_LITE
LIVE PREVIEW

Digital Circuits and Systems Introduction to Verilog Shankar - - PowerPoint PPT Presentation

Spring 2015 Week 1 Module 6 Digital Circuits and Systems Introduction to Verilog Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras *Currently a Visiting Professor at IIT Bombay Abstraction


slide-1
SLIDE 1

Shankar Balachandran* Associate Professor, CSE Department Indian Institute of Technology Madras

*Currently a Visiting Professor at IIT Bombay

Digital Circuits and Systems

Spring 2015 Week 1 Module 6

Introduction to Verilog

slide-2
SLIDE 2

Introduction to Verilog 2

Abstraction Levels

Silicon Level Transistor Level Gate Level

Adder Shifter

Architecture Level System Level

slide-3
SLIDE 3

Introduction to Verilog 3

Design Representation (Example 1)

 Multiplexer: Choose one of two inputs based on a control

input

 Sel: Select line and is a control input  A,B: Data Inputs  Out: Multiplexer Output MUX A B Sel Out

slide-4
SLIDE 4

Introduction to Verilog 4

Textual Description

 If Sel is `0’, choose A and pass it on to Out  If Sel is `1’, choose B and pass it on to Out  The value of A and B does not matter

 Pass both 0’s and 1’s

MUX A B Sel Out

slide-5
SLIDE 5

Introduction to Verilog 5

Truth Table

Sel A B Out 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1

Boolean Equation

Sel A e u B O t S l   ฀ ฀

slide-6
SLIDE 6

Introduction to Verilog 6

Gate Level Description

A Sel B Out Selbar tmp1 tmp0

slide-7
SLIDE 7

Introduction to Verilog 7

Verilog Description (Netlist)

module multiplexer (A, B, Sel, Out); input A, B, Sel;

  • utput Out;

wire tmp1, tmp0; wire selbar; and (tmp1, B, Sel); not (selbar, Sel); and (tmp0, A, selbar);

  • r

(out, tmp0, tmp1); endmodule

A Sel B

selbar

tmp1 tmp0 Out

slide-8
SLIDE 8

Introduction to Verilog 8

What is Verilog?

 Verilog is a Hardware Description Language (HDL)  HDL: A high level programming language used to model

hardware.

 Hardware Description Languages

 have special hardware related constructs.  currently model digital systems and limited analog, and in future

can model complete mixed-signal systems also.

 can be used to build models for simulation, synthesis and test.  have been extended to the system design level

slide-9
SLIDE 9

Introduction to Verilog 9

Verilog Language

 Concurrent hardware description language  Naturally expresses parallelism in the hardware  Has constructs in it for modeling delays  Similarities in syntax to software languages

slide-10
SLIDE 10

End of Week 1: Module 6

Thank You

Introduction to Verilog 10