DSD Midsem Papers
DSD Midsem Papers
►•
)
.,.
@
r u l dl :\o of Pa~e<st
H.otl Nn . . . . . .. ... .
J
r u I RD SE'\1 EST EH ( PTJ
1\1 . TECH lSP)
)
, 1 Construct a 16 x 1 multiplexer with two 8 x 1 and one 2 x 1 multiplexers. Use block diagrams . Implement
VerilogNHOL code for the aforementioned 16 x 1 multiplexer. Also include test bench for verification of the
functionality. (8)
2. Distinguish between synchronous and asynchronous RESET by writing VerilogNHDL code for both
(a) 0-Latch
(b) D Flip-flop (6)
.1 A sequential circuit has an input (X) and an output (Z) . The output is the same as the input was three clock periods
previ ously . For example.
X=OIOI IOlOl lOIOOOI
Z = OOOOJOl 1010110 10
(6)
The first three values of Z are O Find a Mealy state graph and table for the circuit.
---·------·---------- - ------- ---------------- -·- - - - ---
~ q •. I i ··- :i' •I , , C' ) -- - •• •'• I'
:-!! • j qi,.;;i \~i ] .l ' ... '-- 111 ~ !.~1.;,
Q. 1
linplemcr t the following IJoolean function with a 3 x 8 decod1;r (a:;surn o active hieh·out!) Ut}.
Fl (A, B, C) = re M (0, 3, 4, 6) . Also write verilog code for the same using structural style o.f ·
niodo liing . [5]
~ 2. (a ) 0~; ivi:. the ~i:i;:tt! tyLJl i:: .:inJ U1 r: ,:ta~t: J1il grJ1 ! 1 uf U:e ;;i;qu~r,ti i:i l c.irc uit slH)\.Vn in the figq'i·e
below. (3]
/ \
I J
- - ·1 l_J
(l>} f.xµlain th e µrubl c1n of IJ tcl1 in fercncd encu untert:d uuri11t3 Jorie syn U1c: :;is. [1]
(c) Dtffcrcn tiJ te bet 1.vee11 bl ocking Jnd non-blockin(! stJten1 ents. [1]
u. 3 A :J~~'t.1t.:11t1c;11 drcu,l lid) on~ iHµu t {X) a11J one outpu t( /.). Ur,fvVLJ 1\/i~dly stJ ll: (Ov1:. 1;Jp 1Ji r,g}
grdph if the outpu t is Z :: 1 when the total nu 1nbcr of l's re ceived is ciivi:;ibl c by 3. Al;;o v✓ ri tc
Ver dog cod1; for the sJme. ·fs]
\ fa x Marb ·20
y _ _ _ _ _ _.....,.
I-
z---------'----4
OR
Q . 1) Gi_ven the Boolean function F== xy'z + x 'y'z + w'xy + wx 'y + wxy
a) Obtam the truth table of the function .
b) ~raw _the gate structure using the original Boolean expression .
c) Simp_hfy the function to a minimum number of literals using Boolean algebra.
d) Obtam the truth table of the function from the simplified expression and show that it is the same as
the one in part (a)
e) Draw the gate structure from the simplified expression and compare the total number of gates with
the diagram of part (b) (2)
Q .2) Give an algorithmically designed Combinational circuit for 4-bit comparator. Also explain the
step involved in designing the algorithm . (3)
Q.3) Complete the design of the BCD-to-seven-segment decoder by performing the following steps.
(a) Plot the seven maps for the outputs ·
(b) Simplify the seven output functions in sum of products form , and determine the total number of
gates that will be needed to implement the decoder.
(c) Verify that the seven output functions give a valid simplification . Compare the number of gates
with that obtained in (b ). (3)
Q.4) Many offices and buildings use combination locks to control entry . As the design engineer of the
Wonderful Door Security Company, you are asked to implement a door security system by using a
card reader. There are four inputs to the card reader: inputs X, Y, and Z are used to validate the
correct door code, and input V is used to check if the card reader is still valid. After the card reader is
being read by the system, there are three outputs to this system : alarm (A), door open (D), and Error
(E). Door (D) will only open when the decimal value of the binary inputs (x, y, z) is odd AND the
card reader is valid. The Error (E) signal goes on when the code on the card is correct (i .e. decimal
value equal to odd) but the card is no longer valid. Finally, the alarm (A) will trigger when the code is
incorrect. Show your final design in canonical product of sum form. (3)
Q.5) Design a PLA as 4X4X2 to implement the following two Boolean functions . Minimize the
number of product terms. Show all your work, including the Kamaugh maps used in the minimization.
FI (A,B,C,D) = I(I , 3, 4, 5, 7, 13 , 15)
F2 (A ,8 ,C,D) = I(O, 2 , 3, 6, 7, 8, 10, 11 , 12, 14) (3 )
. th ..c. nee issues related to static interconnection networks. (3)
Q.6) Explam e penorma
Ut· f l ( I )
\Ill> "-I \ti , I rt{ t, \.\\H i\ \ f'IO'\ ' ' t' Jlft•mh t> t 20 1H)
t < l> I J U1u 1tnl ,ntti m l> c•,.lun t ,fnJ. \ HU I \ •ril u.,:
I IOH· t , •11
, Jl u u1,
\tl \jU«',thtn, r1u 1, t' tflhtl m urk .. . •\ '1'- llrnt· ,uaieuhlt- m i<i'i iO J;t tl11tit , if"" '
lI o ~hl ~I
) itkt<,'1111,lh hL'l\\1,•1.·11 lllt' t l1.d drl.t\ .,nd t1nn , p1111 d <.•l. 1) \\ Ith the heir ii ,lllt.ihk
, ~n,pt~
\ \ flll. .1 \ t H >I 1. t11.ll.' 1,,1 r..l h11 h1II ,\dJ1..·1 us111 g Cu: m:r..ill' ~!tilcment rn '-itrrn.. tural
tl h ,J\.'1111 11 •
I),·" Lu 1..· .11 1 11Het•c.:1 dt11:i t, pr t( 1 c1call..· .1 memor) u t i; l 2 l>vtc, with X n<l<lrc.,., ltnc
II l
H f)J l ,llld ( · 0 10--. \\hat ~u-1.. th l' v JIU~"
l,UL'P lt.'llt,
Ill , L'-2=5)
.... OD J11p-1lop l~ ~lll1! lar to <I l) 11 ir- t1or. L'XCL'pt !hat the ll1p-tl op t:J.n ch.mg...: :H,tt .:
1; ;)1 t,n hoth the ri si ng l'dge :i nd fal ling ed g.c of the cl0ck mrut l he 1l1p-tlr1r h..1"
J1rc~• fl''- l' I 111ptll R. •md R ·o· l\.'S Ct S the 111 r -fiop :( 1 l ) () tndl?N'nden. (1 t tt1 l'
,t'~" \ 1mJidrl :,. ,: has .1 J 1rl'L'.l set input. S. th~lt se ts; tile l11i~ t •1i' h · n.L.:; :n-.1 ..:::
the clock Write ~1 VI IDL descripti on of a DD ll ip-!lop.
1r tht lo ll<w.ing \ HD! (ode .. \ IL (.'&. I) :1 fl' htt st~n.,b th ,1t .m: (l ,lt ttm l' ..i11-., ,t
..:hang<:!- to I ell ll!Til' Sn~. ma.k l" a tahk shm\'111g th1..· \ ,d11l· ~ ( 1 1 \ . n. I...° 1.\ i) J., ..1
luncuon ot tllnc unt i l um c = l 8ns ( Include .\ dclt:1 ). lnd il'atL' th'-· times ,.It\\ h1,,:h c.t.. : L
;,rocc~~ heµ111~ cxec utmµ
1'1 1H·nu 1u ,\ l
heg1 n
II •• " 11f 1 ;, 1• ~ ,.,,.
II 11 ! tl•t '
!!'Id prou1u
11 p r o u,"
he g 1n
" ,
1
t nn ,
nut , \ t• r
und , ,r ♦ 1, ,. . ,
.',1/Jl \ ,>. of Puges: :! Roll No ..... .. .. .. .... .. .. ....
VII SEMESTER B.E. (ECE/CoE/ICE) I
I
/ :'10 TE : Assume and mention any missing data
I Attempt any four questions.
' Reduce F (Fig. l) using laws of Boolean Al gehra and implement the reduceq
expression usin g NANO gates only. [2+2]
C
A--D
A
F
8 - -,, _ . #
B~
C
Fig. I
✓r
X
z
Fig2
Mid-Term Examination
M. Tech (ESV), First Semester 2017
Digital System Design using HDLs
Paper Code: ESD07
1. A Mealy sequential circuit has two inputs and one output rf the total number of O's received is 2: 4 and at least
three pairs of inputs have occurred, then the output should be I coincident with the last input pair in the sequence.
Whenever a 1 output occurs, the circuit resets. Derive a state graph and state table . 5 Marks
2 . Desigr, the controJler in Fig. 1 using T flip-flops and logic gates where x and y are the inputs. Also draw the
. I ,
equ1va ent ASM chart for the same. 5 Marks
-x~ 0
Fig . 1
#5 a= b;
a= #5 b;
.:.
~e r-npt ail q u :->sfo
1 A
<:.: • ns. ssu rne ariy mi ss ing diJ ta suitably .
( '
- 1 . irn p lem d n't t he foll ow ing Boo lea n r·unc\lv n with a 4 X 1 rnullipl ex~ ( and extur~ii\ gat~s.
Fl (A, 8 , C, D) ;:) ~rn (1, 3, 4 , 11, 1-2, l3 , l4, 15 ). CCJ nnect inputs A and B t o the se.l ect l1ne::s .
. _.4. lso w _ri tc Ve rllog cude for the smn~ u~i!,g structural style of rnodc. lUng, l51
~ ·. .
l,_
.
J. 3. Jnip.lernen t a _rv1oore FSM (r\Jon•overlapping) for detecting a sequence 10001 . .1.
~. nd.also_
" -- ' ,vrite. .
1. .i) l:::,..phun how prupuyaticm dul<Jy of tut i11w rtc1 1.:uu bo wt ificd cxpe,1ihu.. htJ!ly. <1 J
b) Rl.!illi'l.c f(A,B,O) })u(O,1,2,5,6,7) using u h11z.u.r<l 1icc logic m.ttw.ark.
:,ct (iJ
l . Com·ert th(; Moure titUlt.1 dingnun l~ shown in lhi.; fi gu1i.: 1.,clow to u 1cuuc~-J \k~• l; .Adle
diugrum. Also drow tlu, state trwu,itlon tnblc for a DFF impk:mcnt,1tiun. (:S j
iJ
J. Llrnw the st.ate diagram for a sequen~c detector with output puttcrn ~s follu'.'. ~:
Input• 0 l OI 1 0 0 0 1 1 1 1 0 0 l OO1
0 1tput- 0 0 0·0 1 0 1 1 0 1 .1 1 0 1 0 0 1 0 (_5 )
-1. H.~Juce the fo llo wing ~tat~ table using purtition technique i:uul draw thi: reJu.;~1.i st,::.; di..:.~r:..in
(})
PS NS.Z
X=cO ---f X;.:; l ____
- -- ---- --- - - ·---
A B,l l l.l
I3 F,l D,1
C --D,O_ ~- 1.(!1-
_!?_.~ _c,L _____ y,t
E j J.1__ ____ C. l
F _.__ C,l ~'.1
U r·,l l) 1
I1,- - l c·.u -- A,1
~
8 .C. (COE)
(~
l\'11 D tH~M .I.LST.GH l,1;XAJv1lNNi11.0 N, /·k pL01nbot :w l r.,
CO!!: ·102: Dig-Hul (;ircuHv mal 8y1:J tcuw IJ
lintr' Ot ·;, u H uu n.1
I. Me.rger Orµph
2. Compatibility Graph
fi nd- 111e n11n1mal
· · mac.:hine nnd show lhe state table
PS NS,i
II T?
l- 13 14
A Ell
B c,o A, l D,O
C c,o D,l A,0
E,l B,~
B,O C, ~
Q~-- (a) Find the eqi.+ivulepce partitio11 and corresponding reduced machine in the st.:mdarJ
fonri. (4)
~~~ ~ i
PS .,
NS z II
X:::: 0 X:.::: 1
A F,O G,1
ll G,O A,1
.. - .. ··~·~. ~fi··
C 0,0 C11
D c,o ... ..
~
B,l..
.. - .,,_.
-: ~ J :s:.;n an overlapping 1v1oore Sequl'ncc detector \'. hidi dct~c,s tLL·se c:p.1~nc'--: l !OU ! 1. (:~)
' ' \
•
JO. (I( .. )
G l C, l D,1
I E 1C.Q l A 1_J
· \ ,.,n~ ..equence of pulse.-~ enters a 2-input 2-outpu _syncLmoous ~qLcnri.J cucu.r \Anlch h
x qrn red 10 prod ucc an output z= L wheneverthe sequence l 11 I 0<,·r m s. 0 lo"~ t,1J: pmg sequcncC"5
are accepted. For example, if the input is 0101111 1, th~ required output 1s ()(\){x)c,. 1 uesign th .:
"' ircuj t.
EC/CoE 402: Digital Circuits and Systems -,-II; IC-402: Digital Integrated Circuits-II
Max. Marks: 20
Time: 1-1/2 hrs
Note: Assume and mention any missing data. Attempt any four questions.
Ql : Modify a DFF to include an enable signal E. IfE is' I' then transfer the input I on the rising
edge of the clock signal to the output Q. IfE is '0' then retain the last value of Q. Use Moore
model of FSM to design the system. Ensure that the implementation does not have any static
~ &. ~
Q2: Obtain merger graph and find the set of maximal compatibles for the incompletely specified
machine given below. [5]
PS NS, Z
11 12
A E, 0 B,O
B F, O A, -
C E - C, 0
'
D F, 1 D, 0 .
E C, I C -
'
F D, - B, 0
Q3 : Find equivalence partition and a corresponding reduced machine in standard form . [5] ·
PS NS, Z
11 12
A E, O D, I
B F, O D, O
C E, O B, I
D F, O B, 0
E C, 0 F, 1
F B, 0 C, 0
Q4: Design and implement even parity generator using finite state mac h.me paradigm.
. · [5]
Q5 : Design a 4-bit binary to seven se~ment decoder to display the 4-bit n . .
number on two seven segment displays. Use a suitable PROM t . umber as 2-d1g1t octal
) ( _ _ _ _ __. o implement the design . [5]
f 11 laJ No P.a i~c(s)
11 f Roll No ...•....... .. ..
B.E. (ll)
A1teni p1 all questions. Assume 11ny missing data suitably. MAX MARKS: 20
(b) Perform the decimal subtraction in BCD by the 9's complement method (667.3),o - (882.5),o (2)
F= Lfll (0, l , 4, 5, 6, 13, 14, 15, 22, 24, 25, 28, 29, 30, 31). (4)
3 · A lawn sprinkling system is controlled automatically by certain combinations of the following variables.
4. Implement the following Boolean function with 4 x J multiplexer and external gates.
5. Using a decoder of suitable size and external gates, design the combinational circuit defined by the following
three Boolean functions: - (4)"'
(a) F = x'yz' + xz
(b) P = y'z' + x'y + yz'
.Hu.t- 1 t~rn1 t<.xa1111nat1011
\1. Tt\ch (SP), First Sen1ester 201 7
Digital S~·ste n1 Desi~n
Paper Code: SPD04
' l~lr lt'm~nr J u.nn·ersa l shift reg.ist.?r with the following function table using 4x 1 multiplexers and D flip-flops .
\\ nr~ d ve;--dog code fL"'f the implementation.
\
"tode control
so
I
S1 I Reeister operation
0 i 0 No change
0 l 1 Shift right
1 i 0 Shift left
1 I 1 Parallel load
'
7 Marks
.2 . Draw L1e state graphs for both Mealy and Moore sequence detectors in order to detect the sequence 10001
(o verlapp ing). Also implement the Mealy based sequence detector using D flip-flop and logic gates.
6 Marks
------ -