Verilog Chapter1 Introduction
Verilog Chapter1 Introduction
LECTURE
Subject: VERILOG
Hardware Description Language
Chapter1: Introduction
Chapter 1: Introduction
Ø Requirements – Projects – Scores
Ø Verilog – What and Why ?
Ø CAD flow
3
Requirement
4
Scores
• Grading system:
– Final exam : 50 %
– Laboratory : 30%
– Progress: 20%
5
Verilog learning “tips”
6
History
• HDL History
• 1970s: First HDLs
• Late 1970s: VHDL
• VHDL = VHSIC HDL = Very High Speed Integrated Circuit HDL
• VHDL inspired by programming languages of the day (Ada)
• 1980s:
• Verilog first introduced
• Verilog inspired by the C programming language
• VHDL standardized
• 1990s:
• Verilog standardized (Verilog-1995 standard)
• 2000s:
• Continued evolution (Verilog-2001 standard)
• Both VHDL and Verilog evolving, still in use today
7
Why To Represent Hardware?
• If you’re going to design a computer, you need to write down the design so
that:
• You can read it again later
• Someone else can read and understand it
• It can be simulated and verified
• Even software people may read it!
• It can be synthesized into specific gates
• It can be built and shipped and make money
8
How To Represent Hardware?
• Draw schematics
• Hand-drawn
• Machine-drawn
• Write a netlist
Z52BH I1234 (N123, N234, N4567);
• Write primitive Boolean equations
AAA = abc DEF + ABC def
• Use a Hardware Description Language (HDL)
assign overflow = c31 ^ c32;
9
Custom design vs System design
– Custom design:
• Small design . For instance : RAM, ROM, ALU, …
• High performance
• Designed by schematic or SPICE netlist
• Very time consuming to design (timing, power,… verification by
simulation)
– System design:
• Large and complex design , system level ((millions to billions of gates). For
instance : Chip, Micro processor, CPU, …
• Lower performance
• Designed by HDL.
• Less design time è more productivity.
10
HDL-Advantages
– Describe complex designs (millions to billions of gates)
– Input to synthesis tools (generated circuits)
– Design exploration with simulation with less time consuming.
– Support for structure and instantiation
– Support for describing bit-level behavior
– Support for timing
– Support for concurrency
11
HDL-Disadvantages
– Much depends on Synthesis tools.
– Hard to optimize design.
12
Verilog vs. VHDL
– Verilog is relatively simple and close to C
– VHDL is complex
– For commercial products, it’s Verilog, Verilog has 60% of the world digital
design market (larger share in US)
– For large projects such as defense and telecommunication projects from
government / aerospace work, it’s VHDL
13
“Keep in heart”
14
CAD flow
v Evolution of Computer Aided Design (CAD)
Vacuum tubes and transitors
16
CAD flow (cont’d)
v CAD Design Flow: Design Specification
Behavior Description
Pre-synthesis verification
Timing analyis
Post-synthesis verification
Physical layout
Chip 17
CAD flow (cont’d)
v Design specification: Design Specification
Timing analyis
Post-synthesis verification
Physical layout
Chip 18
CAD flow (cont’d)
Design Specification
v Behavior Description:
Behavior Description
Pre-synthesis verification
Physical layout
Chip 20
CAD flow (cont’d)
v Function verification with testbench:
21
CAD flow (cont’d)
v Function verification with testbench:
22
CAD flow (cont’d)
v Function verification with input waveform:
23
CAD flow (cont’d)
v Compilation and Design Specification
Synthesis:
Behavior Description
Pre-synthesis verification
Chip 24
CAD flow (cont’d)
v Compilation and Synthesis
Determine which
logic gates, elements
to implement the
boolean expressions
Pre-synthesis verification
Chip 26
CAD flow (cont’d)
v Timing analysis: Design Specification
Behavior Description
Pre-synthesis verification
Timing analyis
Chip 27
CAD flow (cont’d)
v Post-synthesis Design Specification
verification:
Behavior Description
Pre-synthesis verification
Timing analyis
Post-synthesis verification
Behavior Description
Pre-synthesis verification
Timing analyis
-Programming for FPGA
Post-synthesis
-Layout for ASIC manufacturing ( poly-silicon,verification
diffusion, metal connection…)
Physical layout
Chip 29
CAD flow (cont’d)
v Fabrication Design Specification
for Chip:
Behavior Description
Pre-synthesis verification
Timing analyis
Post-synthesis verification
Chip 30
CAD flow (cont’d)
v Summary:
– HDLs are now the dominant method for large digital designs
– Syntax is similar to C language à easy to learn and easy to use
– Allows different levels of abstraction (switches, gates, RTL, or behavioral
code) to be mixed in the same level
– Most popular logic synthesis tools support Verilog
– Allows the user to write custom C code to interact with internal data structures
of Verilog by using PLI (Programming Language Interface)
31
END
32