Lecture 4
Lecture 4
Lecture 4
Lecture # 4
VERILOG HDL DESCRIPTION
ENGR. DR. MUHAMMAD AQEEL ASLAM
ASSISTANT PROFESSOR
SCHOOL OF ENGINEERING AND APPLIED SCIENCES
ELECTRICAL ENGINEERING DEPARTMENT
GIFT UNIVERSITY
GUJRANWALA
2
Table of Contents
Definition
Integrated Circuits
ASIC Design Flow
Overview of ASIC Fabrication Process
ASIC Packages
HDL
Verilog HDL
3
Definition
Full Custom : Circuit elements of the design are individually drawn and
Circuit elements of the design are individually drawn and positioned in the
layout.
Transistors, resistors, capacitors and element interconnects
Requires high skill and is process specific!
10
Types of ICs: Cell-based
ASICs FPGAs
High performance Low development cost
Low power Short time to market
Low cost (but only in high volumes) Reconfigurability
15
Overview of ASIC Design Flow (contd.)
Logic Design
RTL (Register Transfer Level) description
Hardware description language Verilog, VHDL
Focus on actual implementation (data flow) of the design using logic elements (busses,
registers, FSM, data paths, RAM’s)
17
Overview of ASIC Design Flow (contd.)
Logic Implementation:
RTL description is synthesized using automatic synthesis tools
E.g. Synopsys Design Compiler
The result is a gate-level netlist
18
Overview of ASIC Design Flow (contd.)
Verilog allows the designer to simulate and verify the design at each level
EDA (electronic design automation electronic design automation) tools help the designer to
move ) tools help the designer to move from higher to lower levels of abstraction
Behavioral synthesis tools create dataflow descriptions from a behavioral description
Logic synthesis tools convert an RTL description to a switch level interconnection of transistors, which
is input to an automatic place and route tool that creates the chip layout
With Verilog and EDA tools one could sit at a computer at home, design a complex chip,
email the design to a silicon foundry in California and receive the fabricated chip through
regular mail in a 28 California, and receive the fabricated chip through regular mail in a few
weeks!
The Verilog environment is that of a programming language. Designers, particularly with C
programming experience, find it easy to learn and work with
27
Comparison
VHDL Verilog
Government Developed Commercially Developed
Ada based C based
Strongly Type Cast Mildly Type Cast
Case-insensitive Case-sensitive
Difficult to learn Easier to Learn
More Powerful Less Powerfu
28
Learning Verilog
Inputs
Inputs are values being provided to the module
Outputs
Outputs are values being driven by the module
Inouts
Ports that act as input and output ports
35
Module Declaration
36
Module Declaration
Gate Level
and nand
or, nor
xor, xnor
buf , not
bufif0, bufif1, notif0, notif1 (three-state)
Switch Level
*mos where * is n, p, c, rn, rp, rc; pullup, pulldown; *tran+ where * is (null), r and +
(null), if0, if1 with both * and + not (nul)
40
Primitives