Professional Documents
Culture Documents
Introduction
Logic Modeling techniques Objectives, Challenges Logic Simulator Classification Problems affecting Simulators
Nomenclature
Reconvergent Fan out
Different paths from the same signal
from the primary inputs Level of primary inputs is fixed to be 0 Level of an element I whose inputs come from element K1, K2, Ki
L(i) = 1 + max L (Kj)
Levels of Modeling
Refers to primitive component used
in the model Higher level model provides abstract view of system ; but involves loss of accuracy and detail Lower level model requires large computing resources; memory capacity, processing time Trade off : Complexity Vs Accuracy
Behavior Logic Gate Circuit HDL Languages Structural representation using primitive modules Timing information, Gates used to define all modules Tech. Data, device parameters,.
Sequential
Combinational
Constructing a BDD
in the truth table A cube of a function Z(x1, x2.) has the form (v1, v2,.| vZ) 00x|1 is a cube of the function Z and represents x1x2 implicant 00x|1 covers 000|1 & 001|1 If V= 010 , then Z = ?? { use intersection operator }
3. Intersection Operator
unpredictable Simulation algorithms use separate logic U to process unknown state turning it into 3 valued system {0 , 1, U}
Reconvergent fan-out results in pessimistic results Use of complementary unknown values U & U might help ?? NO Solution : Use several distinct unknown signals u1, u2, u3for every
Logic Simulation
Methodology adopted to predict the behavior of a design prior to its
physical realization Ascertains that the design performs its specified behavior During the initial days (MSI era), prototypes were used for verification
Runs @ operating frequency Costly and Time consuming Lacks accuracy as models of ICs
Objectives
Design Verification (Pre-Silicon)
To find design errors Error space cannot be defined ; Hence, Fault coverage does not exist Generally, errors are related to data transfers and transformations rather
Challenges
Generating input stimuli Methodology to ascertain that results are correct How Good are the applied input stimuli ? In reality, Design Verification suffers from several limitations
Lack of formal procedures to generate tests Producing the stimuli is heuristic ; relying heavily on engineers intuition System that passes the test is correct only wrt the applied test Completeness of the tests cannot be promised
In spite of all these limitations, logic simulation is invaluable esp. for VLSI designs where prototypes are impractical
Simulator Classification
Terminology
Active signal
Activity
Event
Signals when changing their value @ arbitrary time Ratio of active signals to total number of signals { Generally, its max value is 5% origin for low power design concepts } Represents the change in the value of the signal
Simulators classification
Compiler Driven
Event Driven
Delay Modeling
Hazard Detection Oscillation Control
enables us to ignore delays Code model is generated such that preceding level signals are evaluated Parallel Pattern evaluation can be used for simultaneous evaluation ; works only for combinational
e =1 c =1 0 2 d=0 b =1 g
0 4 8
2
2
f =0
Time, t
Event-driven
Based on Signal Activity Implementing gate delays and detecting hazards Low switching activity circuits More complicated memory management
delay values
the event list and determines activated gates Then, it evaluates the activated gates and schedules their computed values
Issue
Modified.
Guaranteed to schedule true
events only Compares the new value Vj with the last scheduled value of j, denoted by lsv(j) Fewer schedule operations More memory to maintain last schedule events Efficiency depends on number of unnecessary events
activated Avoids constructing the activated set a & b Scheduled to change @ same time If events are retrieved in the sequence
(b,0), (a,1)
Z is never
scheduled (a,1), (b,0) Z will under go both 0-1 & 1-0 transition, resulting in spike
Improvement : Cancel previously
Continued
dealt with Activated element is evaluated first Delays are computed later
In high speed circuits, wire delay is comparable to component delay As they depend on wire length, predictable only after routing
Wire Delay
Delay Models
Zero & unit delay models Transition dependent delay models
Delay differs for rise(Dr) & fall(Df) transition
Can result in impossible events
Inverter with Dr = 12 & Df=7 I/P pulse : 1 0 1 of pulse width 4 1st I/P tran schedules O/P @ 12 2nd I/P tran schedules O/P @ 11
Ambiguous delay model
Delay value varies, say Dmin & DMAX
in pessimistic results
Incorrect, because transitions on A & B are dependent Transition on B occurs after *6,10+ only once A is stable No chance of STATIC HAZARD @ C
to be present at the input pin of a memory cell before/after the write signal arrives.
RECOVARY / REMOVAL
Minimum time you must
leave between an asynchronous clear/set signal and before/after the clock of the cell is triggered.
MINIMUM PULSE WIDTH
Minimum width a control
Hazards
Unwanted pulses or glitches ; must analyze dynamic behavior to
to-0 transition
Dynamic 1
Dynamic 0
Static 1
Static Hazard
Dynamic Hazard
greater delay which will cause a hazard Arbitrary delay model cannot predict which path results in higher delay
Example
At time t,
R = S = 0 Q = Qn = 1
At time t+1,
R = S = 1
Step 1 : Set R = S = u => Q = Qn = u Step 2 : Set R = S = 1 => Q = Qn = u Hence, under arbitrary delay model, the operation of the circuit is
unpredictable
Depending on actual delays, the circuit may oscillate
Oscillation Control
Issue : Simulation of a circuit that oscillates results in repeated
scheduling & processing of same sequence of events : results in endless loop Detecting Oscillations during simulation and taking appropriate corrective action Local oscillation control : Identifying conditions causing oscillations in local sub circuits like latches & Flops Global oscillation control : Identifying signals which have unusually high activity
Assignment - 1
Will be uploaded on the course webpage on 3rd Jan 2011 You need to submit your answers on or before 5PM ; 10th Jan 2011 Solutions for all the problems will be uploaded @ 5PM ; 10th Jan
2011 No copying ; 0 marks if find any two solutions following the same pattern No Late Submission ; 0 marks in this case also