SlideShare a Scribd company logo
1
Verilog HDLVerilog HDL
ASIC DESIGN USING
FPGA
BEIT VII
KICSIT
Sep 4 2012 Lecture 4
2
Introduction
Sep 4 2012
• Hardware Description Language (HDL)
• Verilog was introduced in 1984 by Gateway
Design System Corporation, now a part of
Cadence Design Systems
• Verilog-based synthesis tool introduced by
Synopsys in 1987
• Standard: IEEE 1364 in 1995
Lecture 4
3
Event Driven Simulation
Sep 4 2012
• Verilog is really a language for modeling the
event driven systems
• Event : change in state
• Simulation starts at t = 0
• Processing events generates new events
• When all events at time t have been processed
simulation time advances to t+1
• Simulation stops when there are no more events
in the queue
Lecture 4
4
Basic Limitation of Verilog
Sep 4 2012
•
Lecture 4
Description of digital systems only
5
Abstraction Levels in Verilog
Sep 4 2012 Lecture 4
Data Flow
Behavioral
Gate
Switch
6
Main Language Concepts
Sep 4 2012
•Concurrency
•Structure
Lecture 4
7
Main Language Concepts
Sep 4 2012 Lecture 4
• Procedural Statements
• Time
8
User Identifiers
Sep 4 2012 Lecture 4
• Formed from {[A-Z], [a-z], [0-9], _, $},
but can’t begin with $ or [0-9]
• myidentifier
• m_y_identifier
• 3my_identifier (X)
• $my_identifier (X)
• _myidentifier$
•Case sensitivity
• myid ≠ Myid
9
Comments
Sep 4 2012 Lecture 4
• // The rest of the line is a comment
•/* Multiple
lines
comment */
• /* Nesting /* comments */ do NOT work
*/
10
Verilog Value Set
Sep 4 2012
• 0 represents low logic level or false
condition
• 1 represents high logic level or true
condition
• x represents unknown logic level
• z represents high impedance logic level
Lecture 4
11
Numbers in Verilog
Sep 4 2012
<size>’<radix> <value>
Lecture 4
• 8’h ax = 1010xxxx
•12’o 3zx7 = 011zzzxxx111
12
Numbers in Verilog
Sep 4 2012
• You can insert “_” for readability
• 12’b 000_111_010_100
• 12’b 000111010100
• 12’o 07_24
• Bit extension
• MS bit = 0, x or z extend this⇒
• 4’b x1 = 4’b xx_x1
• MS bit = 1 zero extension⇒
• 4’b 1x = 4’b 00_1x
Lecture 4
Represent the
same number
13
Nets
Sep 4 2012
• Can be thought as hardware wires driven by logic
• Equal to z when unconnected
• Various types of nets
• wire
• wand (wired-AND)
• wor (wired-OR)
• tri (tri-state)
Lecture 4
14
Nets
Sep 4 2012
•In following examples: Y is evaluated, automatically,
every time A or B changes
Lecture 4
15
Nets
Sep 4 2012 Lecture 4
16
Registers
Sep 4 2012
•Variables that store values
• Do not represent real hardware but ..
• .. real hardware can be implemented with
registers
Lecture 4
17
Registers
Sep 4 2012
• Only one type: reg
• reg A, C; // declaration
// assignments are always done inside a procedure
A = 1;
C = A; // C gets the logical
value 1
A = 0; // C is still 1
C = 0; // C is now 0
• Register values are updated explicitly!!
Lecture 4
18
Vectors
Sep 4 2012
• Represent buses
wire [3:0] busA;
reg [1:4] busB;
reg [1:0] busC;
• Left number is MS bit
• Slice management
Lecture 4
busC[1] = busA[2];
busC[0] = busA[1];
⇔busC = busA[2:1];
19
Vectors
Sep 4 2012
• Vector assignment (by position)
Lecture 4

More Related Content

PDF
FPGA Design with Python and MyHDL
PPT
Hire Drupal Developers For Your Website
PPT
горизонтальный мир бизнес и соцсети 2013
PPTX
Ppt the dilemma of death
PDF
Accessing the deep web (2007)
PPTX
a verilog presentation for deep concept understa
PDF
DDUV.pdf
PDF
FPGA Design with Python and MyHDL
Hire Drupal Developers For Your Website
горизонтальный мир бизнес и соцсети 2013
Ppt the dilemma of death
Accessing the deep web (2007)
a verilog presentation for deep concept understa
DDUV.pdf

Similar to Assic 4th Lecture (20)

PPTX
Verilogspk1
PDF
verilog ppt .pdf
PDF
Verilog Cheat sheet-2 (1).pdf
PDF
Verilog_Cheat_sheet_1672542963.pdf
PDF
Verilog_Cheat_sheet_1672542963.pdf
PPT
Basics of Verilog.ppt
PPT
Verilog Hardware Description Language.ppt
PDF
dokumen.tips_verilog-basic-ppt.pdf
PPT
verilog_1.ppt
PDF
Short Notes on Verilog and SystemVerilog
PDF
Vhdl introduction
PPTX
Verilog overview
PPTX
HDL_verilog_unit_1 for engagement subjects and technology
PDF
SKEL 4273 CAD with HDL Topic 2
PDF
Verilog
PDF
Verilog_Overview.pdf
PDF
Verilog HDL
PPTX
Introduction_to_Verilog (1).pptxzhdYfzhfzy
PPTX
PPT
Verilogspk1
verilog ppt .pdf
Verilog Cheat sheet-2 (1).pdf
Verilog_Cheat_sheet_1672542963.pdf
Verilog_Cheat_sheet_1672542963.pdf
Basics of Verilog.ppt
Verilog Hardware Description Language.ppt
dokumen.tips_verilog-basic-ppt.pdf
verilog_1.ppt
Short Notes on Verilog and SystemVerilog
Vhdl introduction
Verilog overview
HDL_verilog_unit_1 for engagement subjects and technology
SKEL 4273 CAD with HDL Topic 2
Verilog
Verilog_Overview.pdf
Verilog HDL
Introduction_to_Verilog (1).pptxzhdYfzhfzy
Ad

More from babak danyal (20)

DOCX
applist
PPT
Easy Steps to implement UDP Server and Client Sockets
PPT
Java IO Package and Streams
PPT
Swing and Graphical User Interface in Java
PPT
Tcp sockets
PPTX
block ciphers and the des
PPT
key distribution in network security
PPT
Lecture10 Signal and Systems
PPT
Lecture8 Signal and Systems
PPT
Lecture7 Signal and Systems
PPT
Lecture6 Signal and Systems
PPT
Lecture5 Signal and Systems
PPT
Lecture4 Signal and Systems
PPT
Lecture3 Signal and Systems
PPT
Lecture2 Signal and Systems
PPT
Lecture1 Intro To Signa
PPT
Lecture9 Signal and Systems
PPT
Lecture9
PPT
Cns 13f-lec03- Classical Encryption Techniques
PPT
Classical Encryption Techniques in Network Security
applist
Easy Steps to implement UDP Server and Client Sockets
Java IO Package and Streams
Swing and Graphical User Interface in Java
Tcp sockets
block ciphers and the des
key distribution in network security
Lecture10 Signal and Systems
Lecture8 Signal and Systems
Lecture7 Signal and Systems
Lecture6 Signal and Systems
Lecture5 Signal and Systems
Lecture4 Signal and Systems
Lecture3 Signal and Systems
Lecture2 Signal and Systems
Lecture1 Intro To Signa
Lecture9 Signal and Systems
Lecture9
Cns 13f-lec03- Classical Encryption Techniques
Classical Encryption Techniques in Network Security
Ad

Recently uploaded (20)

PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
RMMM.pdf make it easy to upload and study
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Institutional Correction lecture only . . .
PDF
Computing-Curriculum for Schools in Ghana
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Pharma ospi slides which help in ospi learning
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Cell Types and Its function , kingdom of life
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
RMMM.pdf make it easy to upload and study
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
01-Introduction-to-Information-Management.pdf
Institutional Correction lecture only . . .
Computing-Curriculum for Schools in Ghana
Module 4: Burden of Disease Tutorial Slides S2 2025
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Insiders guide to clinical Medicine.pdf
Microbial diseases, their pathogenesis and prophylaxis
FourierSeries-QuestionsWithAnswers(Part-A).pdf
O7-L3 Supply Chain Operations - ICLT Program
Abdominal Access Techniques with Prof. Dr. R K Mishra
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Pharma ospi slides which help in ospi learning
STATICS OF THE RIGID BODIES Hibbelers.pdf
Cell Types and Its function , kingdom of life
human mycosis Human fungal infections are called human mycosis..pptx

Assic 4th Lecture

  • 1. 1 Verilog HDLVerilog HDL ASIC DESIGN USING FPGA BEIT VII KICSIT Sep 4 2012 Lecture 4
  • 2. 2 Introduction Sep 4 2012 • Hardware Description Language (HDL) • Verilog was introduced in 1984 by Gateway Design System Corporation, now a part of Cadence Design Systems • Verilog-based synthesis tool introduced by Synopsys in 1987 • Standard: IEEE 1364 in 1995 Lecture 4
  • 3. 3 Event Driven Simulation Sep 4 2012 • Verilog is really a language for modeling the event driven systems • Event : change in state • Simulation starts at t = 0 • Processing events generates new events • When all events at time t have been processed simulation time advances to t+1 • Simulation stops when there are no more events in the queue Lecture 4
  • 4. 4 Basic Limitation of Verilog Sep 4 2012 • Lecture 4 Description of digital systems only
  • 5. 5 Abstraction Levels in Verilog Sep 4 2012 Lecture 4 Data Flow Behavioral Gate Switch
  • 6. 6 Main Language Concepts Sep 4 2012 •Concurrency •Structure Lecture 4
  • 7. 7 Main Language Concepts Sep 4 2012 Lecture 4 • Procedural Statements • Time
  • 8. 8 User Identifiers Sep 4 2012 Lecture 4 • Formed from {[A-Z], [a-z], [0-9], _, $}, but can’t begin with $ or [0-9] • myidentifier • m_y_identifier • 3my_identifier (X) • $my_identifier (X) • _myidentifier$ •Case sensitivity • myid ≠ Myid
  • 9. 9 Comments Sep 4 2012 Lecture 4 • // The rest of the line is a comment •/* Multiple lines comment */ • /* Nesting /* comments */ do NOT work */
  • 10. 10 Verilog Value Set Sep 4 2012 • 0 represents low logic level or false condition • 1 represents high logic level or true condition • x represents unknown logic level • z represents high impedance logic level Lecture 4
  • 11. 11 Numbers in Verilog Sep 4 2012 <size>’<radix> <value> Lecture 4 • 8’h ax = 1010xxxx •12’o 3zx7 = 011zzzxxx111
  • 12. 12 Numbers in Verilog Sep 4 2012 • You can insert “_” for readability • 12’b 000_111_010_100 • 12’b 000111010100 • 12’o 07_24 • Bit extension • MS bit = 0, x or z extend this⇒ • 4’b x1 = 4’b xx_x1 • MS bit = 1 zero extension⇒ • 4’b 1x = 4’b 00_1x Lecture 4 Represent the same number
  • 13. 13 Nets Sep 4 2012 • Can be thought as hardware wires driven by logic • Equal to z when unconnected • Various types of nets • wire • wand (wired-AND) • wor (wired-OR) • tri (tri-state) Lecture 4
  • 14. 14 Nets Sep 4 2012 •In following examples: Y is evaluated, automatically, every time A or B changes Lecture 4
  • 15. 15 Nets Sep 4 2012 Lecture 4
  • 16. 16 Registers Sep 4 2012 •Variables that store values • Do not represent real hardware but .. • .. real hardware can be implemented with registers Lecture 4
  • 17. 17 Registers Sep 4 2012 • Only one type: reg • reg A, C; // declaration // assignments are always done inside a procedure A = 1; C = A; // C gets the logical value 1 A = 0; // C is still 1 C = 0; // C is now 0 • Register values are updated explicitly!! Lecture 4
  • 18. 18 Vectors Sep 4 2012 • Represent buses wire [3:0] busA; reg [1:4] busB; reg [1:0] busC; • Left number is MS bit • Slice management Lecture 4 busC[1] = busA[2]; busC[0] = busA[1]; ⇔busC = busA[2:1];
  • 19. 19 Vectors Sep 4 2012 • Vector assignment (by position) Lecture 4