Vlsi 2.1
Vlsi 2.1
2 Unit II
Digital Design
Sequential synchronous
machine design, Moore and Mealy machines, HDL code for
Hazards, Clock distribution,
Meta-stability
Clock jitter, SuppBy
Fan-out, Skew, Timing considerations,
techniques,
and
Wire parasitic, ground
solutions. Noise margin, Interconnect routing
bounce, Power distribution techniques,
Power optimization. Signa
integrity issues. VOarchitecture
Sequential circuits are formally called finite state machines (FSM). It is called so since the behaviour of s
circuits can be represented using a finite number of states. Usually, any sequential logic circuit is either a N
machine or Moore's Machine. Fig, 2.1.1 (a) and (b) shows the block diagram of the Mealy and Moore's mac
respectively.
Pimary
nput Combinational Output
Combinational Memors Logic cit
Lagic crcit (Fåp topst (outut
Seoondary bgic)
0nput
Primary
input
Combinationai Combinational
Login cRU omory Logic cicut
(Fip tops
Secondary (output
input bgic)
1 0
0 1 1
{s2/0 1 0 1 1 0
1 1 1 1 1
Fig. 2.3.1
Present state Next state (NS) Since the flip flop used is D-flip flop, we will be using
Output excitation table to D flip flop to determine the
(PS)
Input X=0 X=1 expression of flip flop inputs.
SO SO S1 0 Excitation table ofD-flip flop is given below.
S1 SO PS NS D-input
D
S2 SO
0
S3 SO S3 1
1 1
This table is converted into transition table by
1 0
assigning binary values to each of the alphanumeric
1 1 1
name. For example 00 is assigned to state S0, 01 is
assigned to state S1, 10 is assigned to state S2 and 11 to The first row of table implies that to have a
state S3. The transition table is shown below. transition from state '0' to state '0', we need to apply 0'
to D-input. Second row says that to have a transition
from state 0 to state '1', we need to apply "1 to D-input of
the flip-flop. Similar interpretation is for row 3 and 4.
Thus we can say that whatever next state is required, we
need to apply same value to D-input. This forces circuit
to the required next state at the following clock tick.
the given circuit.
Using this table we will build an esxcitation table for
PS Input Next state Flip flop Inputs Output
DA DB
1 0 1 1 0
0
1
1 1 0 1 0
1
0
1
1 1 1 1 1
1
0 1
1 1
1 1 1 1
1 1 1
1
TedkKnoued:
Digital Design and
2-5 ls ue
VLSI Desig
(SPPU) D-input.
VLSIDesign &Technology minimized
expressionfor
01 11 10
00 PS
obtaín
Now using K-map, we X
01 11 10
X 00 1
= (Q + QB) X 0
(Q4+ Og) X
DA =Q4 X+Qg X= 1
11 10
00 01 1
0
Using
1 excitation ta
PS Ir
Y=Qa Qg
received is 1
So is the reset state. If the first bit
following
Realizing these equations yields the circuit goes to next
state S1 indicating reception of f
0
the new
circuit diagram. desired bit of the sequence. Being on state S1, if
stat
input received is again 1, circuit moves to the next
$2 indicating reception of first two desired bits of the 1
X=0 X= 1 0
00, 0 01,
0 1 00, 10, Ex. 2.3.2:Design a mealy sequential circuit for detecting the
1 0 11, 01, same overlapping sequence 1101 solved in Example 2.3.1,
1 1 00, 01, 1 using JK flip flops.
Soln. : The state diagram will remain same as in Example
Using excitation table of D-flip-flop, we built the
2.3.1 and is redrawn in Fig, P. 2.3.2.
excitation table of the circuit. O/0
DA
Da QR
d.
Clock
2 Fig. P. 2.3.2(a)
TechKnewledge
Puntation
Digital Design and
2-7
00 11
Is ues
11 10 10
(SPPU)
Design &Technology
00
VLSI 3
X
NS
PS 4
X=0
Jg Q+X Kg =ã+
0 01 11 10
0 01. 00
0 00,
10,
1 00,
01, 0
1 0 11,
0 01, 1
1 1 00,
be using
flop flip to be used is JK, we will
Since the the
table of IK flip-flop to determine
excitation
expressionsof flip flop inputs.
given below:
Excitation table of JKflip flop is
PS NS JKInput
K
0 X
0 1 1 X
1 0 X 1
1 1 X 0
01
current state of the machine only.
11 10 00 01 11 10 The machine
X 10
methodology for writing
as follows:
finite state
TechKnewl
Puhlratlp!
Ssues
VLSI Design &Technology (SPPU) 2-8 Digital Design and Issues
Soln. : NS<
/ moore state diagram else
NS <=;
Library IEEE;
Use [Link] logic [Link]; End if;
When others >null;
Entity seq-det is
Port (X: in std logic; End case;
D
In order to understand the ways to avoid
input metastability two parameters must be defined :
1 setup time and hold time,
Fig. 2.8.1 When the input signal(shown in Fig. 2.8.1) change
within time t, the output can become metastable
2.8.1 Metastability and Solution and will drift between the high and low states.
UniversityQuestions Fig. 2.8.2 illustrates the setup and hold violations.
Q. Write a short note on Metastability. Whenever there are setup and hold time violations
SPPU - May 12, Dec. 12, 8 Marks in any flip flop, it enters into metastable state.
setup 'hold
t Clock
S
t Data 0 Valid
Valid
Data
d
Setup violation
Data 2
Hold violation
Data 3
e
Fig. 2.8.2
of Techknowtedye
Digital Design and
2-15
the data 0ssuey
VLSIDesign &Technology
(SPPU) This is
achieved by passing
flip-flops connected input throug,
in serics.
two buffered
after tw,The
output will be Correct
second flip-flop occurrence of two
Clock
clocks as the
metastable states is almost impossible). The
flops must be provided by the same system cloc
consecutive
rest of the circuit.
that is running
Output
Asynchronous
Inpul
D Syncouthropnut
Meta stable
output
Fig. 2.8.3
asynchronous
Metastability occurs whenever two
that the resulting
signals combine in such a way CLk
Fig. 2.8.5
intermediate state. This is
output goes to an
hill (shown in
analogous to a ball on top of the
represents the metastable 2.9 Timing issues in Synchronous
Fig. 2.8.4). Top of the hill Sequential Design
represents the
state, whereas each side of the hill
metastable
stable state. Whenever output goes to Clock skew and clock jitter are the major timing
goes to one
state after some finite amount of time it issues in synchronous circuit design.
situation that
of the stable states. It is similar to the
2.9.1 Clock Skew
aslight air would rolldown the ball lying at the peak
of the hill to either of one side. University Questions
Q. Explain the following: Clock Skew.
SPPU - Dec. 11, May 15,May 17, Oct. 19,3 Marks
0. What is Clock Skew.
SPPU- May 12, Dec. 12, Dec. 13, Aug. 18,4 Marks
Q. Explain Clock skew with an example. How to
minimize the effect of clock skew ?
Stable state Meta stable
state
Stable state SPPU - May 13, May19,8 Marks
Q. What is clock skew ? Explain the solutions to it.
Fig. 2.8.4
SPPU- May 16, 6 Marks
Metastability for example occurs in alatch or flip
flop when it violates setup and hold time
Q. What is clock skew? What are techniqueS to minimize?
SPPU- Aug. 16,5 Marks
specifications. The metastability event can lead to
failure if the output does not resolve itself and go to Q. What is the reason of clock skew? List various clock
some valid state. Flip-flops take some additional distribution techniques. Explain any one of them.
time to settle to a stable output. SPPU - Aug. 17.5Marks
How to avoid metastability ? Q. Explain positive and negative clock skew. Briely
By synchronizing any explain the sources of clock skew.
least one or two asynchronous
input though at SPPU- Dec.17. 6 Marks
series connected flip-flops Q.
metastability can be avoide. Explain different technigues of clock distribution.
The data input to the flip-flop is SPPU-May 12, Dec. 12, 4 MarKS
clock. Since the time when input asynchronous to the Q. Explain clock skew and write in detail about positive
with respect to clock is not data will arrive and negative clock skew. SPPU- Dec. 18, 6 Marks
be chances of known, thus there could clocki
In a synchronous design
metastability.
data input metastability By
could be synchronising the routed approach, a single
generation
avoided, throughout the chip. Thus clock
and distribution plays an important role in such
type of system design.
TechKnowledg
VLSI Design &Technology (SPPU) 2-16 Digital Design and lssues
Clock distribution has to be balanced so that phase
of clock (i.e. position of clock edge with When select input (select) is high it would sample
respect to new data otherwise it would hold the data
reference) at different places in the system is
irrespective of the value of the clock signal.
exactly same i.e. phase difference is zero).
Fig. 2.9.2 is the circuit which can hold its content for
However this is not practically achievable and more than one clock periods.
results into clock skew. The spatial variation in
clock transition time on an Integrated Circuit (1C) is
called clock skew. D
2:1
For example, if clock transition reaches at
point A on
1C at time t, with respect to reference clock and it
MUX
Data
reaches point B at time t, with respect to references
clock than clock skew between the two points Select
Clock
is t -ta (CIk)
Reference clock Fig.2.9.2 : Data storage for multiple clocks
Another approach which is although rarely used but
results in reduction of hardware Cost is
accomplished by using clock gating. The clock pulse
to the storage element is permitted for loading and
suppressed for holding data.
Data
CIk Hold
Setup time
time
important parameters
Fia. 2.9.4:Waveform showing Tech Knewledge
Puolir at ions
Digital Design and
Issuee
2-17 2.9.7 shows
skew : Fig.
VLSIDesign &Technology (SPPU)
combinational
Negative
clock skew.
clock
The positive
clock edge CLK2 negatOCcuirvse
the edge ofCLK1,
propagation delay of before the rising
tpd he
logic circuit. Combinational
a signal to Data
maximum time it takes for logic circuit
Tpc-Q is the transition occurs. B
propagate after the clock CLK2
the synchronous
maximum clock frequency of CLKI
Thus,
tset-up, tpdi tpc-Q:
system is determined by
-CLK
T 2 tset-up +tpdt tpc-Q
tpco)
tpd s Te- (tset-up+ satisfied for correct To+ (8 isnegative)
needsto be
The above condition
working of the system. between
combinational logic circuit
If there is no minimum clock period is
only
two stages then the CLK1
sum of set up timne and tpc-Q.
discussed earlier can be either
The clock skew
depending on routing direction
positive or negative CLK2
and position of the clock source.
synchronous circuit can be
The structure ofa typical
described by Fig. 2.9.5. Designing of such Fig. 2.9.7 : (a) and (b) Negative clock skew
synchronous circuit involves timing issues related Effect of positive skew :
logic circuit
to worst case delay of the combinational
Let us consider the circuit of Fig. 2.9.6, where th:
and delays involved with the flip flops.
Combiaiónal output of combinational logic circuit is connected to
ogic ccut
the data input of second flip flop. Therefore the
clock period must be high enough to keep the inpu
data valid of second flip flop for at least hold time.
Cock
That is the computation of combinational logt
Fig. 2.9.5 : Structure of a typical synchronous circuit circuit providing the correct data input to the
Positive clock skew : When the clock edge is second flip flop and delay through the first flip op
delayed by a positive 8at the other node than it is must be long enough to avoid race around condition
referred as positive clock skew. i.e. in the Fig. 2.9.6, (flip-flops are assumed to be positive edg
CLK2 is delayed by 8. triggered.
Data DQ Since the rising edge of CLK 2 is delayed by :
|Cloglc
ombinational
dircuit positive 8 , the time available for a signal
CLK2 propagate from first flip flop to second is inccrease
by 8 time.
cloci
-CK Therefore, the constraint on the minimum
period and hold timecan be derived as follows:
T + 8 2 tset-upt tpdt tpC-Q
CLK1
Te 2 tset-up+ tpdt tpc-Q -. skewY
The above equation infers that the positive cicu
the
CLK2.
essentially improving the performance of
Fig. 2.9.6: (a) and (b)
Positive clock skew
Techknule
Publiratiae"
VLSIDesign &Technology (SPPU) 2-18 Digital Design and Issues
ve
Effect of negative skew: In Fig. 2.9.8, dark line indicates reference clock
rs waveform having clock period of Te. The dotted lines
Since the rising edge of CLK2 arrives earlier with at the edges depict the jitter of the signal. When
respect to the reference, the time available for a jitter is present, a transition can occur slightly early
signal to propagate from first flip flop to the next is or slightly late.
decreased by 6.(Refer Fig. 2.9.7) This can cause bit errors at the receiving end of the
In order to avoid race, we must ensure that the
system where a data signal is sampled by the clock
minimum delay through the first flip flop and the signal.
combinational logic is long enough that the inputs The clock period (Fig.2.9.8) starts at time t, and
to second flip flop are valid for a hold time after the
ends at time t, having a period of Te.
rising edge of CLK2.
The worst case situation would be when the jitter
Therefore, the constraint on the minimum clock causes the leading edge to be delayed making it
period and hold time can be derived as follows: start at time ta, while the next leading edge of the
Te -8 tset-upt tpdt tpc-Q next clock period occurs at t. This results in
reduction of clock period by 2. tjter.
Te 2 tset-upt tpdt tpc-Q tß.
Therefore,
Negative clock skew degrades performance, since T -2 tjtter 2 tset-upt tpdt tpcQ
the minimum clockperiod required is increased by 8.
T > tet-upt tpdt tpc-o + 2 titter
2.9.2 Clock Jitter
2.9.3 Combined Estimation of Clock Skew
and Jitter
University Questions
he Q. Explain the following clock Jitter. Let us say that, there is negative clock skew of 8
to between the two nodes A and B. Also, the two clocks
SPPU- Dec. 11. May 13, May 15, May 17,
che
Oct 19, 3 Marks experience ajitter of titar-(Refer Fig. 2.9.9).
out
Let us now determine the limitation imposed on the
Q. What is ClockJitter ? minimum clock period. The worst case would be the
SPPU- May 12, Dec. 12, 4 Marks
gic situation when the leading edge of current clock
the Clock jitter is the timing variation in a signal at a period on CLK1 is delayed at t, and the leading edge
lop given point in the chip. It can be regarded as the of next cycle of CLK2 happens early at tio(Refer
ion inaccuracy in the clock edge introduced by the clock Fig. 2.9.9).
dge signal generation circuit. Fig. 2.9,8 shows clock T: + 6 -[Link] 2tset-upt tpdt tpc-Q
jitter. T: tset-upt tpdt tpc-Q - + [Link]:
Data
Combinational Although the skew can provide a performance
logio circuit
to advantage, jitter always has a negative impact on
sed the minimum clock period.
CLK
For positive skew, the clock period constraint would
ock T be:
Te - 8- [Link] tsetr-upt tpdt tpc-.
Te 2 tset- upt tpdt tpc-Q +8 + [Link]
w is
cuit iter -fittor
hedge
(SPPU) tËt
VLSI Design &Technology
2.1
ToLK
CLK1
CLK2
t
TCLK +8
t
and negative skew
Fig. 2.9.9: Circuit with jitter
time of individual memory element. This is cal.
constraints on
set up time and hold time in poses clock skew.
the digital circuit that drives the input of flip flop. These delays slightly differ from one clock cydes
The circuit must be designed in such a way that the the other giving rise to clock jitter. Fig. 2.10.1:
clock
flip flop input arrives at least set up time before the illustrates clock skew, duty cycle and rise /
transition and does not change until hold time. If any of times.
these conditions are not satisfied the flip flop goes into
Rice time Falltime
metastatic state.
(t (t)
These restrictions impose limitations to maximum
operating frequency for a sequential circuit.
Clk
2.10 Clock Distribution
University Questions
Tnigh Tngn = Toy , .. Duty cyce =50%
Q. Explain techniques of clock distribution in detail.
SPPU - Dec. 13, Aug. 18, Dec. 19, 5 Marks
(a) Waveform showing delays
Q. What is the need of clock 2.1
distribution? Explain
techniques of clock distribution.
Reference
SPPU- Dec. 16, 6 Marks dock
Q. Writeshortnoteoncockdistributiontechnique.
End
SPPU - Dec. 18,7 Marks dock
Clock signals are very important in
for achieving digital
systems
synchronization.
clock signal is always of Therefore, stability of 'skew
prime
Real clock signals results in concern. (b) Waveform showing clock skew
skews when distributed
through the chip, have specified duty cycle which
Fig. 2.10.1
clocksignal
can also vary and have Skew is the spatial variation of the clock
i
Tech Knouwledge
Puhirati ons