SlideShare una empresa de Scribd logo
1 de 25
A Presentation on
VLSI Technology
BY:UTKARSH KULSHRESTHA
CONTENTS
 Introduction

to VLSI
 Hardware description
language
 Verilog coding
 Vending machine
2
VLSI


VLSI is very large scale integration
technology.



It is related to the chip designing.



Chip designing is comprises of two areas:1. FRONT END
2. BACK END



VLSI uses CMOS technology
3
VLSI
BJT-PNP
BJT-NPN

MOSFET

PMOS

NMOS

CMOS
4
Hardware Description
Languages


Basic idea is a programming language to describe
hardware



Synthesis tools allow direct implementation from HDL
code.



Combined with modern Field Programmable Gate Array
chips large complex circuits (100000s of gates) can be
implemented.



There are many HDL’s as:1. ABEL
2. AHDL
3. VHDL
4. Verilog HDL
5. System Verilog

5
Verilog HDL
 Launched

in 1984 by CADENCE.

 Verilog

is Unlike VHDL is a case
sensitive language and uses
lower case.

 It

is a CONCURRENT language.

 COMPLEXITY
 Only

of Verilog is low.

used for DIGITAL DESIGNS.
6
Module declaration
Input
X

Module
Circuit

Y

Wire
Output

Z

O

Module name
module sample (X,Y,Z,O);
input X,Y,Z;
output O;
// Describe the circuit using logic symbols
assign O = (X^Y)&Z;
endmodule
Data Types
Nets and Registers
 Vectors
 Integer, Real, and Time Register Data
Types
 Arrays
 Memories
 Parameters
 Strings


Verilog HDL
Operators


Arithmetic:

reg [3:0] a, b, c, d;
wire[7:0] x,y,z;
parameter n =4;

*,+,-, /,%



Relational

<,<=,>,>=,==, !=



Bit-wise Operators
•
•
•
•
•



Not: ~
XOR: ^
And : &
5’b11001 & 5’b01101 ==> 5’b01001
OR: |
XNOR: ~^ or ^~

Logical Operators

Returns 1or 0, treats all nonzero as 1
! : Not
• && : AND
• || : OR
•

27 && -3 ==> 1

c = a + b;
d = a *n;
If(x==y) d = 1; else d =0;
d = a ~^ b;
if ((x>=y) && (z)) a=1;
else a = !x;
9
Operators


Reduction Operators:

Unary operations returns single-bit values
•

& : and

•

| :or

•

~& : nand

•

~| : nor

•

^ : xor

•

~^ :xnor



Shift Operators

Shift Left: <<
Shift right: >>



Concatenation Operator

module sample (a, b, c, d);
input [2:0] a, b;
output [2;0] c, d;
wire z,y;
assign z = ~| a;
c = a * b;
If(a==b) d = 1; else d =0;
d = a ~^ b;
if ((a>=b) && (z)) y=1;
else y = !x;

{ } (concatenation)
{ n{item} } (n fold replication of an item)

Conditional Operator
Implements if-then-else statement


(cond) ? (result if cond true) : (result if cond false)

assign d << 2; //shift left twice
assign {carry, d} = a + b;
assign c = {2{carry},2{1’b0}};
// c = {carry,carry,0,0}
assign c= (inc==2)? a+1:a-1;
10
Verilog Coding Styles
Gate

level modelling
Dataflow modelling
Behavioral modelling
Structural modelling
Gate level modelling





The gate level structure of digital design is required.
It requires the number of gates in the design.
It also requires the way the gates are connected.
The keywords defined for gates are as:AND
XOR
OR
XNOR
NOT
BUF
NAND
BUFIF1
NOR
BUFIF0

12
Example:Gate level modelling

Module gatelevel(A,B,C,x,y);
Input A,B.C;
Output x,y;
Wire e;
And(e,A,B);
Not(y,C);
Or(x,e,y);
Endmodule;

13
Dataflow modelling


The flow of data should be known from one point to
another.



It works on the Boolean expressions.



ASSIGN keyword is used to drive the values.
assign y=a&b;



Usually Boolean operators are used for dataflow
modelling and only the output equations are necessary
for designing.

14
Example:Dataflow modelling
4-bit Adder with instanciation


Step 1: build a 1-bit full adder as a module


S = (a) XOR (b) XOR (Cin ) ; ( S = a^b^Cin)



Cout = (a&b) |(Cin&(a+b))

module FA_1bit (S,Cout,a,b,Cin);
begin
input a,b,Cin;
Output S, Cout;
assign Sum = a^b^Cin;
assign Carry = (a&b) | (Cin&(a^b));

Module add_1bit

endmodule
15
4-bit Adder
Step 2: initiate 4 instances of FA_1bit module



Cout

1-bit
Full
Adder

Cout2

1-bit
Full
Adder

S3

S2

module FA_4bits (S,Cout,A,B,Cin);
input [3:0] A, B;
input
Cin;
output [3:0]
S;
output
Cout
wire
Cout0, Cout1, Cout2
FA_1bit
FA1(S[0], Cout0,A[0],B[0],Cin);
FA_1bit
FA1(S[1], Cout1,A[1],B[1],Cout0);
FA_1bit
FA1(S[2], Cout2,A[2],B[2],Cout1);
FA_1bit
FA1(S[3], Cout,A[3],B[3],Cout2);
end
endmodule;

B0 A0

B1 A1

B2 A2

B3 A3

Cout1

1-bit
Full
Adder

S1

Cout0

1-bit
Full
Adder

Cin

S0
The inputs and the output
are 4-bits wide
we need wires to
propagate the carry from
one stage to the next

you may name the
instances with any name,
but you have to maintain
the order 16 the inputs and
of
outputs
Behavioral modelling


The behavior of the circuit should be known in the
terms of its inputs and outputs.



This modelling is semi-concurrent in nature.



It uses conditional statements just like in C as “if-else”
and “case” statements.



Begin….end statements are used as for sequential
execution.

17
Example:D Flip-flop with
Synchronous reset and Enable
always@(posedge clk)
begin
if (rst) a<=0;
else if (enable) a<=b;
end

18
D Flip-Flop with Asynchronous
Reset
always@(posedge clk or negedge rst)
begin
if (!rst) a<=0;
else a<=b;
end

19
Structural coding


It is basically not a coding style.

 It

is used to connect behavioral designs
components to design more complex
circuits.

 The

components of huge circuitry are
designed separately.

20
Vending machine


It is based on FSM.



FSM is the heart of any
digital design.



According to the input
state transition occurs.



The machine has four
states like
coke,mango,orange and
lime with an initial
state.

21
Vending machine

Insert
coin

Mango
State 1

coke
State 2

lime
State 3

orange
State 4

Vending
machine
Initial
State
Enter
product

22
Standard Form for a
Verilog FSM
// state flip-flops
reg [2:0] state, nxt_st;
// state definitions
parameter
reset=0,S1=1,S2=2,S3=3,..

// NEXT STATE CALCULATIONS
always@(state or inputs or ...)
begin
…
next_state= ...
…
end

// REGISTER DEFINITION
always@(posedge clk)
begin
state<=next_state;
end
// OUTPUT CALCULATIONS
output= f(state, inputs)

23
Simulation for vending
machine

24
THANK YOU

25

Más contenido relacionado

La actualidad más candente

ASIC Design and Implementation
ASIC Design and ImplementationASIC Design and Implementation
ASIC Design and Implementationskerlj
 
Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners Ravi Sony
 
Hard IP Core design | Convolution Encoder
Hard IP Core design | Convolution EncoderHard IP Core design | Convolution Encoder
Hard IP Core design | Convolution EncoderArchit Vora
 
Digital design lect 26 27
Digital design lect 26 27Digital design lect 26 27
Digital design lect 26 27babak danyal
 
VLSI Experiments I
VLSI Experiments IVLSI Experiments I
VLSI Experiments IGouthaman V
 
Programmable logic controller performance enhancement by field programmable g...
Programmable logic controller performance enhancement by field programmable g...Programmable logic controller performance enhancement by field programmable g...
Programmable logic controller performance enhancement by field programmable g...ISA Interchange
 
Making of an Application Specific Integrated Circuit
Making of an Application Specific Integrated CircuitMaking of an Application Specific Integrated Circuit
Making of an Application Specific Integrated CircuitSWINDONSilicon
 
Revathi_Resume__2.6
Revathi_Resume__2.6Revathi_Resume__2.6
Revathi_Resume__2.6Revati M
 
Logic synthesis with synopsys design compiler
Logic synthesis with synopsys design compilerLogic synthesis with synopsys design compiler
Logic synthesis with synopsys design compilernaeemtayyab
 
VLSI-Physical Design- Tool Terminalogy
VLSI-Physical Design- Tool TerminalogyVLSI-Physical Design- Tool Terminalogy
VLSI-Physical Design- Tool TerminalogyMurali Rai
 
Fpga implementation of encryption and decryption algorithm based on aes
Fpga implementation of encryption and decryption algorithm based on aesFpga implementation of encryption and decryption algorithm based on aes
Fpga implementation of encryption and decryption algorithm based on aeseSAT Publishing House
 
Complete ASIC design flow - VLSI UNIVERSE
Complete ASIC design flow - VLSI UNIVERSEComplete ASIC design flow - VLSI UNIVERSE
Complete ASIC design flow - VLSI UNIVERSEVLSIUNIVERSE
 

La actualidad más candente (20)

ASIC Design and Implementation
ASIC Design and ImplementationASIC Design and Implementation
ASIC Design and Implementation
 
Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners
 
Hard IP Core design | Convolution Encoder
Hard IP Core design | Convolution EncoderHard IP Core design | Convolution Encoder
Hard IP Core design | Convolution Encoder
 
Fpga
FpgaFpga
Fpga
 
Digital design lect 26 27
Digital design lect 26 27Digital design lect 26 27
Digital design lect 26 27
 
VLSI Experiments I
VLSI Experiments IVLSI Experiments I
VLSI Experiments I
 
Verilog HDL
Verilog HDLVerilog HDL
Verilog HDL
 
Programmable logic controller performance enhancement by field programmable g...
Programmable logic controller performance enhancement by field programmable g...Programmable logic controller performance enhancement by field programmable g...
Programmable logic controller performance enhancement by field programmable g...
 
Himanshu Shivhar (1)
Himanshu Shivhar (1)Himanshu Shivhar (1)
Himanshu Shivhar (1)
 
Making of an Application Specific Integrated Circuit
Making of an Application Specific Integrated CircuitMaking of an Application Specific Integrated Circuit
Making of an Application Specific Integrated Circuit
 
Revathi_Resume__2.6
Revathi_Resume__2.6Revathi_Resume__2.6
Revathi_Resume__2.6
 
Logic synthesis with synopsys design compiler
Logic synthesis with synopsys design compilerLogic synthesis with synopsys design compiler
Logic synthesis with synopsys design compiler
 
VLSI-Physical Design- Tool Terminalogy
VLSI-Physical Design- Tool TerminalogyVLSI-Physical Design- Tool Terminalogy
VLSI-Physical Design- Tool Terminalogy
 
FPGA Based VLSI Design
FPGA Based VLSI DesignFPGA Based VLSI Design
FPGA Based VLSI Design
 
Fpga implementation of encryption and decryption algorithm based on aes
Fpga implementation of encryption and decryption algorithm based on aesFpga implementation of encryption and decryption algorithm based on aes
Fpga implementation of encryption and decryption algorithm based on aes
 
Complete ASIC design flow - VLSI UNIVERSE
Complete ASIC design flow - VLSI UNIVERSEComplete ASIC design flow - VLSI UNIVERSE
Complete ASIC design flow - VLSI UNIVERSE
 
Lect01 flow
Lect01 flowLect01 flow
Lect01 flow
 
Vlsi lab
Vlsi labVlsi lab
Vlsi lab
 
Tierney bq207
Tierney bq207Tierney bq207
Tierney bq207
 
Embedded system
Embedded systemEmbedded system
Embedded system
 

Destacado

Complaint Letters
Complaint LettersComplaint Letters
Complaint Lettersgmherrera
 
Adjustments and claim
Adjustments and claimAdjustments and claim
Adjustments and claimMathan Kumar
 
String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,8neutron8
 
Letters of Complaint
Letters of ComplaintLetters of Complaint
Letters of ComplaintJafar pp
 
How to write a letter of complaint
How to write a letter of complaintHow to write a letter of complaint
How to write a letter of complaintPaula Gómez
 
Writing Complaint Letter
Writing Complaint LetterWriting Complaint Letter
Writing Complaint LetterPumpump
 
Letters of complaint
Letters of complaintLetters of complaint
Letters of complaintMajorick
 
Writing Letters by Ganta Kishore Kumar
Writing Letters by Ganta Kishore KumarWriting Letters by Ganta Kishore Kumar
Writing Letters by Ganta Kishore KumarGanta Kishore Kumar
 

Destacado (16)

Lect23 Engin112
Lect23 Engin112Lect23 Engin112
Lect23 Engin112
 
Complaint Letters
Complaint LettersComplaint Letters
Complaint Letters
 
Functional modeling
Functional modelingFunctional modeling
Functional modeling
 
Behavioral modelling in VHDL
Behavioral modelling in VHDLBehavioral modelling in VHDL
Behavioral modelling in VHDL
 
Adjustments and claim
Adjustments and claimAdjustments and claim
Adjustments and claim
 
String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,String Matching with Finite Automata,Aho corasick,
String Matching with Finite Automata,Aho corasick,
 
Letters of Complaint
Letters of ComplaintLetters of Complaint
Letters of Complaint
 
Complaint letter
Complaint letterComplaint letter
Complaint letter
 
Letter of complaint
Letter of complaintLetter of complaint
Letter of complaint
 
How to write a letter of complaint
How to write a letter of complaintHow to write a letter of complaint
How to write a letter of complaint
 
Writing Complaint Letter
Writing Complaint LetterWriting Complaint Letter
Writing Complaint Letter
 
Chap 2 behaviour models
Chap 2 behaviour modelsChap 2 behaviour models
Chap 2 behaviour models
 
Letters of complaint
Letters of complaintLetters of complaint
Letters of complaint
 
Complaint letters
Complaint lettersComplaint letters
Complaint letters
 
4. letter of complaint
4. letter of complaint4. letter of complaint
4. letter of complaint
 
Writing Letters by Ganta Kishore Kumar
Writing Letters by Ganta Kishore KumarWriting Letters by Ganta Kishore Kumar
Writing Letters by Ganta Kishore Kumar
 

Similar a VerilogHDL_Utkarsh_kulshrestha

Similar a VerilogHDL_Utkarsh_kulshrestha (20)

Task i
Task iTask i
Task i
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
Verilog_Overview.pdf
Verilog_Overview.pdfVerilog_Overview.pdf
Verilog_Overview.pdf
 
Ecad &amp;vlsi lab 18
Ecad &amp;vlsi lab 18Ecad &amp;vlsi lab 18
Ecad &amp;vlsi lab 18
 
VLSI experiments II
VLSI experiments IIVLSI experiments II
VLSI experiments II
 
gate level modeling
gate level modelinggate level modeling
gate level modeling
 
mod-4.pptx
mod-4.pptxmod-4.pptx
mod-4.pptx
 
Verilogforlab
VerilogforlabVerilogforlab
Verilogforlab
 
Verilog 語法教學
Verilog 語法教學 Verilog 語法教學
Verilog 語法教學
 
CombVerilog.pdf
CombVerilog.pdfCombVerilog.pdf
CombVerilog.pdf
 
5 - Advanced SVE.pdf
5 - Advanced SVE.pdf5 - Advanced SVE.pdf
5 - Advanced SVE.pdf
 
Digital System Design Lab Report - VHDL ECE
Digital System Design Lab Report - VHDL ECEDigital System Design Lab Report - VHDL ECE
Digital System Design Lab Report - VHDL ECE
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
 
FPGA based BCH Decoder
FPGA based BCH DecoderFPGA based BCH Decoder
FPGA based BCH Decoder
 
Vlsi lab manual exp:1
Vlsi lab manual exp:1Vlsi lab manual exp:1
Vlsi lab manual exp:1
 
All VLSI programs
All VLSI programsAll VLSI programs
All VLSI programs
 
Boosting Developer Productivity with Clang
Boosting Developer Productivity with ClangBoosting Developer Productivity with Clang
Boosting Developer Productivity with Clang
 
verilog
verilogverilog
verilog
 
Eecs 317 20010209
Eecs 317 20010209Eecs 317 20010209
Eecs 317 20010209
 
Introduction to VHDL
Introduction to VHDLIntroduction to VHDL
Introduction to VHDL
 

Último

Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 

Último (20)

Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 

VerilogHDL_Utkarsh_kulshrestha

  • 1. A Presentation on VLSI Technology BY:UTKARSH KULSHRESTHA
  • 2. CONTENTS  Introduction to VLSI  Hardware description language  Verilog coding  Vending machine 2
  • 3. VLSI  VLSI is very large scale integration technology.  It is related to the chip designing.  Chip designing is comprises of two areas:1. FRONT END 2. BACK END  VLSI uses CMOS technology 3
  • 5. Hardware Description Languages  Basic idea is a programming language to describe hardware  Synthesis tools allow direct implementation from HDL code.  Combined with modern Field Programmable Gate Array chips large complex circuits (100000s of gates) can be implemented.  There are many HDL’s as:1. ABEL 2. AHDL 3. VHDL 4. Verilog HDL 5. System Verilog 5
  • 6. Verilog HDL  Launched in 1984 by CADENCE.  Verilog is Unlike VHDL is a case sensitive language and uses lower case.  It is a CONCURRENT language.  COMPLEXITY  Only of Verilog is low. used for DIGITAL DESIGNS. 6
  • 7. Module declaration Input X Module Circuit Y Wire Output Z O Module name module sample (X,Y,Z,O); input X,Y,Z; output O; // Describe the circuit using logic symbols assign O = (X^Y)&Z; endmodule
  • 8. Data Types Nets and Registers  Vectors  Integer, Real, and Time Register Data Types  Arrays  Memories  Parameters  Strings  Verilog HDL
  • 9. Operators  Arithmetic: reg [3:0] a, b, c, d; wire[7:0] x,y,z; parameter n =4; *,+,-, /,%  Relational <,<=,>,>=,==, !=  Bit-wise Operators • • • • •  Not: ~ XOR: ^ And : & 5’b11001 & 5’b01101 ==> 5’b01001 OR: | XNOR: ~^ or ^~ Logical Operators Returns 1or 0, treats all nonzero as 1 ! : Not • && : AND • || : OR • 27 && -3 ==> 1 c = a + b; d = a *n; If(x==y) d = 1; else d =0; d = a ~^ b; if ((x>=y) && (z)) a=1; else a = !x; 9
  • 10. Operators  Reduction Operators: Unary operations returns single-bit values • & : and • | :or • ~& : nand • ~| : nor • ^ : xor • ~^ :xnor  Shift Operators Shift Left: << Shift right: >>  Concatenation Operator module sample (a, b, c, d); input [2:0] a, b; output [2;0] c, d; wire z,y; assign z = ~| a; c = a * b; If(a==b) d = 1; else d =0; d = a ~^ b; if ((a>=b) && (z)) y=1; else y = !x; { } (concatenation) { n{item} } (n fold replication of an item) Conditional Operator Implements if-then-else statement  (cond) ? (result if cond true) : (result if cond false) assign d << 2; //shift left twice assign {carry, d} = a + b; assign c = {2{carry},2{1’b0}}; // c = {carry,carry,0,0} assign c= (inc==2)? a+1:a-1; 10
  • 11. Verilog Coding Styles Gate level modelling Dataflow modelling Behavioral modelling Structural modelling
  • 12. Gate level modelling     The gate level structure of digital design is required. It requires the number of gates in the design. It also requires the way the gates are connected. The keywords defined for gates are as:AND XOR OR XNOR NOT BUF NAND BUFIF1 NOR BUFIF0 12
  • 13. Example:Gate level modelling Module gatelevel(A,B,C,x,y); Input A,B.C; Output x,y; Wire e; And(e,A,B); Not(y,C); Or(x,e,y); Endmodule; 13
  • 14. Dataflow modelling  The flow of data should be known from one point to another.  It works on the Boolean expressions.  ASSIGN keyword is used to drive the values. assign y=a&b;  Usually Boolean operators are used for dataflow modelling and only the output equations are necessary for designing. 14
  • 15. Example:Dataflow modelling 4-bit Adder with instanciation  Step 1: build a 1-bit full adder as a module  S = (a) XOR (b) XOR (Cin ) ; ( S = a^b^Cin)  Cout = (a&b) |(Cin&(a+b)) module FA_1bit (S,Cout,a,b,Cin); begin input a,b,Cin; Output S, Cout; assign Sum = a^b^Cin; assign Carry = (a&b) | (Cin&(a^b)); Module add_1bit endmodule 15
  • 16. 4-bit Adder Step 2: initiate 4 instances of FA_1bit module  Cout 1-bit Full Adder Cout2 1-bit Full Adder S3 S2 module FA_4bits (S,Cout,A,B,Cin); input [3:0] A, B; input Cin; output [3:0] S; output Cout wire Cout0, Cout1, Cout2 FA_1bit FA1(S[0], Cout0,A[0],B[0],Cin); FA_1bit FA1(S[1], Cout1,A[1],B[1],Cout0); FA_1bit FA1(S[2], Cout2,A[2],B[2],Cout1); FA_1bit FA1(S[3], Cout,A[3],B[3],Cout2); end endmodule; B0 A0 B1 A1 B2 A2 B3 A3 Cout1 1-bit Full Adder S1 Cout0 1-bit Full Adder Cin S0 The inputs and the output are 4-bits wide we need wires to propagate the carry from one stage to the next you may name the instances with any name, but you have to maintain the order 16 the inputs and of outputs
  • 17. Behavioral modelling  The behavior of the circuit should be known in the terms of its inputs and outputs.  This modelling is semi-concurrent in nature.  It uses conditional statements just like in C as “if-else” and “case” statements.  Begin….end statements are used as for sequential execution. 17
  • 18. Example:D Flip-flop with Synchronous reset and Enable always@(posedge clk) begin if (rst) a<=0; else if (enable) a<=b; end 18
  • 19. D Flip-Flop with Asynchronous Reset always@(posedge clk or negedge rst) begin if (!rst) a<=0; else a<=b; end 19
  • 20. Structural coding  It is basically not a coding style.  It is used to connect behavioral designs components to design more complex circuits.  The components of huge circuitry are designed separately. 20
  • 21. Vending machine  It is based on FSM.  FSM is the heart of any digital design.  According to the input state transition occurs.  The machine has four states like coke,mango,orange and lime with an initial state. 21
  • 22. Vending machine Insert coin Mango State 1 coke State 2 lime State 3 orange State 4 Vending machine Initial State Enter product 22
  • 23. Standard Form for a Verilog FSM // state flip-flops reg [2:0] state, nxt_st; // state definitions parameter reset=0,S1=1,S2=2,S3=3,.. // NEXT STATE CALCULATIONS always@(state or inputs or ...) begin … next_state= ... … end // REGISTER DEFINITION always@(posedge clk) begin state<=next_state; end // OUTPUT CALCULATIONS output= f(state, inputs) 23