Docsity

Gate-Level Simulation - Lecture Slides | ELEC 5250, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Gate-Level Simulation - Lecture Slides | ELEC 5250 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Gate

Gate

Level Simulation

Level Simulation

ELEC 5250/

ELEC 5250/

Lecture 5

Lecture 5

(Text: Chapter 13)

(Text: Chapter 13)

ASIC Design Flow

ASIC Design Flow

Behavioral

Model

VHDL/Verilog

Gate-Level

Netlist

Transistor-Level

Netlist

Physical

Layout

Map/Place/Route

DFT/BIST

& ATPG

Verify

Function

Verify

Function

Verify Function

& Timing

Verify

Timing

DRC & LVS

Verification

IC Mask Data/FPGA Configuration File

Standard Cell IC& FPGA/CPLD

Synthesis

Test vectors

Full-custom IC

Quicksim II

Types of simulation

Types of simulation

Behavioral

Behavioral

(most abstract)

(most abstract)

large pieces of system as large pieces of system as

black boxes black boxes

Functional

Functional

ignore timing (unit delay) ignore timing (unit delay)

Static timing

Static timing

analyze delays along critical paths analyze delays along critical paths

Logic/gate

Logic/gate

level

level

each gate = each gate =

black box black box

function function

Switch

Switch

level

level

transistors as ideal switches transistors as ideal switches

Transistor/circuit

Transistor/circuit

level

level

(most detail/accuracy)

(most detail/accuracy)

transistor models include nonlinear V/I transistor models include nonlinear V/I

Available Simulators

Available Simulators

Quicksim

Quicksim

II

II

gate

gate

level schematics

level schematics

ModelSim

ModelSim

EE

EE

HDL models

HDL models

(VHDL,

(VHDL,

Verilog

Verilog

SystemC

SystemC

QuickSim

QuickSim

Pro

Pro

mixed HDL/schematic

mixed HDL/schematic

ADVance

ADVance

MS

MS

analog/mixed signal

analog/mixed signal

Eldo

Eldo

analog (IC

analog (IC

level)

level)

MachTA

MachTA

post

post

layout analog/timing

layout analog/timing

Accusim

Accusim

analog (board

analog (board

level)

level)

Fault simulators (

Fault simulators (

flextest

flextest

fastscan

fastscan

Logic Systems

Logic Systems

(Ch. 13.3)

(Ch. 13.3)

Digital signals take on a set of

Digital signals take on a set of

logic states

logic states

Logic Logic

state state

Logic value Logic value

Zero Zero

One One

Z

Z

High impedance High impedance

X

X

Unknown Unknown

Logic Logic

state state

Logic value Logic value

UU

Uninitialized Uninitialized

XX

Forced unknown Forced unknown

ZZ

High impedance High impedance

WW

Weak unknown Weak unknown

Forced zero Forced zero

Forced one Forced one

LL

Weak zero Weak zero

H;H;

Weak one Weak one

Don Don

t care t care

IEEE Standard 1164

Two-valued system

Logic Logic

state state

Logic value Logic value

Zero Zero

One One

Four-valued system

Quicksim

Quicksim

II signals

II signals

Each signal has a

Each signal has a

state

state

and a drive

and a drive

strength

strength

Value Value

Logic state Logic state

Zero Zero

One One

X

X

Unknown Unknown

Value Value

Drive strength Drive strength

s s

Strong Strong

r r

Resistive Resistive

z z

Float (no drive) Float (no drive)

i i

Indeterminate Indeterminate

Example: 1s = strongly driven to 1

1r = resistively pulled up to 1

Verifying logic functions

Verifying logic functions

Example: full

Example: full

adder circuit:

adder circuit:

Black box

Truth table

Logic equations

Verify that the “black box” realizes the truth table and logic equations

Schematic

Schematic

netlist

netlist

Gate level simulator

Gate level simulator

uses

uses

netlists

netlists

each circuit

each circuit

net

net

is defined as follows:

is defined as follows:

gate_name gate_name

gate_type gate_type

outputoutput

input1input

input2input

inputN inputN

I

(a)

(b)

I2 I

a b

a1 a2 a

X

x

X

s

A1 A2 A

R

O1 O

c

in

I1I I

X1X2A1A2A3R O1O

INININ

XOR2XOR AND2AND2AND

OR

OUTOUT

ab

c

in

x

s

a1a2a

c

out

s

c

out

a

x

aab

a

b

c

in

b

c

in

c

in

a

a

c

out

Event

Event

Driven Simulation

Driven Simulation

Event: a change in the value of a signal at

Event: a change in the value of a signal at

a given time.

a given time.

Event

Event

driven simulation example for an

driven simulation example for an

AND gate:

AND gate:

(a)

(b)

c

a b

c a b

T

T

T

T

+

t

Events

Event Event

driven simulation procedure driven simulation procedure

Input test set is converted into a set of events.

Input test set is converted into a set of events.

The set of events are entered into an event

The set of events are entered into an event

queue (or event list).

queue (or event list).

In each simulation step, the first event is

In each simulation step, the first event is

retrieved and is made to occur.

retrieved and is made to occur.

Output of each affected gate is recomputed,

Output of each affected gate is recomputed,

and new event is created.

and new event is created.

Record of all events along with output results

Record of all events along with output results

are maintained.

are maintained.

Simulation continues until the event queue is

Simulation continues until the event queue is

empty or time limit expires.

empty or time limit expires.

Debugging a design

Debugging a design

Debugging a full

Debugging a full-

-adder via simulation

adder via simulation

  • erroneous output

erroneous output

s

s

at time 3

at time 3

  • Display more internal signals to isolate the

Display more internal signals to isolate the

error to

error to

n

n

a b

cin

s

n1 n2 n3 n

Time

cin

a

b

s

0 3 5

10131518

0 0 0 1 1 1 1

0 0 1 1 1 0 0

0 0 0 0 0 0 0

X

1 1 1 0 0 1

0

0

0

0

X

X X

X

X

Time

a

b c

in

n1 n2 n3 n4 s

1

0

0

0

1

1

X

1

X

2

0

0

0

1

1

0

1

X

3

0

0

0

1

1

0

1

1

5

0

1

0

1

1

0

1

1

10

1

1

0

1

1

0

1

1

12

1

1

0

1

1

1

1

1

13

1

1

0

1

1

1

1

0

15

1

0

0

1

1

1

1

0

17

1

0

0

1

0

1

1

0

18

1

0

0

1

0

1

1

1

Preparation for using Preparation for using

Quicksim Quicksim

II II

Create Create

netlist

netlist

& design viewpoints & design viewpoints

A A

“ “

design viewpoint design viewpoint

” ”

provides provides

downstream tools with tool downstream tools with tool

specific specific

information needed to work with a information needed to work with a

schematic schematic

netlist netlist

primitives, properties, parameters

primitives, properties, parameters

technology

technology

specific simulation modelsspecific simulation models

physical layout parameters

physical layout parameters

Create viewpoints one time for each Create viewpoints one time for each

schematic schematic

don

don

t regenerate following schematic changes

t regenerate following schematic changes

Generating ADK design viewpoints Generating ADK design viewpoints

Script

Script

adk_dve adk_dve

generates all generates all

viewpoints for tools in the ASIC

viewpoints for tools in the ASIC

design flow

design flow

Command:

Command:

adk_dve adk_dve

design design

- -

technology tsmc technology tsmc

design

design

= schematic

= schematic

netlist

netlist

component namecomponent name

tsmc

tsmc

= ASIC technology to be used

= ASIC technology to be used

ASIC technologies available in ADK: ASIC technologies available in ADK:

tsmc018, tsmc025, tsmc035, ami05, ami

tsmc018, tsmc025, tsmc035, ami05, ami

Design elements in Design Design elements in Design

Manager for component

Manager for component “

“bob

bob”

”

Quicksim IIviewpoint

Accusimviewpoint

ICgraphLayout viewpoint

Layout vs.schematiccheck viewpoint

Schematic-drivenlayout viewpoint(ICgraph)Transistor-level

Back annotationfile for circuitParameterextraction

Schematic

Logic symbol