STLD Unit - V
STLD Unit - V
STLD Unit - V
r,.. ,.,
""-1 ()l ie. 5tA te
~'~
_J l:-c--c~ .
£_"),{ ~ £.est ~~oJJ e:1c~tJ. (cGntwng ~nlt:-e ))ht~) ..
\/ () ,
1
.3uc__.€ e »., 01 : .- w~ pv-v.,-e;,J-!J We
e--, ~
1.-:'1:
:
~ So an
r: "IIp /l~
-7 C;:Y) '5eNJ1oJl I we (jAn ))lA Cl hto-X, f~ 0..0 WJ;\~
So\
r-:
go
'I( -k-... ~eJ:, 01. . h'llA.~ t l-\a. ~m S 't-oJ-e -tu £~ J I
---j.
UNIT - VII
SEQUENTIAL CIRCUITS
·.FINtTE.sTAT'Ii •.:fJJA.CHJrtE
Clock pulse
x.
!
:Ita •
•
•
·
••
Xt
Y1LI '(,
I
fl I
..~ I
I
....
I
'"' I •
I I I
Yki I J VI«
,------------
Figure 14.1 Block diagram Of a finite state model.
1 I Page
D.Y.PUSHPAMITHRA, ECE DEPT., SITAMS.
21Page
D.Y.PUSHPAMITHRA, ECE DEPT., SITAMS.
MEALY MODEL
When the output of the sequential circuit depends on both the present state Of the flip-flops amt on
the inputs, the sequential c~t is refotted to as Mealy circuit or Mealy m.achbl:~.
Figure 14.2 shows the logic diagram Of a Mealy model. Notice that the output depends upon
the present state as weUastbepresentiDputs.Lookingattbetigure, weca.neasily~thatchan,gea
in dleinput during Cbe clock pulse cannot iffecttbe state of the tlip-flop. However~ they can affect1be
output of the circuit.1)ue to this, iftile input variadons are not synchronized with a c1ock, the derived
output will also not be synchronized with the clock and we get false outplUS. The false outputs can be
eliminated };y allowing input to change only at the active transition of the clock.
PS NS
. OIP
x.o " ...1 )(",,0 ,,-1
Y1 V2 Vi Vt V, Va. % z
0 0 0 0 0 ,; 0 0 110
0 1 0 0 1 1 1 0
1 0 0 0 1 0 1 0
1 1 0 0 1 ·0 1 0
(I) Stale table (b) Slate diagram
. Figure 14.3 Mealy model.
31Page
D.Y.PUSHPAMITHRA, ECE DEPT., SITAMS.
In gener81 fornt, the Mealy circuit can be represented with its block scl1ematic as shown in
Figure 14.4. ' .
r;::::=======;. .,. ======:::r----,
"
.
"•
the.~..
: :: -: :::::: ..
. ···············1"t¥.~~·
.- - - _.
'1'2=*" ....···········
- - _ - - - - - - - --- _.......... .
.........
.. . .. --
:::
....
: .. _ ":::-,,'
-_ --- .. _-_ ....
.......•• :P=YIY1
Ya
Clo-----._----------I
Flgure14..5 Logic diagram of a Moore model.
The cba:racteristic equation of a T flip-flop is
Q(t+ l)=TQ+ TQ
The values for the next state can be derived from the ~m~ equations ~y,substituting T I ·aridT2 in
the characteristic equation yielding
Yl(t+ 1) = YI = (Y2X) EElYl = (YiX)Y) + (y~»\
=YIY2+Y1X+ YIYlx
'2(t+ 1)=xE9Y2=XY2+ iYl
The state table Of the Moore model based on the above state equations and output equation is
shown in Figure 14.68.. The state diagram based on the state table is shown in Figure 14.6b.
41Page
D.Y.PUSHPAMITHRA, ECE DEPT., SITAMS.
PS NS O/P 1
X:O x:1
y, YII VI V2 V; YZ z
0 0 0 0 0 1 0
,
0 1 0 1 1 0 0
1 0 1 0 1 1 (.
0
o o
1 1 1 1 0 0 1 1
{b) Slate dfagfam
Flgure14.6 Moore model.
In JeDeral fotm. the Moore circuit can be represented with its block schematic as shown in
Figure 14.7. Figure 14.8 shows the Moore circuit model with au output decoder..
51Page
D.Y.PUSHPAMITHRA, ECE DEPT., SITAMS.
i'4eah_anl Noo"e Mod,ı)s al Finik S*oJq MachinB_s
Mcalş Machlnc
Owuu
(Meal_v-*peı
lllooıe Mmhinc
0uıpus
{Moorc-rypeı
fu^aL +U lr
I"ı tho Wo* node!-,lh+ oM c! d-{*"c},>" (o* lh. goÜ '&,
ru hr, ,no,Je* a/ a-g?"urt>,!. d-*ır;h a,ıı ,+{e,"ea -h a5 a- Finik-Sl*+e-
Ma-&İne- (ran) ; Th%,-'""' *Çrr*a_* as (or lı* noch),^ı-)-
alLd. l4o0ıg E§la (or 1,1oo,e n^a",rğ .
'"4F§ı"ı
An exa:^nple
"! a Moore,n*rdn!- a;rre,^
iş i4 Fiç;5.1t 41ta hot ( Ül*exaopL
N;th l*o iK {Çs. H<se,ltr,,ı- oıı}pı* 3 o Ç,*,o*o^ o! ++,L ç,csııL s+""l€J anl"4_"
- 29_
Ano|lrüf e*ctrür\ple o! ._ ı,ııoore is,İl,\a se|uent1 o!* rürr;)*.rith 1uıo T rFs
^oAlL
shoıın in Fb, ZO "/ ü1* bgoh*. He.e, a+,ı-o,-.*p,^t aa"<,,Jı only +ı ]tr^e_ Ç?s
o urrpJ v a.Orııı --ı\"ich are f.gn*Şt ows of, ta"-o- rır<-se--* stıtz 4 ,
M , W oqrh^Js *!
1vg'-*;,a-L ,ri"rr;* a.e JU nchçv
++,2- aiıı_d
ııi|n 1I.'z üorL, fu.c"şısq.- ++r.r5 d2+4r-J- or,tö: on f-F *ho-t o"e
^o,^*pt
Üı.oa ,^ıil4ı }lg 4o.1-| 3J^ o t lr""Jr!
n^- an!_ ) +vrL o\}?^J., ,^.5
"?-.h".
choru6,a iA W- t"p"J, ,J.*"?sı- 4 lhz-cLoJ-. Thr|s caıı-l4-5 1*o,""e-^loıX-flln
vo_Lrroı a* ]aa or-tp,^*s bzaıı.su 4 ++,,L a"\: bel"rç-p,.l&,a inp.,rİ raryı
oııL *l,^-t- ?F ory cho.ç.t, lnorJ.ır k s-,tr^ü.rr.,j2e_a
+lı,Linpu*s o{,W,4 sellııil-o! crtr oıı,rL rınıı-s l Vz_ 5v,wc).rpnizıJ-,ıi '"* Wa/rui/.,
LL,_ l/<_
e|,ocl,+ ru*d +h2 o,,dTr,-,J, ın^r.J,l bz sa--ıpLıJ. ;wrr,ra_L"}efo b.{oı<_ ll,,ı e/prıedff.
The inp}S a,,e üıorı,çıdü- +1^ı ina"t,rre 111^; cİ"""-l,_ ]o
e.ıa§2ara *}ıaf
"dr
-lha inp,rJa
4 +lo FAs s}a.biLrz bzk* +ü.a- oc*;E edç_z_l+fu_ clo"l-"/f,
o ezıı-rt . Th^^J , *la o,ptr.$ üİ +|r,,t lü24 ry\elfu- k IV.ı- valıı.e^ -}h.* *
1" *he s}q"le- dia3rc",* ol', ü. Mea\5 ı"rodıJ* c,..*t.t o.*.tp,^|ı a,r( marl"ad
on lhe a,..cs i,, *nr- &* d " inp,r*/o,r*pt". lr, *lıe. sdn{<_ &'n1rz^* o{
a_ i\i.ooce örc,r^;L o*[Çuİa aae ft|*k(cd in }t.ı. cir.İes in lfu {.* c
+
Sfo,k/o,r*p+tr "
-3o -
4NALYsls 0F cLocKED sEquENT,tAt cİeütlT§
rhe oJpJ' ar,,d. the nexts}"J* are bo*h €r,.$o*o{ lha i.,puts qnd-l?a
PreSaıııl S*a{e "
pt{)x(*)
A'(t)xtt)
{Attı+BQ)Jx't+)
Fo" q Ş FF , 4he nex* shle Q(t+ı) ,s EuJ 1- *he D input +ftçr ttıı
cloc}- {raııg1+,}n. -fhe«{o« ı qL caJ^ u,ü"iJe +}.4 6l/a,ıl^5 si,ate elırı$ons i
A(++,t) = AC+) x(t) a B(+) x(+)
ts (ğti)a A1({)x(+)
_48 -
The l"(+sile a{{h. J]d{€o1u.hi,'rn, ,.ıJ)+h (++ı) Jur,o kç thgncrts}o{. .{ +h.
FFs one c)ü,uür ia*er. a B*.l<n'",
llr.Qiph+sıHı_C +t^4 s{""l.e Eııatİo*'nş
eı{pneısbn }hat specifi'<_ı tht ğıe"t §üıı.k otnol. tha i*ç6[ cenJı{br,, thot
yl6jıı_ tL.e nZxl-s},^{a e?ııa0-{* L.
= Ax + _Bx
,A (t+.{)
gCL+ {)
= Alx
Şü^:r*3 , }hu pr<x,n#-slqle ro[,^ı_ o{a+ıuo*tp*^.ü ca-- be_ eıp.e:sao(
at6ıl"nl c,,lLx a.s
t(q = LA(ü +B&\J x'k)
B1 ne,."ovlnp, +t" ,a*"U{ (gl Ç- l+.L?,asfu-t slata ı uQ oblİ" /4<n ouÜr^İ
blalU,nelıra-h,b"l /ı _\ t
(a *b) x
Sfak_ J ia 9*^
yg,""lu he
-The
slo]e infoonah'on as ll,g- slate
fu*
l-heL;no-1 nenbqr
.sn"ne la-blq .
,iııİdz eac}ı
ideı,h',feı {Aeshte's
c,'relg +lrı_rrr.
"!
t! 7he d,'recled /İnes a"ıe labeleal "ıilhluo bna7 nı.ırb,eıs sepa,Jl<l
b? n sla-ıh ( r., scn| value fh" iopni /İ*ron&'rlş outp"t ud,n)
"I
Nok -İhat 1h e ouİp** ocı,ıır' duiaş the pr<sent-ş*a t<- ar.a[
wi#, *lıe lndi"a|çd tryü, and hoS ,,o*hhs {" dı u'|lh lheJraasilon
$" *he naxü slu+€-.
oÇ ı{ıle- occu,ı,,,
Dq=x*/
h,,o*, a D Çltp-ÇLry uıhoıgou:tpıı.f ts la}de{,wi{h a+,ırynbJQ,
yt)eo,nı
a-nl uJLıısı- ıhPlı* ıb obh.İ"e4 fun qJ\ OR Tp,fu ,,ıJia ıhpıı{s X aııal 6.
Da=Aoxey
7he D^ s5rnbot impiieı a, 1) FF ,ıiü ov*p,** A. The x and- y vüülu
aca **ıa inp.,ııls ,lo +l,,e üırJJr*, Na o*taü e7ı*bn3 a-Fe g^lwr, ,^.ı kel
iqplieı lhoİ ,lde o":}p*f c-oın43 {rın ,ll.c oui7*of lha FF.
t'/ze logıL d,'açn^ İs oLh;neü fu*, [he ıhp,ı..t eyat;on a.s $lloos:
Present Neıı
§tııe Inputs ştato
r} A
0 00
0 01
A 0 ı0
A(t+ı) -_ A&) 0 ı1
xo/ 00
= D1-- A a 0ı
ı0
1ı
(a) Circuiı diagram (b) §ıaıe table
(ru, ll ,+ *.*-.:
:*
( t
00.lt
01, ı{)
(c) Slate diıgram
-The arrİ*, has ona FP aı,a" *ıosl,".Jeı , lhe. s{"E &q*^ unsiılsqf
İ"lO cı\ıte*S ) or.Q_ $r ach s{a{a . The pıcsnn* o& and-'t{reou-ğırt
cı.r. te_ O or 4 , r İnalıig*eJ" by4lıı_wu-ı,.b* ,hsida J{"ı- c.',elas. A slash
on ııl,-r-ü'rec:l€4 lİııes is no I neıAeİ", beca.ıı:ı-- Jlran is no oüpu.t P. ++ü-
-2? -
#Ano!
Fpr a_ D rF /te_,/a/+ eÇıı,a.Lbn{lresamı *E *hı. kr} e.'niion.
ı)
u1ha^ a "Fp olhu ffi*, tlr-e_ D İw ğ ııiıd,r 5ıcA as TlLor T, t isı's nea,ıs*1
Tr,.t ne
*o ıJJa İI.* ctaraate,n:ıhb-l ü,ro,t*n' /o oblo.ü /}ı,a rız*t e h b- Va[ııg-s ,
Tç* ne* sl"Je. -"-9rzr Ü - *futlJ;rr.İ d*^^İ:ğ J+rrt ü,ıeı TlLor r ü,r
ffs an* bLüpürWJ as follous,
1, Dp_l(,-,-iw,ı, l+,L rc ı^nçJ e{uılja^s in ,l€fyyrJ o{ İl,L 7r<sı*_b slala
O-r."d- )op.u* v^lrıbs ,
Evovn?le- l Ob+öLır^ #^.u s*aü, +ajr{ı *ıJ _ll,ı" s{aİ...c- oln'arLlZ"o^ .Ço. }he
ıe.lııın*iol erfu";r Sh-attın blJo"ı , ,
ğ,
üio*t
Je=ğ Ka=ğ*,
lB= N' f(a = A'x * A.T' : dsx
-24-
Tle_ s*al* L*bla oİ lire ci,e,ıi.ıt
rywJraL, ;
Iı fr4 İg l(g
t}0 ül 00l0
CIo 00 000l
0ı ll lıl0
01 10 l00l
ı0 1l 00ll
ı0 ı0 0000
ıı 00 ltıl
tı 1l ı000
,t*ıe i*p^*
Eıe.*,iı§*,",{s-E 4§ü,pğrİ
o{,tlra ı*ı{e +Ak ) b't aıe. {".|t,,a"
(os "dg/*
spau§eL in s44f 2. üİ 1-1r* pıo*llıuÖ " Theıı
çrıa.lıaİıJı o{ Jha vıçxt, ğ+rk
.,o[uı^r.s aı<-tot neade{ ">lr,şn +}.ı-stak aqLh;ns aı<" u-şa,l,
/lıo b;"ry naLas FF i,ılı,,^* (ıı, Kı, % t oı^Acg)M {o_ 4*e c_ombinaiprv
4 ftlaprcıı-ıt ,rlaleS A üJ,,,d. b, a+ıd* 44*" ıilı-ır* X .
C}raıac],*rr*Z, 7a\le
Q&+ı)
oö No ü*ız
o/ı R,ğJıi
4o 6,ü
11
The neırl" rld.Ix v*Lııel an *ts" be obh*nql, bI e^rğılıuı,l.'nf, +*ı.c §+o&"
A&ffign,)'A
W
=
A,rr+(a)+x)A. A'b*AB'+ Ax,
B(t+ı) ,>ı'B' +(Ae x)'B= B'u'+ (*qx+,Ax')'b
- B'ı.' +[ça' *)', (lv')' ] o
L$ K') , ( A'+* )]g
= b'xt +
+
Lahle 4s ftLlo ü g i,
S1 S2
L
-26 _
Anahjsü wı{ı T pltp-Flops
-Thu
o,.*Lıtrı iı Q a" solıııır*ıLl cj,-u^t » i-tlı T
r",s i. si^ita,^ {p {dJ
+İK FFs , 7h4 me*l
"*"{e
vo&ı-u, in *luıı s{.alıı ]ohlo coıı- |n obhuad
or *:Lrp-cnaracJe.4zt
ğ,ra*l" ,
AlııcJt rasğt
7he sı"l"ı-h'İ q'r,curi has l.,.ı o FFs A andB ,, ong irıpu* xro-ıd or* orrlpoı|* y,
^2?*
lhe ,:rpıı't anal oulp,ıt Eua}ı'ans :
TA=Bx
TB-x
ü--Ab
S{ql EuaJıbnr afe otta-'rned Uy suls*{r{ n?.lM i"pü eq,J§-blons Tç:and
:f,g i" ]lıe <hou"ac-*e"r's*ic- e1,+a}lor,s ) ,d^eldi"E
a,,.d,,'.sen{*.{ in ila_
fr{lrrı'n| ,al- Ulİ*.
ğlt* Igfri* for.$*qııenfıoi ğiruuif ıııifiı f Fiip.fiopı
Frgruş ltlşxt
İtatĞ lnput §tıte
İü JlB
0CI 00
00 0ı
0ı ül
ül ı0
lü J0
t0 lİ
11 ]l
1t 00
Du, ,^"-l^Zr1,
4 - {=rı,- ı*ıoı4
d.a-scn'p{bn ar.at spLi€'caibn,
l*ı.e- al +r,2- Jesireatopoızhin,
4e,r'vg lAe slole- &.a1an,,* o{ 1+r4 clrcüİ. )
*
5, Ü,pge_ l4,,,J-\e
"L++^L
Fps {p bc ug/_,
Ex"rpl._,
Design a- ,j*r^lk +hot Je-J<,*s o *liu;e,z.ıo, a$ }hreL or N|ofe
consı.cııÜiıe l's in 6- stı,ln5 o! LiB uning lhaarh a*, in7,r*Line
(ahe input iş a se*r'al bt*'ı/.ıcaın) .
Ab
tfu;{<.
rld
x Ab3
S*a{e Oafiog*
oö ö o o ö
oO 1 a ü] ö
ol 0 O o ö
Ol
ı0
1
oö o
ö
ö
o
oo
0
ffi
ıö t (ü o
e ,l= l {". ++,a Prexr^* *loİe Ab=4l
0 ü }
l (ü ü f,: )
k{'s c-hoosa O
FFs *a .vçreseınİ *}ra 6r, s{r^{es, aü\d" LoJoıL ]1,2; ourtpJı
A ar,o\ B " fLııı.e i5 udğ o^e*in1u*X o;,.{ oneo,ü1,r, a.
f\ıp üıaıva{<,ish'c
Eu",irun aI^ +t@ D FF iı q(+f|) - Do ,
".ıhıLh
ff\oo,ns ++.raÜ {+'Z rı,arl sdııte no.Lr,,ı-s in *l,ıa s+*,|ğ l&Lc ,p*;FJ +la ü inpuİ
.o.,ü§a n q{++u- FF,
B
A 0ı 1ı ı0
0 0
,{,
"{,
T
ğ, =l*1 s* Da= Ax + Blt
Tr.-0_ *riıa*+ay_
ü ,lnr;aııı'i.ı4,'1r1, ,D PF ,s +fut +la i"p** E*eİfans
ü|cd13 "bİ,!u,d, {ıpm.}lnJ* shk- bble
arv-"
-3? -
çTATL k$.ücrıoN AND As§l6^J MEI,]T
Stak redııAo " is re#-ııed, h as W,2- re_d.r.Üa n ir| ,lla nurvhı,. nl FÇs
in a ,tl- ;ryı-a
3*r^a"l
akJr^Ut,, ,,ıl,ü-lı.
@ -o,,*p,.*
ry;M
tı"ıodarfu<d, Sin"ı-- rh FFs proJuroç 2n s{o:lzs , a ıç,dJ,§L}o^ inf,l,g-vvv^/ıleer
+t s{*k, rh eÜ_ (or nag_na?) reııı-l} ıh a r€dr*o*,u on io' lho nııy,-ber a/ Frs,
Paılıır;^ç ll,ı_ nn*b* *t FFs soır<}o^z_ı €aı_ı_3ı_3 al,.- inu<.a.5L i"."tho-nJr,,,b4r €
cornbi""o"ijpnil afu in{l,a e|üva!a*,b clwu/e , U)e -ltl İ[l,ıık"lZ U,^2_
s+o,Je__ *duııİbn fı rı cz-Aııı<- wi$ı_ aL e_{^ı"\-plt .
Ex.or^ple : Fo. +.hL S+e*L J.t.f frı,,,, qü;J4^ Çılouı, qnsiJ-ı- *+,l t"p,r* quq^L
o t o^ ol l o t O o sla,tio5ı {on^ {hı_ inilıo2- l{"*ı q, Ea-cL,
inp"* ü{ O a.,d 4 ?ad^ıas aı,. ovtpı;g. fl O a,r.al 4 or,,d rg,ı*Sa-J {4r/-JürJü,,,İ"
]" p ,to lhrgneı{ slrr*ı-, o/o
jv.ılı,ıL aJ $|ürwıı
ü;++v J+,o circ:n^b ;^ i"it'J sl-fu a_)
a-n ,'^p; ,{ O p raAa.eı a^ o^-Lp** ğ O 5+al€
ar"a W,ı- ü-*,,* MJ^"; inıh*a a_ ,
uJ,{k p"eıcı"*'staİe a* a^L;npr^b o( L, fu o1aJıaıJ İs zq.* ar.-d lhıy.r._*
S}aJı. ,'5 b , 69^{-,nu-inx? LLrr, ?focJJ, ,o $'"l ]tı- cot*çle!-- s-.1ıü,a-yLı4
+d bı fus {-olLo,ı 5;
5+-J2 Lüb c d e { { 3 { 3 L
tnpırut 04g1olto,t oo
Ouh"^* o0ooO1lOlOO
-3ı-
In ü-h col*ı,,^ we_ haır.- +h1pr<ııı1İ cfaJı_., inlı-^} a-o[ o,ı!r-,* ürı!l@},
rlrre ıq"r*,slala ı} wi{k^ un {op ./ /l,_L ı,ıjJı} colw"tw.
ro]ü,ır {haw }]na_4u- ğ c/*lı dlb,{nh , tı.}Q- ı,,za-L--lo obüıw )4,ı.* ç{uJe_ "l"U-
,S}a]e Tahle
Npxt {+4k Ou}p4t
P,vsprrt El"l,e- X=O X=./ Y=C v+/
a- a-hoo
b cdOo
adoo
efa
L
J« o
q
4
öe L ,,{a o 1
{,^ IL.-e- #L,e- / be_ [oot- $. _l".ıo yr<ser^İ, ü4"*r, }lrr tr 1, l1,,2 ıqıne-
"rJ-iilq
rteıt| ,ı{dJa- qv,)- hNrQ- 4a S+r,,ı* a,^!v-,t Pr boil+ ;"r"/İ or",ht,**h'ats .
7,<n* .flufu" ? ,
Pr<;en*s{a{e: { ff,
and. r[ a.e_ eqüvole,* J) , ?eçl,a.a ( bu J r-r,ch J.i^,_
onr*+
i} o.rr"ı in -lha* rhku Coliuna , anrt n€ıınııııq $,ı_ r"ıa *'41o $z._
preseı,* ,]z,lı.- { ,
-32. -
nL sl& lalolo: :
re/Jkı./- ,)
flre ıadur g*n{n" e'ağrah
P,erQ}"h Nerl- Stak odr^,* alo
S+4]-, ,r,-O y-J *=o 4
ı
"-_
q,aboö
bc)0O r'\«
/o, o
C,.adOO o l c
dLJ04 | İü, ü/0
L&J04 o,)c ı/o
a
Uı
llq- Qllo wi"p Lsl, "o."- fo- /aı',^ed- fü,* al,- reilrrr,al_ s/ak a'qp*, ı
Sl4Je-a,Lbcle-JJed4a_
lnpııro1o'lO14o1oo
o"lp^,to o o o o 4 4 o 4 o @
Lt is oL ıı-*<L l+nA,*
/ fi. tl* taevg- inlru* ıLt4* pr"J/,'o oıslş,
1u^.rLcL
İ,usn jıJ-ıJ^,ız__ ,<sıı-a}i, a-ttho*flk tlr4- ç,]**e ğaq&QlLq--is'üfu<**,
^o o,^}çr^*
-jg -
SrArz A ss ıGN N eşr
fn daEİlnİn$ ü t441uenl;al .t"rrr;hz, il is neags%! =l- assı,git u^|,quı-
cod"ed brnon4 ,ıairı,s +- }he s*e.*ç-s ,
in ++14- aı.sğm ,
Tl* bıha.y for^ ü&++4" s}otı J--U- b ,ı-aa/, -}g J$ve +&r4- ıqı*,[,st/<_
aırd OuJtlaır* - Srm,'nş qv*btrıa,*,-o,+ıoL İD*p*tol İ+rı" *.1,rırr*;2^,a a,ıül-,
Th.e cOn^glaıı\ .f Ül,rL
"ıı,{r;na,İio^al.
cr:ffi.ut Jçe^otı an ltq, binar1
*+wk as l i ü,^o jga
nnnç*t
^?4-
UNIT - VIII
Pagge | 1
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
An algorithhmic state machine
m (ASM) diagraam offers sevveral advanntages over state diagraams:
Pagge | 2
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
COMPON
NENTS OF
F ASM CHA
ART:
1. Staate box,
2. Deecision box &
3. Co
onditional ouutput box.
Out of theese, the statte box and decision bo oxes are fam
miliar from use in connventional flow
f charts.. The
third elemeent, the con
nditional box
x, is uniquee to the ASM
M chart.
An ASM chart
c has an
n entry pointt and is constructed witth blocks. A block is cconstructed with the
following type
t of sym
mbols.
1. Sta
ate box:
Pagge | 3
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
2. Decision box::
A decision
n box may bbe condition
ned on a sign
nal or a testt of some kiind.
3. Co
onditional ooutput box::
In simple,, Condition
nal output box
b is defin
ned as:
Pagge | 4
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
SUMMAR
RY FOR A
ASM BLOC
CKS:
One state
s box: TThe state bo
ox has a namme and listss outputs thaat are
assertted when the system is in that state. These ou utputs are called
c
synch
hronous or Moore
M type outputs.
There is no
o rule sayin
ng that outpu uts are exclu
usively inside an a con
nditional outtput box or in a state
box. An output
o writteen inside a state
s box is simply indeependent off the input, w
while in thaat state.
An ASM block
b
Pagge | 5
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Certain Rules
• The entrance paths to an ASM block lead to only one state box
• Of 'N' possible exit paths, for each possible valid input combination, only one exit path can be
followed, that is there is only one valid next state.
• No feedback internal to a state box is allowed. The following diagram indicates valid and
invalid cases.
Incorrect Correct
We can bend the rules, several internal paths can be active, provided that they lead to a single exit
path. Regardless of parallel or serial form, all tests are performed concurrently. Usually we have a
preference for the serial form. The following two examples are equivalent.
Parallel Form
Serial Form
Page | 6
D.Y.PUSHPAMITHRA, ECE DEPT., SITAMS.
Pagge | 7
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Pagge | 8
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Pagge | 9
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Pagee | 10
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
EXAMPL
LE: Draw the state diiagram and
d ASM cha
art for the state table given below
w.
Pagee | 12
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Sequence Detector Example
E
The use off ASM chartts is a trade-off. Whilee the mechaanics of ASM M charts doo reduce
clutter in significant
s ddesigns, its better
b to usee an ordinarry state diag
grams for simple
state mach hines. Here is an examp ple Moore type
t state m
machine with h input X annd
output Z. Once the flaag sequencee is received d, the outpu d for one clock
ut is asserted
cycle.
The corressponding AS SM chart is to the rightt. Note thatt unlike the state diagraam
M chart indiccates when the
which illusstrates the ooutput valuee for each arrc, the ASM
output Z only when itt is asserted.
The followwing timing diagram illlustrates thee detection ofo the desireed sequencee. Here it iss assumed th
hat
the state iss updated wiith a rising clock edge.. The key cconcept to observe is th
hat regardlesss of the inp
put,
the output can only bee asserted fo or one entiree clock cyclle.
Timing diaagram
Pagee | 13
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Pagee | 14
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Pagee | 15
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Pagee | 16
D.Y.PUSHPA
AMITHRA, EC
CE DEPT., SITTAMS.
Page | 17
D.Y.PUSHPAMITHRA, ECE DEPT., SITAMS.