0% found this document useful (0 votes)
7 views31 pages

Chapter 1 Introduction

The document provides an introduction to digital circuit design using Hardware Description Language (HDL), focusing on Verilog. It outlines the course objectives, assessment methods, and a detailed course outline, including topics such as structural and behavioral modeling, circuit synthesis, and digital design flow. Additionally, it discusses the advantages and disadvantages of HDLs, compares Verilog and VHDL, and emphasizes the importance of simulation and verification in the design process.

Uploaded by

nguyenduc12605
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views31 pages

Chapter 1 Introduction

The document provides an introduction to digital circuit design using Hardware Description Language (HDL), focusing on Verilog. It outlines the course objectives, assessment methods, and a detailed course outline, including topics such as structural and behavioral modeling, circuit synthesis, and digital design flow. Additionally, it discusses the advantages and disadvantages of HDLs, compares Verilog and VHDL, and emphasizes the importance of simulation and verification in the design process.

Uploaded by

nguyenduc12605
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

NATIONAL UNIVERSITY OF HO CHI MINH CITY

UNIVERSITY OF INFORMATION TECHNOLOGY


FACULTY OF COMPUTER ENGINEERING

CHAPTER 1: INTRODUCTION

Lecturer: Ho Ngoc Diem

1
Course Introduction
 Objective
- Provide knowledge of digital circuit design flow and
designing digital circuits with Hardware Description
Language (HDL)
- Provide necessary skills to design, test and verify digital
circuits with HDL; understand the synthesis process of
RTL into hardware resources, and optimize design for
resource and performance goals.

2
Course Introduction
 References:
[1] Micheal D. Ciletti, Advanced Digital Design with the Verilog HDL,
2nd Edition, Prentice Hall, 2010
[2] IEEE Standard for Verilog Hardware Description Language. IEEE Std
1364-2005 (Revision of IEEE Std 1364-2001).

[3] D. R. Smith, P. D. Franzon, Verilog styles for synthesis, Prentice Hall


2000
[4] Zainalabedin Navabi. Verilog Digital System Design. McGraw-Hill, 2006,
402 pages.
[5] Samir Palnitkar. Verilog HDL 2nd Edition. Prentice Hall, 03/3/2003, 496
pages. [6] Volnei A. Pedroni. Circuit Design with VHDL. The MIT Press,
2004, 375 pages

3
Course Introduction
 Assessment:
- Classwork: 20%
- Lab: 30%
- End-term: 50%

4
Course Outline
 Chapter 1: Introduction
 Chapter 2: Verilog language concepts
 Chapter 3: Structural modeling
 Chapter 4: Behavioral modeling
 Chapter 5: Tasks and Functions
 Chapter 6: State machines
 Chapter 7: Functional Simulation/Verification
 Chapter 8: Circuit Synthesis

5
Content
 HDL – Verilog & VHDL
 CAD
 Digital Design Flow

6
How to represent Hardware?
 Classical design method
- Schematic
- Hand-draw or machine-draw
 Computer-based language method
- Hardware Description Language (HDL): Verilog, VHDL
- Fast, popularly used to design complex circuit with large and very
large scale

7
HDL design example
 Verilog HDL

Represent hardware by text!


8
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

9
HDL
 Advantages:
– Describe complex designs (millions to billions of gates)
– Different level of abstraction possible (switch, gate, behavioral)
– Input to synthesis tools (automatic generated circuits)
– Design exploration with simulation - less time consuming.
– Flexible, technology independent, portable across technologies
– Support for timing and concurrency
– Be supported by ASIC, FPGA synthesis tools

 Disadvantages:
– Much depends on Synthesis tools
– Hard to optimize design
10
History
 Verilog
- Inspired by C programming language
- Introduced in 1984 by Gateway (now Cadence). Firstly developed
to allow simulation, afterward support for synthesis added
- IEEE 1364-1995, IEEE 1364-2001, IEEE 1364-2005 standard

 VHDL
- VHSIC HDL = Very High Speed Integrated Circuit HDL
- Inspired by Ada programming language
- First introduced in 1987, by DARPA
- VHDL standardized by IEEE (‘87 and ’93)

11
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.
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
 HDLs are not “programming languages”
 Remember that you are specifying hardware that executes in
parallel rather than software that executes sequentially.
 Hardware is all active at once; there is no starting point.
Everything happens concurrently.
 “Sequential design in HDL differs from sequential executive
commands in programming languages”.
 2 main features of HDL: Timing and Concurrency

14
Timing & Concurrency
 Verilog code example
1) assign w1 = a & b | a & ~b;

2) assign #6 n = ~b;
assign #3 m = a & b;
assign #3 p = n & c;
assign #2 w2 = m | p;

15
Computer Aided Design (CAD)
 Evolution of Computer Aided Design (CAD)

16
CAD
 Computer Aided Design vs. Manual Design
CAD design Schematic design

Pros - Easy to implement function - Customer design


- Simulate to verify function quickly - Be able to optimize performance, power
- Generate schematic and layout and area of design.
automatically by using CAD tools.
- Helpful for system synthesis
Cons - Optimality for performance, - Must be master on IC design
power and area of design depends - Take time to simulate to verify function
on synthesis tool. due to big and complicated netlist.
- Hard to design for system level

17
Digital design flow
 Digital design flow
Design Specification

Behavior Description

Pre-synthesis verification

Synthesis

Routing and Placement

Timing analyis

Post-synthesis verification

Physical layout

Chip
18
Digital design flow
Design Specification
+ Describe the FUNCTIONALITY,
Behavior Description
INTERFACE, and OVERALL
ARCHITECTURE
Pre-synthesis verification
+ Do not need to think about HOW
to implement Synthesis

Routing and Placement


- State transition graph
- High-level language Timing analyis

Post-synthesis verification

Physical layout

Chip
19
Digital design flow
Design Specification
+ Design is described in a top-down
hierarchical fashion Behavior Description
+ Often written with HDLs or EDA tools
Pre-synthesis verification
(combine HDLs and object oriented
languages such as C++) Synthesis
+ Register Transfer Level (RTL) design
Routing and Placement

Timing analyis

Post-synthesis verification

Physical layout

Chip
20
Digital design flow
Design Specification
Simulation & Function Verification
+ Design is simulated and tested for Behavior Description
functionality before turning into hardware
Pre-synthesis verification
+ Do not consider gate, propagation delay,
hazards, glitches, race conditions, setup Synthesis
and hold violations, and other related
timing issues. Routing and Placement

+ Test data are generated by testbench or Timing analyis


waveform editor
Post-synthesis verification

Physical layout

Chip
Ref. Verilog Digital System Design, Zainalabedin Navabi
21
Digital design flow
 Simulation by testbench or input waveform

22
Digital design flow
Synthesis – Technology mapping
Design Specification
+ Logic synthesis tool converts Verilog
description into gate-level netlist that Behavior Description
is mapped into a specific technology
(FPGA, ASIC, …) Pre-synthesis verification
+ Optimize the circuit in area and
timing for the technology Synthesis

Routing and Placement

Timing analyis

Post-synthesis verification

Physical layout

Chip
23
Digital design flow
Design Specification

Behavior Description

Pre-synthesis verification

-Decide the placement of cells and Synthesis


connection between inputs and
outputs of these cells for the target Routing and Placement
hardware ( FPGA, ASIC, or Custom IC).
Timing analyis
-Output is a complete netlist of target
hardware including components, wiring
Post-synthesis verification
delays of each interconnection, and
load effects on gates.
Physical layout

Chip
24
Digital design flow
Design Specification
-Generates worst-case delays, clock speed,
delay paths, setup times, hold times. Behavior Description
-Designers use these information to
optimize design (changing routing and Pre-synthesis verification
placement), or to decide clocking speed
Synthesis
- static timing analysis
Routing and Placement

Timing analyis

Post-synthesis verification

Physical layout

Chip
25
26
Digital design flow
- Using netlist from routing and placement Design Specification
phase as the input for post-synthesis simulation;
the same testbench can be used. Behavior Description
- Check functionality with timing; verify clock
frequency, glitch, race condition, and delay Pre-synthesis verification
timings
Synthesis
- Dynamic timing analysis
Routing and Placement

Timing analyis

Post-synthesis verification

Physical layout

Chip
27
Digital design flow
Design Specification

Behavior Description

Pre-synthesis verification
-Programming for FPGA
-Layout for ASIC manufacturing ( poly- Synthesis
silicon, diffusion, metal connection…)
Routing and Placement

Timing analyis

Post-synthesis verification

Fabrication of design on Physical layout


wafer
Chip
28
Digital design flow
 Quartus CAD flow

- Reference Altera tutorial “Quartus II Introduction for


Verilog user”

29
Summary
– HDLs are now the dominant method for large digital designs
– Verilog 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)

30
Summary
 Verilog learning tips
- Pick up what you need from books and online tutorials
- Learn from live code
- Experiment with code, not by reading about it
- The lowest level the course will reach is at gate level.

31

You might also like