Digital System (Full PDF
Digital System (Full PDF
cONTENTS
KEC 302: Digital System Design
UNIT-1: LOGIC SIMPLIFICATION &COMBINATIONAL LOGIC DESIGN
(1-1 B to 1-32 B)
Binary codes, code conversion, review of Boolean algebra and
Demorgans theorem, SOP & POS forms, Canonical forms,
Karnaugh maps up to 6 variables, tabulation method.
UNIT-4 LOGIC
TIL NAND gate,
FAMILIES&MEMORIES (4-1 B to 4-32 B)
specifications, noise margin,
fan-in, fan-out, tristate TTL, ECL, CMOS propagation delay,
families and their
interfacing, memory elements, concept of
programmable logic
devices like FPGA, logic
devices.
implementation using programmable
UNIT-5 D/A AND A/D CONVERTER (5-1 B to 5-21 B)
Digital-to-Analog converters (DAC): Weighted resistor, R-2R ladder,
resistor string etc.
analog-to-digital converters (ADC): single slope,
dual slope, successive
circuits: Basic concept,
approximation, flash etc. Switched capacitor
practical configurations, application in
amplifier, integrator, ADC etc.
CONTENTS
Part-1 :
Binary Codes.. *****asse**ee*rn****************** 1-2Bto 1-3B
1-1B(EC-Sem-3)
1-2B (EC-Sem-3)
Logic Simplification & Combinational Logic Design
PART1
Binary Code.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
Code is the representation of group of symbols, words, or letters. As the
digital data is used as group of binary numbers, so, we call it as the
binary codes.
2. These binary codes are used for the designing and
analysis of digital
circuit, computer applications, in digital communication. The codes are
classified into certain following categories
Weighted codes
i Non-weighted codes
ii. Reflective codes
iv. Sequential codes
V. Alphanumeric codes
vi. Error detecting and correcting codes.
3 Since, all these codes use only 0 and 1, so it is easier to implement. The
binary codes can also be used for representing the numbers as well as
the alphanumeric letters.
The classification of codes can be composed in tabular form which is as
follows
Codes
5.
Weighted binary codes
the number to represent.
are those which obey the positional weight for
Answer
Excess-3 code
6 (in BCD) = 0110
+3 0011
1001
ii. BCD code: (6)10 = 0110 (in BCD)
0 1 0 1
Gray code = 0101
4-2,-1 1010
v. 2421 code:
624.21 1100
PART 2
Code Conversion.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
1-4B (EC-Sem-3) Logic Simplification & Combinational Logic Design
Answer
Truth table:
DCB A
B B,B,
0
1 0 0
0 0 0
0 1 0 0
0 0 0
0 0
1 0
1 0 0
1 0 0 0 0
1 0
1 0
K-map simplification:
00 01 11 10 BA 00 01 11 10
Oo/o
1 3 2 1 3
11 12 13 12 13 14
15 4
11 |15
1 10 10
10
DC +CB B, = DCB
B, =
Expression for B,
BA 00 01 11 10
DC
00
b
1112 13 15 14
9 11 10
10
B, =
DC + DB
Logicdiagram:
Binary code
BCD code
B, LSD
D
B
D
U B, MSD
ABCD 0
0 0
0
0
1
The maps in Fig. 14.1, are plotted to obtain simplified boolean functions
for the outputs.
2. A two-level logic diagram of each output may be obtained directly from
the boolean expressions derived from the maps.
For z For y
CD 00 01 11 10 CD 11 10
AB AB 00 01
001 0o
01 o1 1 6
11
11
10
z =D y CD + CD
For x For w
CD
CD 00 01 11 10 00 01 11 10
AB AB
00 00
o1 01
111
10
1o W = A+ BC + BD
x = BC + BD + BD
D
y = CD+ CD =CD + (C+ D)
x
=BC + BD BCD BC + D)+ BCD
B(C+ D) + B (C + D)
w =A + BC + BD =A +B(C + D)
The logic diagram that implements these expressions is shown in
Fig 1.4.2.
C D
B-
Fig. 1.4.2.
Answer
Truth table:
Excess-3code BCD code
E EE E B B B B
1 0 0 0)
0
0 0
0
0
The unused Excess-3 codes are 0000,0001, 0010, 1101, 1110 and 1111.
So place X (Don't Care condition) for the corresponding codes.
1-8B (EC-Sem-3) Logie Simplification & Combinational Logic Design
K-map simplification:
Expression for B Expression for B,
01 11 10 E,o 0o01 0
3 3
00
01
11 12 13 15
B Eg B, E, Eg+ E, Eg =E, E
Expression for B, Expression for B
E o0 01 11 10
o 00
01 11 10
E20
JO
3
Eo
O1
1112 13 11 12 13 15 14
1110
10
B E, E +E, E, Eg . E, E, Eo B E E+E,E, Eo
Logicdiagram:
-Bo
B,
Fig. 1.5.1.
Digital System Design 1-9B (EC-Sem-3)
DC B A
GG G Go
0 0 0 0 0 0
0 0
0 0
0
0
K-map simplification :
1112 3 15 14
10 |11 10
G =BA + BA = B A
G = CB+CB =C ® B
1-10 B (EC-Sem-3) Logic Simplification & Combinational Logic Design
13
1112 14
112 13 15 14
11 10 11 10
G2 DC + DC =C ®D Gg = D
We get the simplified boolean expression for the code converter of Binary
to Gray code.
G = BA+ BA B9 A
G, CB+ CB = C B
G = DC+ DC =COD
G, = D
Logic diagram:
D C B
ABinarycode
Answer
Gray code to binary code converter :
Gray code Binary code
G G, G C
0 0
0 0
0 0
0 0
0
0
K-map simplification
ForrA or
G 00 01 11 10 00 01 11 10
C i2
i.
Logicdiagram:
Using XOR gates :
G, G,9 Go A
9G = B
C-G
Fig 1.7.1.
1-12 B (EC-Sem-3) Logic Simplification & Combinational Logic Design
GG,GG,G,G, G,6,GG,6,G
A=G,G.G,+ G,G,G,+GG,G,+G,GG,
Go
,
G,
-C - G2
Fig. 1.7.2.
PART-33
Review of Boolean Algebra and Demorgan's Theorem: SOP and
POS Forms, Canonical Forms.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer 1
First De Morgan theorem : It states, complement of two or more
variables and then AND operation on these is equivalent to NOR
variables OR).
A, + A, = A A
Second De Morgan theorem: It states that complement of two or
is equivalent to NAND
more variables and then OR operation on these a
variables AND).
A, A, A, = A,+ A, + A
Digital System Design 1-13 B (EC-Sem-3)
Answer
Fw, x, y, 2) = yz +wxz + w xyz + wyz
=2 (y +wy) + wz (x +xy)
=
(y+w) + wz (x+y) :A+ AB- A +B]
=
y2 +wz + Wrz +wyz
= yz + wyz + wz +wxz
z (y+ uy) + z
=
(w+ wx)
= (y + ) + (w + )
= (y + k+w + )
= z(y+1+7)
I 1+A =
1]
= 7 +1) A
: 1+ =1
Answer
Given, YA, B, C, D) = ABCD+ ABCD = ABDC+ )
8ince, C+C 1
YA, B, C, D) = ABD
Que 1.11.| Express the following boolea. funetion F in a sum of
and product of maxterms.
mintermsFa, a
y, 2) = (ay + z) (y + xz)
Answer
Given Px, y, 2) = (ry + z) (y+ xz)
+ X.Xy2 + y2 + xz.2
Xyy
2. By ass0ciative property, xx =x
1-14B (EC-Sem-3) Logic Simplification & Combinational Logic Design
m y + Xy2 + y2 + xz = xy(z + z ) + xyz + (x + X yz + xz(y+ y)
= C+A+AB
= C+ A(1 +B)
= A+
= Xy + 2 + Xy + wz
xy +Xy +2 (1 + W)
=
Xy +xy +2 =x
Oy+2 : 1 +w = 11
Que 1.13.| Convert the given expression into canonical SOP form
Y A
+AB +BC
Answer
Y= (A+B+CXA
+B+CXA + B+ CXA +B+C)
PART-4
Karnaugh Maps Upto 6 Variables.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
Karnaugh map is another way of presenting the information given by a
truth table. These maps are also known by the name K-map. Let us
consider the map for two variables. There may be four
possible
combinations within four squares
2 Each square represents unique minterms as shown in Fig. 1.15.1
B
B B
A
A AB AB DO 01
OR
AB AB 10 11
Fig 1.16.1.
For three variables:
There are eight minterms for three binary variables. Hence the
k-map
consists of eight squares.
1-16B (EC-Sem-3) Logic Simplification & Combinational Logie Design
2 The R-map drawn in Fig. 1.15.2, for three variables is marked with
numbers in each row and each column to show the relationship between
the squares and the three variables.
3C
BCBC BC BC A00 01 11 10
mo ma m2 0 000 001 011 010
OR 2
A mms m7 1
100 101| 111|
5 7 1106
Fig 115.2
3. For example, the square assigned to m, which corresponds to row
and column 01. When these two numbers reconsidered, they give the
binary number 101, whose decimal equivalent is 5.
For four variables
1. The map for boolean function of four binary variables require sixteen
minterms, hence the map consists of sixteen squares.
The listed terms are from 0 to 15, i.e., 16 minterms. The map shows the
relationship with the four variables.
3. In every square the numbers are written. The number
denotes that
this square corresponds to that number's minterm.
AB CD CD CD CD CD
AB00 01 11 10
2 The minterms of F are the variable combinations that make the function
equal to 1. The minterms of d are the don't care minterms that may be
either 0 or 1.
3 The K-map simplification is shown in Fig. 1.16.1.
W 01 11 wX 00 1 11 10
o
01 .
F= yz
+WX F = yz + Wz
a) (b)
Fig. 1.16.1
The minterms of F are marked by 1's, those of d are marked by x's and
the remaining is filled with 0's.
To get the simplified expressionin SOP form, we must include all five 1s
in the map, but we may or may not include any of the x's, depending on
the way the function is simplified.
6. In Fig. 1.16.1(a), don't care minterms 0 and 2 are included with the l's,
resulting as
F= yz + wx
7. In Fig. 1.16.1(b), don't care minterm 5 is included with the 1's, resulting
as
F= yz + Wz
8. The K-map in Fig. 1.16.1(b) is more feasible because, we have to use the
minimum don't care.
Answer
i. ABC+ ABD+ BCD
1. Let Y= ABC+ ABD BCD
=
A+BO 0| 0
A+B 0
A+B 13
12|
A+ B
Fig. 1.17.1
Y =
(A + B) A + CMC + D) (B + D)
Fig. 1.17.2
Y = (A + D) (A + C)(B +C + D)
Digital System Design 1-19B (EC-Sem-3)
DO
01 11 10
Fig. 1.18.1.
2. Hence, the simplified function is
F z+y + xy
3. Implementation using NAND gates is shown in Fig. 1.18.2.
F= (r+ ). (7+ y).E)
= 2+*y+R.y
xy =x +
-xy =X +y
Fig. 1.18.2.
00
01
15 7
13
Fig 1.19.1.
Y= BD+BC+ ACD
3. NAND gate implementation:
D-D ACD
Fig. 1.19.2.
AKTU 2018-19,
Marks07
Answer
CD
AB CD CD CD CD
AB
AB
AB
AB
Fig. 1.20.1.
AB
CDE 000 001 011 010 110 111 101 100
01
1 27 31
10
14 30 22 18
Fig. 1.21.1
Y= DEAB CDB+ ACDE +CAB +DB +CDB+CDE CDA
DBEA+ CA)+ CB+ D) +DE(A
+
=
A)
=
DBEA +
CA) + B+ Ë)+ DE(A ®C)+CDB + DA)
Que 1.22. Simplify the Boolean function
FA, B, C, D, E, F) =
Em(0, 5, 7, 8,9, 12, 13, 23, 24, 25, 28, 29, 37, 40, 42, 44,
46, 55, 56, 57, 60, 61)
Answer
Group 1 and group 2 are two pairs of l's in the first 16-cell map.
2. Group 3 is formed by two isolated 1's from first 16-cell map and third
16-cell map.
3 Group 4 is a combination of two quads from first 16-cell and second
16-cell mapP
Similarly group 5 is a combination of two quads from second 16-cell map
and fourth 16-cell
map.
5 Group 6 is again a combination is isolated l's from second and fourth
16-cell maps
6. Finally group 7 is a quad within the third 16-cell map
1-22 B (EC.Sem-3) Logic Simplification & Combinational Logic Design
Group 2
AB JABCDF) AB
cD00 01 1110 cDEF0001 1110
ooui 00
17 19 18
01
Group 1
O 01
20 21 231
Questions-Answers
Answer
The K-map method is suitable for simplification of boolean function
upto 5 or 6 variables
2,3 001 2, 3, 6, 7 0 1
0010 2, 010
2, 10 010
1000 8, 10 10 0
, 12 100
10 1010 12,13 1 10
m2 1100
3 0111
m 1101
1-24 B (EC.Sem-3) Logic Simplification & Combinational Logic Design
All the terms which remain unchecked are the PI's. Now prepare a PI
9
chart to determine essential prime implicants
10. All the Pl's are represented in rows and each minterm of function in a
column as shown in Table 1.23.2.
11. Put the O in each row to show the composition of minterms that make
PT's.
Table 1.23.2.
Prime
Minterms| implicant|m m2g s1o a 3
ACD , 12
ABC 12, 13
BD 0, 2, 8, 100
AC 2, 3, 6, 7
13. The column that contains a single dot O is essential prime implicant.
14. A tick mark is put above each column which has only one O mark.
15. The sum of all EPI's gives the function in its minimal SOP form.
FA, B, C, D) = ABC + BD + AC
Answer
Table 1.24.1. For obtaining all the prime implicants.
Mintermm, m m, m, m, 7 m
A
F
G
mo 1010 |
5,7 011_1
m2 1100 5, 13 101
3 0111
12,13110
m3 1101
9,13 1_01
1111 7, 15* 111
13, 15 11-1
2. Then, we
prepare the table of prime implicants.
Prime
Minterm | implicant m m m m,
WXZ D,,2
XYZ 2 ,10
WXY 12, 13
WYZ 9 ', 13
WY 2,3,6,7
XZ 5,7, 13, 15*| O
F(W, X, Y, Z) = WY + XZ + WXZ XYZ WXY
Digital System Design 1-27 B (EC-Sem-3)
BCD , 15
8,9, 10, 11
AB
oooo
AC 10, 11, 14, 15
olo oo
Therefore, FA, B, C, D) =AC+ AB ABD
1-28 B (EC-Sem-3) Logic Simplification & Combinational Logic Design
3. Logic diagram:
Fig. 126.1.
Answer
1. Given, FA, B, C, D) = Xm(0, 1, 4, 5, 6, 7,9, 11, 15) + Xo(10, 14)
m 1001 4,6 01
dm o 1010 ,7 011
Mintermns Prime
o m,| m mu
implicants
A'C' 0, 1,4,5
BC 6, 14*,7, 15
B'C"D 1,9
AB'C 9,11
ABC 10,11
ACD 11,15
ABC 14*, 15
FA, B, C, D) = AC
A-DA
Fig. 1.27.1.
FA, B, C, D) = Zin(0, 1,9, 15, 24, 29, 30) + E d(8, 11, 31)
Answer |
Table 1.28.1.
No. Min-
of terms
Binary Minterms Binary Min- Binary
(2 eell) terms
's 4 cell)
ABcDE A BcDE ABCDE
mo00000 0,1 0o 0 0-0,1,8*90 0 0 -
m 0 01 0,8*
dm 10 olo 1,9 0-00 1
g
o 1oo1 8,9 0
m m24 olo|o824-oo
30,,31
0, 1,8,9
3. Select the minimum number of
the minterms except don't care
prime implicants which must cover all
minterms.
1-31 B (EC-Sem-3)
Digital System Design
Table 1.28.3.
Mintermn
Primeimplicant
9 15 24 29 30
24
9,111*
11*, 15 O
15, 31*
29,31*
30,31
0, 1,8,9
UNIVERSITY EXAMINATION.
i. AC +ABC+ AC + AB
ii. ( y + z)+z+ *y+ wz
Ana Refer Q. 1.12, Page 1-14B, Unit-1.
CONTENTS
Part-1 MSI Devices Like Comparators.. 2-2B to 24B
Part.4:Decoder . . . *********************************.
.2-14B to 2-19B
2-1 B (EC-Sem-3)
2-2B (EC-Sem-3) MSI Devices
PART-1
MSI Devices Like Comparators
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
1. Amagnitude comparator is a combinational circuit designed primarily
to compare the relative magnitude of the two binary numbers A and B.
2 Naturally, the result of this comparison is specified by three binary
variables that indicate, whether A> B, A = B or A <B.
Inputs Magnitude
Comparator A <B
Fig 211
4. EX-OR and AND gate is used to implement the circuit. If the
EX-OR gate and two AND gates are combined, the circuit will function
as a single bit magnitude comparator as shown in Fig. 2.1.2.
5. The cirecuit diagram and truth table of a single bit magnitude comparator
is shown in Fig. 2.1.2.
Inputs Outputs
AB Z 2Z2
A 0
-2 1 0 0
Fig. 2.1
Ag
A < B)
B2D D
A
Bi D A > B)
Ao D1
(A B)
Answer
1 Let two numbers A and B with four digits each.
A A,A,A,A
B B,B, B,B,
The two numbers are equal if all pairs ofsignificant digits are equal
2 ie., ifA, = B,A= B, A, =B, and A, =B, Equality relation is generated
by EX-NOR gate.
x, AB+ AB,; i = 0, 1, 2, 3.
where x, is equality of two numbers
x= 1, if A B
=
x = 0, otherwise,
A =B) = xzp,= 1, if all pairs are equal.
3. To determine if A> B or A < B,
B3
A
B2
A A<B)
B
Ao
AB)
BoA
D- -(A = B)
PART-2
Multiplexers8
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
1. A multiplexer (MUX) is a combinational circuit that selects one input
out of several inputs and directs it to a single output.
n
-Y 4:1
MUX
MUX
S, S Sm
(a) n: 1 MUX (6)4:1 MUX
Fig 2.3.1
4 Por selecting one input out ofn inputs, a set of m select inputs is
required where, n = 2
5. On the basis of binary code applied at the select inputs, one output of
n data source is selected. An enable input (E') is built-in for cascading
purpose. Enable input is generally active low.
6 A circuit diagram for a possible 4: 1 data multiplexer as shown in
Fig. 2.3.1(b).
Answer
Given. FA, B, C)= ABC+ AB + ABC + ABC
2. Implementation using 4: 1 MUX, FA,B, C) = Em(1, 2, 4, 7)
Input I,21
A O 3 MUX
AO6
Output to A A' A' A
A'
A
multiplexer C
Fig 2.4.1.
8 x1
MUX
2x1
MUX
Ss
8x1
0-
3 MUX
F .6.1
Que 2.6. Design the following boolean function using 4 x 1
Answer
Given, F (A, B, C, D) = E mi0, 1, 3, 4, 8, 9, 15)
2 We have to design it using 4: 1 multiplexer, so we can use two variable
(A, B) for select lines and implementation table is as follows:
2
CD 12
CD 5 13
CD 2 10
14
CD 3 7 11
CD
3. Now,. CD+CD+ CD =+D
I= CD
4. Logic diagram is shown in Fig. 2.6.1
C-
D-
D 4x1
MUX
-F(A, B, C, D)
PA,B,C, D) = Z
m(0,3,5, 6, 8,9, 14, 15).
Answer
FA, B, C, D) = E m(0, 3, 5, 6, 8, 9, 14, 15)
2-8B (EC-Sem-3) MSI Devices
Do
D
D2
8:1
MUX
DD,D, D, D,D, D, D,
Ps
D
OO 101 12 13
1 A 0 A0 A 1 A
BCD
(a) Implementation table (6) Multiplexer implement..tion
Fig. 2.7.1
Que 2.8. Implement the function F =Em(0, 1, 3, 4, 7, 8,9, 11, 14, 15)
using 8:1 mux. AKTU 2017-18, Marks07
Answer
1. The given Boolean function is a four variable function. Any one variable
of the function can be taken as input to the MUX and the remaining
variables are connected to the selection lines.
Decimal A D
0
9 0
14
15
Digital System Design 2-9B (EC-Sem-3)
2 A is assumed to be MUX input and B,C, D are used as selection lines.
Implementationtable
5 6
A
1 0 12 13
1 1 AO A 1
Logic diagram:
Logic 1
Logic0
81
MUX
F(A, B, C, D)
BC D
Fig. 2.8.1.
Answer
4:1 MUX:
Implementation table :
AB AB AB AB
(00) C O 0 12
(01)CDO 5 13
(10)
CD 2 6
1019
= +D
Second column , )
= CD+ CD =C O D Ex-NOR)
= D+ D)+ CD
C+CD = C+D
Fourth column , )
= CD+CD
CD + D) =C
Logic diagram :
T T|
DH 4:1
-FA, B, C, D)
MUX
Select
A B lines
Fig. 2.8.1.
Implementation table:
o
ABC
ABC 2 3
ABC
ABC 6
ABC
ABC 10
12 13
ABC
ABC
First column ,)
B o
2
MUX FA, B, C, D)
C
Select line
D
Fig. 2.9.2.
2-12 B (ECSem-3) MSI Devices
PART-3
Encoder
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
Encoder:
The encoder is another example ofcombinational circuit that performs
the inverse operation of a decoder. It is designed to generate a different
output code for an input which becomes active.
2 In an encoder, the number of outputs is less than the number of
inputs. There are 2" input lines and n output lines.
3. The block diagram ofan encoder is shown in Fig. 2.10.1.
2
inputs Encoder
outputs
Fig. 2.10.1
D,D3 For 1
DD3 ForYo
D,D 00 01 11 10
D,D00 1 11 10
00 o
01 01
11
10
9 11 10 9 10
Y = D2+ D3
Yo Dg+ D,D,
DD For V
00 01 11 10
D,D
00
01
11
12 15 14
10
V-
D+D+ D,+ D
Fig 2.11.1,
2-14 B (EC-Sem-3) MSI Devices
Logicdiagram:
D D2 D, D
Fig. 2.11.2.
PART-44|
Decoder.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
1. A decoder is a combinational circuit that converts binary information
from n input lines to a maximum of 2" unique output
lines
2. If the n-bit coded information has unused combinations, the decoder
may have fewer than 2" outputs.
The decoders presented here are calledn to m line decoders, where
m
s2". Their purpose is to generate the 2" (or fewer) minterms of n
input variables.
n input lines
n:2 m output lines
decoder m = 2n
Enable
Pig. 212.1.Block diagram ofadecoder
Digital System Design 2-15B (EC-Sem-3)
2 to 4 binary decoder:
Fig. 2.12.2shows the 2 to 4 decoder. Here 2 represent the input lines and
4 represents output lines. Fig. 2.12.2 shows the truth table for a
2to 4 decoder. Ifenable (E) is 1, one and only one of the outputs Y, to Y,
is active for the given input.
A B Enable
Inputs Outputs | E
EABY,Y,Y,Y
X0 0 0 0
o o0o1 Yo
101 o 0 1o Y
1 1 0 010
1 1 110 0 Y3
Fig. 2.12.2. Logic diagram of 2 to 4 decoder.
3: 8
Decoder Y
0 0
0 0 0
0
Circuit using NOR gate :
B Y (A + B + E) =
Y =(A +
B +) =
) ABE
-Y ( B+ =
Y +) =
A BE
E- Fig. 2.14.1.
Que 2.15. Design a full subtractor circuit with a decoder and two
OR gates.
Answer
Full subtractor using decoder:
Input Output
B C
B
Difference D m1, 2, 4, 7)
Borrow B, =
2m(1, 2, 3, 7)
Digital System Design 2-17B (EC-Sem-3)
3:8
Decoder
C-
B
Fig.2.15.1. Full subtractor using 3:8 decoder.
0 00
01 01
11
10 10
a =A +C+BD+ BD B
b CD CD
2-18 B (EC-Sem-3) MSI Devices
For c For d
CD CD
00 01 11 10 01 11 10
AB AB
00 00
01 1
11 1
10 10
C B + C + D d BD + CD + BCD +BC + A
For e For f
CD CD
00 01 11 10 00 01 11 10
AB AB
00 00
01
11
0111 /1
00
01
1o
g AB C+ BC +C D
Pig. 2.16.1.
3. Fig. 2.16.2 shows the logic diagram of BCD to 7 segment display decoder.
Digital System Design 2-19B (EC-Sem-3)
A B
R
BD
BD
CD
CD
BCD
BC
BC
-f
Fig. 2.16.2,
PART-5
Driver and Multiplexed Display.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
4. The trick is that if the displays are strobed suficiently rapidly (say a few
on all
hundred times a second) the eye is deceived into thinking they are
the time, just like a television set.
of
The advantages of multiplexed displays are as follows: only
one set
5.
connections need to
current-limiting resistors is required, fewer wiring
be made and power consumption is less since only one seven-segment
330
Multiplex
driver
B
IA lit
Blit
IC lit
PART 6J
Halfand Full Adders
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Digital System Design 2-21 B (EC-Sem-3)
Que 2.18.| Describe half adder and full adder in brief. Implement
the circuit using logic gates.
OR
Design a full adder using two half adders.
Answer
Half adder:
1. The block diagram of half adder is shown in Fig. 2.18.1.
B- Half Adder
Fig. 2.18.1. Half adder.
where, A and B are the inputs and S and C are the outputs sum and
carry respectively.
2. The truth table and K-map of the system are shown in Fig. 2.18.2.
Input Output B
For S B For C
A B S C A 0 0
0
0 1
0
Fig.2.18.2
3. Using two-variable K-map, separately for the sum and carry.
S AB+ AB =A ®B
AB
4. The circuit be
can
implemented using XOR gate.
D-s
D-c
Fig. 2.18.3.
Full adder:
Full adder is circuit that performs the addition of three binary
a
has three inputs A, B and C with two
digits. It
output S and C,, where C is the
previous carry. The block diagram is shown in Fig. 2.18.4.
S
B Full Adder
C
Fig. 2.18.4. Pull Adder
If there are three
input variables the combinations are eight (2" =
8).
Now form the truth table of the full
adder
2-22 B (EC-Sem-3) MSI Devices
Inputs Outputs
B C S C
0
For S For (
BC
A 00 0111 10 00 01 11 10
Fig. 2.18.5.
Carry C AB +AC + BC
AB +C A + B)
= AB+C A+ B)(A+ A)(B + B)
= AB+ClAB+ AB+ AB]
= AB+ ABC +C(AB+ AB)
AB(1+ C)+CA ® B)
= AB+C A DB)
Hulf adder
Answer
1. Canonical form of sum and carry for full adder
Sum E m(1, 2, 4, 7) = BCA + BCA+ BCA +BCA
For sum:
4:1 Sum
MUX
A A A A B C
MUX implementation for sum
Implementation table
Fig. 2.19.1
For carry:
I1 4:1ECarry
O 2 a MUX
0 A A
Implementation table MUX implementation for carry
Fig-2.19.2.
PART-7
Subtractors
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
1. The block diagram is shown in Fig. 2.20. 1.
A-
Half subtractor
B- Bo
Fig, 2.20.1. Halfsubtractor
2-24 B (EC-Sem-3) MSI Devices
Inputs Outputs A 0 A 0
A BD B
0 0
0 1
D ABA'B =A ® B B. A'B
Pig 9.20.2
4. The logical implementation using basic logic gates and XOR gate
D
XOR gate
implementation
-B,
Pig 220.8.
Inputs Outputs
Diff
4. Using the concept of K-map, reduce the truth table to a function (algebraic
or boolean).
yB,
01 11 10 00 01 11 10
--.
-Bout
Fig. 2.213. Full subtractor cireuit using 2 half subtractor.
2-26 B (EC-Sem-3) MSI Devices
A®Be B, =
(A ® BXA ®BB, B,(A ® B)B,
BAAB+
out
B,(A ® B) = AB+ B,(A ® B)
Bi n
4
The stored output carry from
for the next pair of bits.
one pair of bits is used as an input carry
. The parallel method usesn full-adder circuits, and all bits of A and B
are applied simultaneously.
6. A binary parallel adder is a digital function that produces the arithmetic
sum of two binary numbers in parallel.
7. It consists of full-adders connected in cascade, with the output carry
from one full-adder connected to the input carry of the next full-adder.
FA FA 3 FA FA
S Sa S
Fig.2.23.1.4bit full adde
PART-9
BCD Adder.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Que 2.24.| Draw a BCD adder circuit and explain its working.
OR
AKTU 3013-10, Mlarka07
Draw a decimal adder to add BCD number.
AKTU9017-18,Marke 07
Answer
1. BCD adder is circuit that adds two BCD digits in parallel and produces a
Bum digit which is also BCD. BCD numbers use 10 symbols (group of
4 bits 0000 to 1001). BCD adder circuit must be able to do the following
and it is shown in Fig. 2.24.1
Add two 4-bit BCD numbers using straight binary addition.
MSI Devices
2-28 B (EC-Sem-3)
no correction is needed.
is generated from the sum,
Ifthe 4-bit is greater than 9 or ifa carry
sum
should be added
invalid BCD number. Then the digit 6 (0110),
the s u m is
Output
carry
C K+ Zg Z4+ Zg2
S, S, S, S
Fig. 2.24.1. Block diagram of a BCD adder
Z cs5,, S
0 0 0
1 0 0
0 0
1 0
0 0
0
1
0 0 0
0 0 0 9
10
11
PART 10
Barrel Shifter and ALU.
Digital System Design 2-29 B (EC-Sem-3)
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Preshift
Y YY Y
(a) (b)
A A left
T*
sign Mask arithmetic
shift
(c)
Fig. 2.26.
2-30 B (EC-Sem-3) MSI Devices
Fig 2.25. 1(a) shows a simple-4 bits barrel shifter that perfor ms right
rotations. How, unlike funnel shifters, barrei shifters contain long
Wrap-around wires.
In a large shifter, it is beneficial to upsize or buffer the drivers for
these wires. Fig. 2.25.1(b), shows an enhanced version that can rotate
left by prerotating right by 1, then rotating right by k .
6 Performing logical or arithmetic shifts on a barrel shifter requires a
way to mask out the bits that are rotated off the end of the shifter, as
shown in Fig. 2.25. 1(c).
Answer
An Arithmetic Logic Unit (ALU) is a multioperat ion, combinational
logic digital function.
It can perform a set of basic arithmetic operations and a set of logic
operations. The ALU has a number of selection lines to select a
partieuBar operation-in the unit.
3 The selection lines are decoded within the ALU so that k selection
variables can specify up to 2" distinct operations.
4 Fig. 2.26. 1 shows the block diagram of a 4-bit ALU.
5. The four data inputs from A are combined with the four inputs from BB
to generate an operation at the F output.
6 The mode-select input s, distinguishes between arithmetic and logic
operations.
7 The two function-select inputs s, and s, specify the particular arithmetic
or logic operation to be generated. With three selection variables, it is
possible to specify four arithmetic operations (with s, in one state) and
four logic s, the other state).
operations (with in
8 The input and output carries have meaning only during an arithmetic
operation.
9. The inputcarry in the least significant position of an ALU is quite often
used as fourth selection variable that can double the number of
arithmetic operations. In this way, it is possible to generate four more
operations, for a total of eight arithmetic operations.
A, A A A B, B, B, B, -B (Mode-select)
Arithmetie logic unit
Cout Funetion-selecth
(ALU)
(Output carry
F, F,F, F -C nput carry
Fig. 2.26.1.
Digital System Design 2-31 B (Ec-Sem-3)
Ans
F *'yz' *z, F, ay'zr yz', F,=*'y? +*y
= + =
Q.5. Draw the logic diagram ofa two to four line decoder using
NOR gates only.
Ans. Refer Q. 2.14, Page 2-16B, Unit-2.
Q6. Implement the following Boolean function.
PA, B, C,D) = Z(0, 1,3, 4,7,8,9, 11, 14, 15)
i. 4:1 MUX
ii. 2:1 MUX
Ans Refer Q 2.9, Page 2-9B, Unit-2.
Q7. Design a full adder using two half adders.
AM ReferQ.2.18, Page 2-21B, Unit:2.
Q8. Design a full subtractor eircuit with three inputs x, y, B,
and two outputs Diff and B The circuit subtracts
x-y -B where, B, is the input borrow, B is the output
borrow and Diff is the difference.
Ana Refer Q. 2.21, Page 2-24B, Unit-2.
Q.9. Draw a BCD adder circuit and explain its working.
A& Refer Q. 2.24, Page 2-27B, Unit-2.
Q10. Draw a full subtractor circuit using NAND gate.
Ans Refer Q. 2.22, Page 2-26B, Unit-2.
3
UNIT
Sequential Logic
Design
CONTENTS
Part-1 Building Block Like S-R Flip Flop.. 3-2B to 3-3B
3-1B (EC-Sem-3)
3-2B (EC-Sem-3) Sequential Logic Design
PART 1
Building Block Like S-R Flip Flop.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
Flip-flops:
Flip-flops are binary cells capable of storing one bit of information. A
one for
flip-flop circuit has two outputs, one for the normal value and
the complement value of the bit stored in it.
SR flip-flop:
The circuit diagram and truth table of SR flip-flop are shown in
Input Output
s R
DT-9 0 (Hold)
CLK -
0 (Reset)
0 (Set)
(Invalid)
Que 3.2. Write the difference bet ween latches and flip-nops.
3-3 B (EC-Sem-3)
Digital System Design
Answer
PART-2
Jkand Master Slave JK FF.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
1. The circuit diagram and truth table of JK 1 -flop is shown in
Fig. 3.3.1.
K a 1
No change
ie. 9,
Reset
CLK
Set
Togsle
Fig. 3.3.1.JKip-op
3-4B (EC-Sem-3) Sequential Logic Design
2. The previous problem that S =R = l is invalid in SR flip-flop has been
overcome by JK flip-flop.
The working of JK flip-flop is similar to SR flip-flop except that when
J=K=1, the output exists, i.e., when J=K=1, the output is 1 when its
previous output is 0 and 0 if its previous output is 1.
The condition J = K = 1 causes a major problem, i.e., race-around
condition. Consider J=K=1 and Q =0 and a pulse is applied at CLK
input.
After a time interval At equal to propagation delay through two NAND
gates in series. The output will oscillate between 0 and1.
6 At the end of CLK the output is uncertain and the condition is
race-around condition. There are two methods to avoid race-around
condition by using
a. Master Slave JKflip-flop.
b. Edge-triggered fip-lop.
Answer
1. Master-slave combination can be constructed for any type of
adding a gated SR flip-flop. Fig.
flip-flop by
3.4.1 explains the master-slave
of JK flip-flop.
operation
Master Slave
Set ( J -
Clock JDSM JK D SR
pulse.
C Flip-flop Flip-flop
Reset (K)
0 1 Set
Clear (Reset)
1 Toggle state
Let both inputs J and K are 1. Previous outputs of master and slave
flip-flops are y =0 and , =0, respectively.
6. During high level clock pulse, information is transmitted to master
flip-flop because C. 1 for master and slave flip-flop holds previous
0. So output of master flip-flop 1 and
output because C, are
master flip-flop.
information is transmitted to slave flip-flop
9. During low level clock pulse, Slave flip-flop copies master's
and master flip-flop holds previous output.
around situation is avoided.
output. Hence, race
PART-3
Edge Triggered FF
Questions-Answers
Clock pulse-
Data (D)
PART-4
State Diagram, State Reduction, Design of
Sequential Circuits.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Bt+1)= A(t)x(t)
3. The present state value of the output can be expressed algebraically
yt) = [A(t) + B(0)] x(t)
4. By removing the symbol (t) for the present state, we obtain the output
boolean equation :
y = (A + B)x
State table:
The time sequence of inputs and flip-flop states can be enumerated in a
statetable (sometimes called a transition table). The state table for the
circuit of Fig. 3.6.1 is shown in Table 3.6.1.
2. The Table 3.6.1 consists of four sections labeled present state, input,
next state, and output. The present state section shows the states of
flip-flops A and B at any given time t.
3. The input section gives a value ofx for each possible present state. The
next state section shows the states of the flip-flops one clock cycle later,
attime (t+1).
4. The output section gives the value of y at time t for each present state
and input condition.
5. The next state of flip-flop A must satisfy the state equation
At + 1) = Ax + Bx
Table 3.6.1
Present state Input Next state Output
A B A B
Present state
Nextstate Output
0 * 0
0
AB 0
1 1
0 0 0 0
0
o/0 0/1
(00 (10)
O/1
1/0 0/1 1/0
1/0
Que 3.7, Design the clocked sequential eireuit for the following
state diagram using JK nip-lop.
00
(10
Fig 3.7.1.
Answer
The state table for the given state diagram is (Moore model):
0 0
0 0
0
0
0 1
1
1
J = X Qo K = x Qo
For J For K
Q1o
00 01 11 10 01 11 10
00
of
Fig. 3.7.2. K =x Q1+xQ
The boolean expressions for J , K, and K, are:
3-10B (EC-Sem-3) Sequential Logic Design
K, = xQ,
CLK
Jo
Fig. 3.7.3.
Que 3.8. Derive the state table and state diagram for the
sequential circuit shown in Fig. 3.8.1.
CLK
B
Fig. 3.8.1.
For fip-flopA: J, =B
For flip-lop B: J, =
K, =
A Dr
Digital System Design 3-11 B (EC-Sem-3)
For output y: y = A B
A J+KQ,
4. State equation for flip-flop A:
A BA +(Bx) A (Q =A)
= BA+ AB + x)
= B AB+ xA
An (A DB)+ xA
5 State equation for flip-flop B:
B TB+ (A x)B ( : , BB)
= TB+ (Ar + A7) B
B B+ AxB +ArB
State table:
Presen tat Next state Output
|*«0 *=11
AB AB AB
00 01 0
01 10
10 11 10
11 00
State diagram:
D0- State
Output
10
Fig. 8.8.2.
o/0/ 0/0
1/0 1/0
0/0
1/1
O/0
Fig. 3.9.1.
State table:
Present state Next state Output
-0 1 0 x=1
C 0 0
Both are 1
equivalent
states
3. From the reduced table, states d and fare equivalent, hence fcan be
Reduced table:
Present State Next state Output
a=0 = 1 = 0 =1
0 0
d d 1
d
The state diagram of the reduced state table is shown in Fig. 3.9.2.
.
3-14B (EC-Sem-3)
Sequential Logic Design
O/0 o
10
oo O/0
1/0
1/1
1/0
P B
QB B
Cp
Fig. 8.10.1
Answer
00 1
0 1 0 1
Digital System Design 3-15B (EC-Sem-3)
0/1 o/1
01
1/0
Fig. 3.10.2
Que 3.11 Derive the etate table and state diagram of the
synchronous sequential circuit shown below (X is aninputto the
cireuit). Explain the circuit function. AKTU 2017-18, Marks 07
B
x CLK
B
D
CLK CLK
Fig. 3.11.11
Answer
1. From the circuit shown in Fig. 3.11.1, the output equation can be
obtained as,
At + 1) = (BX + BX)+ A
B(t +1) = (AX + AX) + B
1
1 0
0
1
3-16B (EC-Sem-3) Sequential Logic Design
3. State diagram
10
Fig. 3.112.
PART-S
Ripple and Synchronous Counters.
Questions-Answers
Long Answer 1ype and Medium Answer Type Questions
CLK H
f.© DFET
Answer
1. The operation of the counter is summarized in Table 3.13.1. The four
control inputs-Clear, CLK, load, and count, determine the next state.
The clear input is asynchronous and when equal to 0, causes the counter
to be cleared regardless of the presence of clock pulses or other inputs.
Table 3.13.1.
Load--
1-
A
D
A2
=D
Ag
Clear
CLK
Fig. 3.18.
D out
3-18B (EC-Sem-3) Sequential Logic Design
Ac
Fig. 3.14.1.
Logic diagram:
M
Hign
L Fig. 3.14.2,
for the
Que 3.15. Design a synchronous counter using JK flip-flop
following input sequences:
AB C
Fig. 3.16.1.
Answer
Present Next Flip-Flop inputs
State state
KJ K
x
0 0 X
0
0
1 1 0
1
1
K-maps:
For JA For SA
00 01 11
Q 00 01
JA=Q
3-20B (C-Sem-3) Sequential Logic Design
For For Kg
A 0 0 01 1 10 A00 01 11 10
2
c For«
QpQc For Kc
A 0 0 01 11 10 A 0 01 11
Jc Ko=1
Flip-lop required are: 2"2N
Here N= 6
So, n =3, i.e., three flip-flops are required.
CLK
Fig 3.15.2.Synchronous counter using JK lip-lop
ue 3.16.1 Design a 3-bit asynchronous up-down counter using
For Tc For Ts
QpA
MQc 00 01 11 10 MGc00 01 11 10
0o l11
11 1015014
1
To= MQ QA + MQp QA TB MQA+QM
For TA
MQ 00 01 11 10
01
10
TAI
3-22 B (EC-Sem-3)
Sequential Logic Design
4. Finally, let us draw the logic diagram.
Mode
control M =0 for up
(M) M =1 for down countingB
counting
Logic 1
MQAB
CLK MQAB
Fig. S.17.1.
Excitation table for 3-bit synchronous counter:
Table 3.17.1: Circuit excitation table
0
0 x o
0
0 0
3-23 B (EC-Sem-3)
Digital System Design
all flip-flop inputs
K-maps and simplified expressions for
For For Kc
00 01 11 10 Qc 00 01 11 10
K Qa
For KB
QpAFor
Qc00 01 1110 00 01.11 10
y=a
For JA For Ka
c00 01 11 10 Qc 00 01 11 1 0
Ba=1
A=1
Thus the simplified equations are
Jc =QA
Jp =
J =1 Ka
Logicdiagram: 3-bit synchronous counter using
shows the
Fig. 3.17.2 logic diagram of a
JK lip-flops.
Logic 1 QA
J K-A
JA K1
FF-A FF-B FF-C
CLK
JK FFs.
Fig. 3.17.2. 3-bit synchronous counter using
3-24 B (EC-Sem-3)
Sequential Logic Design
2. If the enable input is 0, all J and K inputs are equal to 0 and the clock
does not change the state of the counter.
Ap
Count enable
A
K
A2
Ag
- T o next stage
CLK
PART-6
Shift Registers
3-25 B (EC-Sem-3)
Digital System Designm
Questions-Answers
AKTU2018-19, Marks07
Answer
Shift registers:
The binary data in a register can be moved within the register from one
CLK-
D3 D 2
D
Fig. 3.19.1
Operation:
When mode control M =
1, all the A AND gates
enabled and the data at (A,y A Ay A,) are
D, is shifted to the right when clock pulses are
applied.
When M 0, all A gates are disabled and all B
=
Hence the serial data is entered onto the left side of register and it
leaves from the right side serially. Fig. 3.20.2 shows the logic circuit for
a 4-bit shift right register.
Do
Dout
CLK
Fig. 3.20.2. Logic circuit for a 4-bit shift right register
Shift left register:
The group of bits is shifted towards the left side in serial form. Hence the
serial data is entered from right and the binary data at the output is
taken from the left most flip-flop.
2. Fig. 3.20.3 shows the logic circuit for a 4-bit shift left register.
FF3 FF FF
DD D D
CLK
Fig. 3.20.3. Logie circuit for a 4-bit shift left register
3. The binary data is entered into right most flip-flop (FF,) and output is
taken from the left most flip-flop (PF) in serial form.
Serial in parallel out shift register:
This is one type of shift register in which the data is entered in serial
form and output is in parallel form.
2. Hence, it is necessary to have all the data bits available as outputs at the
same time.
3. This type of shift register operation is same as the serial in serial out
shift register.
4. The difference between serial out and parallel out shift registers is the
way in which the data bits are taken out of the register.
5. Fig. 3.20.4 shows the block diagram of 4-bit serial in parallel out shift
register.
Parallel out
Serial in
| O
Fig. 8.204 Block diagram of 4-bit serial in parallel out shift register
5. Fig. 3.20.5 shows the logic eircuit for 4-bit serial-in parallel out shift
register.
3-28 B (EC-Sem-3)
Sequential Logic Design
D2
Dout
CLK
Fig. 3.20.5. Logic circuit for 4-bit serial in parallel out shift register.
Parallel in serial out shift register:
1 Fig. 3.20.6 shows the block diagram of a parallel in serial out shift register.
In this type, the bits are entered in
parallel, i.e., simultaneously into
their respective stages on a parallel line.
2. It produces the stored information on its output, in serial form.
Parallel in
Serial out
D Do Qo
CLK-
B
A
Parallel inputs
Fig, 8.20.7. Logie diagram for 4-bit parallol in parallel out shit register
OR
Draw and explain 4-bit universal shift register.
Clear- FF FF3 FF
LA D
CLK
Function
S, 0 Hold
Shift right
Shift left
Load
3-30B (EC-Sem-3)
Sequential Logic Design
Operation:
When S,S, 00, the present value of the
=
register is applied to the D
inputs of the flip-flops. This condition forms a path from the output of
each flip-flop to the binary value input of the same flip-flop.
2. The next clock edge transfers into each flip-flop the binary value it
held
previously and no change of state occurs.
3. When S,S, 01, the input
=
Answer 1
i. Time delay: The serial out shift register can be used to provide a time
delay from input to output that is a function of both the number of
stages (n) in the register and the clock frequency.
ii. Serial to parallel data converter: Serial data transmission from one
digital system to another is commonly used to reduce the number of
wires s in t transmission line. \ can convert the received serial data
to parallel data by using serial in parallel out shift register.
ii. Parallel toserial data converter: Serial data transmission requires
3 stream of serial data to be transferred from one digital system to
another. We can convert the parallel data to serial data by using parallel
in serial out shift register.
Que 3.23. Design a 4-bit serial in serial out shift register using JK
flip-flop.
Answer
Serial in-serial out shift register using JK flip-flopp:
Serial
in (D) 9 Serial
out
CLK-
Fig. 3.28.1
Digital System Design 3-31 B (EC-Sem-3)
D, 0
K DD D
J= D K= D
PART7
Finite State Machines (FSM), Design of Synchronous FSM.
Questions-Answers
Long Answer Typeand Medium Answer Type Questions
Answet
1. When the output of the sequential network depends only on the present
state of the flip-flop, the sequential network is referred to as Moore
model.
CP
Next Output
Inputs state Memory decoder Outputs
decoder elements| (combinational
circuit)
Que 3.25.
Explain Mealy model.
Answer
1. When the output of the sequential network depends on both the present
state of flip-flop(s) and on the inputís), the sequential eireuit is referred
to as Mealy model.
2. Fig. 3.25.1 shows the sample Mealy model.
CP
Output
decoder Outputs
Inputs Next
state Memory
decoder |elements
PART8
Algorithmic State Machines (ASM) Charts.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Que 3.26. What is ASM chart ? Explain. Draw the state diagram,
state table and ASM chart for a D flip-flop.
Answer
ASM chart is composed of three basic elements : State box, decision box
and conditional box.
3-34B (EC-Sem-3)
Sequential Logic Design
State box: The state
of the system is indicated by a state box. The shape
of the state box is a rectangle.
General description entry
State name Binary code
Register operation or
unconditional list
Exit
Fg. 326.1.
Decision box: It is a diamond shaped box used to describe the effect of
an input on the control subsystem.
Entry
VP
condition
Conditional register
operation l output
Exit
Pig. 3.26.3.
To draw ASM chart, first we form a state table for easy understanding of
the operation of the given circuit.
Dp
CLK
Fig. 3.26.4.
3-35 B (Ec-Sem-3)
Digital System Desigm
State table:
0
0
State diagram:
1/
00 0o/1
1/y
O/0
(11 0 1 o1
1/1
O/0
Fig 8.26.5
ASM chart
So 00
Z=1
S
Z=1
2-1 2=0
10
S,
0
Fig. 3.26.6.
3-36B (EC-Sem-3) Sequential Logic Design
PART-9
Designing Synchronous Circuits Like Pulse Train Generator
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Que 3.27 Generate the following pulse train using indirect logic.
Answer
1. The given sequence is 10110. It is written vertically under the column
heading output () in the truth table of Fig. 3.27.1(a).
2. It is 5 bits long, so we need five unique states to generate pulse train so,
any mod-5 counter can be used.
3. For simplicity, we use a ripple counter.
4. It goes through states 0, 1, 2, 3, 4, 0.. States 5, 6,7 are invalid, so the
corresponding outputs arc don't cares.
5. The K-nmap for the output 1 in terms of the outputs of the flip-dops, its
minimization, and the minimal expression obtained from it are shown in
Fig. 3.27.1.
6. The logic diagram (using a mod 5ripple counter) based on that minimal
expression for fis shown in Fig. 3.27.2.
7. While at state 0, it output a 1, ie., the first bit of the sequence.
8. While at state 1, it outputs a0; ie., the second bit of the sequence, and so
on.
Output (0 States
0
2
3
5
0
00 011 1 10
Output, f= Q2+1
(b) K-maP tor
Fig. 3.27.1. Pulse train generator
1 102 10
oPF
o 10 0T 10 o o
oT I11110o
Answer
1. The pulse trains to begenerated written vertically under column heading
f and fp in the truth table 3.28.1(a) are (a) 100 11000 and (b)
of Fig.
11111100.
2. These are both eight bits long
3. So we need eight unique states to generate those two pulse trains.
4. Therefore, a mod-8, ie., a 3-bit ripple counter can be used.
5. Letf and f2 be the outputs of the combinational circuits.
6 The state assignment is shown in the truth table.
7. The K-map for outputsf and f, in terms of the outputs of the tlip-flops,
their minimization and the minimal expressions obtained from them
are shown in Fig. 3.28.1(b).
8. The logic diagram (using a mod-8 ripple counter) based on those minimal
expressions for / and f, is shown in Fig. 3.28.2.
3-38 B (Ec-Sem-3)
Sequential Logic Design
States Q, Q, f1 f2
0 0 0 0 11 *3 00 01 11 10 a00 01 11 10
0 0 1 0 1
I 0 0 1
3 0 1 1 11
4 0 1
01 0 1
6 0 0 0 =9+,9,
1
(a) (b)
Fig. 3.28.1. Truth lable and Komaps for f, and f
1 1 2
o FF FF2 tPF
CLK LK,
PART 10
Pseudo Random Binary Sequence (PRBS) Generator,
Clock Generation.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
1 Another important application of shift register is a Pseudo-Random
Binary Sequence (PSBR) generator. Here, suitable feedback is used to
generate pseudo-random sequence.
2. The term random here means that the outputs do not cycle through a
normal binary count sequence.
3. The term pseudo here refers to the fact that the sequence is not truly
random because it does cycle through all possible combinations once
every 2"-1 clock cycles, where n represents the number of shift register
stages (number of flip-flops).
Digital System Design 3-39 B (EC-Sem-3)
Q1. Design the clocked sequential cireuit for the following state
diagram using JK flip-flop.
00
10
Fig. .
-
B
DB -B
-B
Cp
Fig. 2.
ARS: ReferQ.3.10, Page 3-14B, Unit-3.
Q3. Draw the reduced state table and reduced state diagram
for the state table given in Fig. 3.
O/0
1/0
0/0
O/0
1/0 1/0
0/0
1/1
O/0
Fig. 3.
Ana Refer Q. 3.9, Page 3-11B, Unit-3.
Q.4. Design a ripple decade counter using JK flip-flop.
AS Refer .3.14, Page 3-18B, Unit-3.
5 . Describe the operation of four bit synchronous binary
counter with neat sketch.
a n Refer Q. 3.18, Page 3-24B, Unit-3.
96. Write down the classification of shift registers.
Kns: Refer Q. 3.19, Page 3-25B, Unit-3.
7 . Draw and explain 4-bit universal shift register.
e Refer Q.3.21, Page 3-28B, Unit-3.
4 UNIT
Logic Families and
Semiconductor
Memories
CONTENTS
Part-1 TTL NAND Gate, Specifications. -2B to 4-3B
.. 4-5B to 4-6B
Part-4 Fan-in, Fan-out. u********* ***************
.4-9B to 4-11B
Part-6 : E C*************************************************************
L.
4-1B (EC-Sem-3)
4-2B (EC-Sem-3) Logic Pamilies & Semiconductor Memories
PART-1
TTL NAND Gate, Specifications.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
R 130 Q I
RB4 k
C2
TTL
multiple
emitter
VDr
B
APAD
1 k
1.
Operation:
A LOW voltage at either emitter E, or emitter E, forward-biases the
Diode, D Diode, Da
Emitter, E -
Collector, C
Diode, D2
Bmitter, E, K
Fig. 4.1.2.Diode equivalent of TTL multiple emitters
Table 4.1.1. Operationof TTL NAND gate
Inputs Transistors Output
Emitterjunction, A Emitter junction, B
Forward bias(ON) Forward bias(ON) OFF
Forward bias (ON) Reverse bias (OFF)
OFF ON
FF |OFF ON 1
Reversebias(OFF) Forward bias(ON) OFF | OFF |ON1
Reverse bias (OFF) Reverse bias(OFF)ONON OFF 0
PART-2
Noise Margin.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
The noise immunity of a logic cireuit refers to the circuit's ability to
tolerate noise voltages at its inputs. A quantitative measure of noise
immunity is called noise margin.
44B (EC-Sem-3) Logic Families & Semiconductor Memories
2. Noise margin represents the maximum noise signal that can be added to
the input signal of a digital circuit without causing an undesirable change
in the circuit output.
3. Noise margin can be HIGH state noise margin or LOW state noise margin.
HIGH state noise margin (NMH)is, VNH =VOHVIH
LOW state noise margin (NM,) is, VNL VIL- VoL
=
High state noise margin is the difference between the lowest possible
high output and the minimum input voltage required for a HIGH. Low
state noise margin is the difference between the largest possible LOW
and the maximum input voltage for a
5.
output
Consider
LOW.
an example of a TTLAND gate. The TTL gate has VOH 2.4V,
VoL=0.4 V, VIH =2V and VIL =0.8 V. The noise introduced in the signal
(NH Or VNz) is shown in Fig. 4.2.1.
OL 0.4 V_ IL 0.8V
Logic 0 Noise
OL 0.4 V
Logic 0
Logic 0
Fig 42.1
6. Let the inputs of gate, G, cause output as logic 0. This output acts as
input for gate, G2. Due to noise, actual input given to gate, G, is
7. the
NLVIL-VoL ..(4.2.1)
Let inputs ofgate, G, cause output logic1as in Fig.
4.2.2. This output
acts as input for gate, G2. Due to noise, actual input given to gate, G, is
Logic 0
Fi 42.2
VIH in eq. (4.2.2) that acts as input to gate G2. Minimum high level noise
level is
NH2.4 V- 2.0 V= 0.4 V
| PART-3
Propagation Delay.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
1. Propagation delay is defined as the time interval between changes in a defined
logic level input and reflection of its effect at the output logic level.
2. The propagation delay for an integrated circuit (IC) logic gate may
differ for each of the inputs. If all other factors are held constant, the
average propagation delay in a logic gate IC increases as the complexity
of the internal circuitry increases.
PART-4
Fan-in, Fan-out.
Questions-AnswersS
Long Answer Type and Medium Answer Type Questions
Que 4.4 Describe the fan-out and fan-in condition of the digital
logic gate.
Answer
Fan-out
The fan-out of a logic gate is defined as the maximum number of standard
load that the output of the gate can drive without impairing its normal
operation. Fan-out is also called the loading factor.
2. HIGH state fan-out is the fan-out of the gate when its output is logic 1.
LOW state fan-out is the fan-out of the gate when its output is logic 0.
The smaller of these two numbers is taken as the actual fan-out.
3. High state fan-out is given by
HIGH state fan-out = OH
IH
where, IoH is the maximum current that the driver gate can source
when it is in a 1 state. IIn is the current drawn by each driven gate from
the driver gate.
4. Similarly, low state fan-out is given by
OL
LOWstate fan-out =
where, oLiS the maximum current that the driver gate can sink when
its output is a logic 0. I is the current drawn from each driven gate by
the driver gate.
5. The fan-out of a logic family can be calculated a s
number of inputs.
3. At the hardware level, however, the fan-in provides information about
the intrinsic speed of the gate itself.
In general, the propagation delay increases with the fan-in. This means
that 2-input NAND gate is faster than the 4-input NAND if both are
from same logic family.
PART 5
Tristate TTL
Questions-Answers
Long Answer Type and Medium Answer Type Questions
YDr
D
RE
'+Vcc
RC1.6kn Re130 ni
RBB 4 k2
A .
V Dr
B
Ds
RE121k2.
Fig. 4.6.1. TTL NOR gate.
Operation:
Table 4.6.1. Operation of TTL NOR gate.
inputs Transistors Output
B
Answer
Current sinking:
ATTL circuit acts as a current sink in LOW state, as it receives current
from the input of the gate by which it is driving.
2. Transistor is the current-sinking transistor or the pull-down transistor,
because it brings the output voltage down to its LOW state.
ii. Current sourcing:
1. A TTL circuit acts as a current source in the HIGH state, as it supplies
current to the gate by which it is driving.
Transistor is the current-sourcing transistor or the pull-up transistor,
because it pulls up the output voltage to its HIGH state.
iii. Floating inputs
When a TTL input is HIGH (ideally +5 V), the emitter current is
approximately zero. When a TTL input is floating no emitter eurrent is
possible because of the open circuit.
Digital System Design 4-9B (EC-Sem-3)
i. Therefore, floating TTL
a
input is equivalent to a HIGH output. Because
of this, unused TTL inputs are left unconnected: an open input allows
the rest of the gate to function
iv.
properly.
TTL loading and fan-out:
1. The TTL output has a limit,
sink in LOW state and a limit,
lo that gives the maximum current it can
ECL
Questions-Answers
LongAnswer Type and Medium Answer Type Questions
Answer
Basic ECL eircuit :
1 The basic circuit for emitter-coupled logic is a differential amplifier
configuration as shown in Fig. 4.8.1.
2. The VEE supply produces a fixed current 1p, which remains around 3 mA
during normal operation. This current is allowed to flow through either
transistor , or transistor , depending on the voltage level at ViN
4-10B (EC-Sem-3) Logic Families & Semiconductor Memories
R
VCie
Vc
VINe
VEE
Fig. 48.1
3. In other words, this current switches between colector of , transistor
and collector of @, transistor as VN Switches between its two logic levels
of-1.7 V (logical 0 for ECL) and-0.8 V (logical 1 for ECL).
4. Table 4.8.1 shows the resulting output voltages for these two conditions
at VN
Table 4.8.1. Operating states of ECL
VN Outputs Remarkss
Voltage level Binary logic
1.7 V Logic 0 OV - 0.9 V
Q conducts
-0.8 V Logic 1 -0.9 V OV , conducts
Rc1 Kcavca
A +B
Be 1
LA +B V EE
VEE
EE
Fig. 4.9.1. ECL NOR and OR gates
4. Inputs are applied to transistors andQ, and transistor ,is supplied
with constant- 1.3V.
Table 4.9.1. Operation of ECL OR/NOR gate.
Inputs Transistors Output
B 4 A+BA +B
OFF OFF ON ON OFFF 1
1 OFF ON OFF OFF | ON
0 ON OFF OFF
ON ON
OFF| ON
OFF OFF | ON
PART7
CMOS Families and their Interfacing.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
the drain of both the devices. The positive supply voltage is connected to
the sources of the PMOS transistor Q2, and the source of transistor
is grounded.
2. When A is LOW (O V). Gate to source voltage Vas2 of transistor Q2 is
5 V, and gate to source voltage Vos1 of transistor is 0 V.
Q1
-
So,
transistor Q2 acts as ON and transistor Q, acts as OFF. Therefore, the
switching circuit shown in Fig. 4.10.1(6) results in V, as logic HIGH that
is +5 V.
+5 V
+5V +5 V
ON)
QOPF)
A=1
A
A =0 V, =5V V, = 0V
OFP)
-ON)D
(a) (b) A = 0 (c) A 1
Fig. 410.1.(a
CMOS As ioverter, (6) and (o)
equivalent circuit
3. WhenA is HIGH(+5 V), gate to source voltage
Vos2 of transistor ,is
OV, and gate to source voltage VaS1 of transistor Q1 is +5 V. So, transistor
Q2 acts as OFF and transistor Q acts as ON. Therefore, the switching
circuit shown in Fig. 5.13.1(c) results with V, as logic LOW that is 0V.
Table 4.10.1. Operation of CMOS inverter.
Input, A
P-channel n-Channel Output,
MOSFET, MOSFET,
LOW (O V) ON OFF +5 V(HIGH)
HIGH (5 V) OFF ON OV (LOWV)
Truth table:
Characteristics of CMOS
Supply voltage: The 4000 and 74C series can operate with Vpp values
ranging from 3 to 15 V. The 74HC and 74HCT series can operate with
VDD Values ranging from 2 to 6 V.
ii. Voltage levels: When a CMOS output drives only a CMOS input and
CMOS gate has an extremely high input resistance, the current drawn
is almost zero and, therefore, the output
voltage levels will be very close
to zero for LOW state and
Vpp for HIGH state.
4-13 B (EC-Sem-3)
Digital System Design
ii. Power dissipation: When a CMOS circuit is in a static state, its power
with increase in
dissipation per gate is extremely small, but it increases
level. For DC, CMOS power
operating frequency and supply voltage it increases to
dissipation is only 2.5 nW per gate when VpD 5 V, and
=
iv.
10 nW per gate when VDD 10 V.
=
Switching speed: 'The speed of the CMOS gate increases with increase
in Vpp. The increase in Vpp results in increase in power dissipation too.
Unused inputs: The CMOS inputs should never be left disconnected.
All CMOS inputs have to be tied either to a fixed voltage level
(OV or VpD) or to another input.
Answer
1. Fig. 4.11.1 shows a CMOS two-input NAND gate. Here, p-channe!
MOSFETs Q and Q, are connected in parallel and n-channel MOSFETs
and are connected in series.
Q, ,
2. When Ais Low (o V) and B is also LOW (O ).p-channel MOSFET9
acts ON, n-channel MOSFET , acts OFF, p-channel MOSFET 9, acts
ON and n-channel MOSFET 4, acts OFF. Thus, the switching results
V, as logic HIGH i.e., +5 V.
When A is LOW (0 V) and B is HIGH (5 V). p-channel MOSFET Q, acts
3.
ON, n-channel MOSFET Q, acts OFF, p-channel MOSFET Q, acts
OFF and n-channel MOSPET Q, acts ON. Thus, the switching circuit
results V, as logic HIGH ie., +5 V.
4. When A is HIGH (+5 V) and B is LOW (O V). p-channel MOSFET Q,
acts OFF, n-channel MOSFET Q, acts ON, p-channel MOSFETe, acts
ON and n-channel MOSFET Q, acts OFF. Thus, the switching circuit
results V, as logic HIGH i.e., + 5 V.
5. When A is HIGH (+5 V) and Bis also HIGH(+5V).p-channel MOSPET
Q, acts OFF, n-channel MOSFET , acts ON, p-channel MOSFET Q,
acts OFF and n-channel MOSFET Q, acts ON. Thus, the switching
circuit results V, as logic LOW i.e., O V.
+6 V
Vo
Fig4114.CMOSa NANDgate
4-14B (EC-Sem-3) Logic Families & Semiconductor Memories
Que 4.12 Discuss the circuit diagram and operation of CMOS NOR
gate.
Answer
1. Fig. 4.12.1 shows a CMOS two-input NOR gate. Here, p-channel
MOSFETs Q, and , are connected in series and n-channel MOSFETs
3 and 4are connected in parallel.
DD +5 V
ON ON OFF OFF
ON OFF OFF ON
0 OFF ON ON OFF
OFF OFF ON ON
AnsweT
1. Atransmission gate is simply a digitally controlled CMOS switch. When
the switch is open (OFF), the impedance between its terminals is very
large.
Itis used to implement special logic functions. Since the CMOS gate can
transmit signals in both directions, it is called a bilateral transmission
gate or bilateral switech.
3 It is useful for digital and analog applications. The TTL and ECL gates
are essentially unidirectional.
4. Fig. 4.13.1 shows the schematic diagram and logic symbols of a CMOS
transmission gate. The n-channel MOS and p-channel MOS transistors
are connected in parailel.
5. So, both polarities of input voltages can be switched. The control signal,
Cis connected to then-channel MOSFET and its inverse is connected to
the p-channel MOSFET.
O/P
+V pD
Control, C IIP
Answer
TTLto CMOS
1. The MOS and CMOS
gates are slower than the TTL gates, but consume
less
space. Hence, there is an
advantage is using TTL and MOS devices
in combination.
2. The input current values of CMOS are low as
current capabilities of any TTL series. compared to the output
Thus, TTL has no problem in
meeting the CMOS input current requirements.
So, a level translator is used to raise the level of the
the TTL gate to an acceptable level for CMOS.
output voltage of
4. The presence of the
pull-up resistor will cause the TTL output to rise to
approximately + 5 Vin the
HIGH state, thereby providing an adequate
CMOS input as shown in Fig. 4.14.1.
+5V 5 V 10 V
Rp
---
Buffer
TTL JCMOS |TTL JCMOS
(a) TTL to CMOS interfacing 6) TTL to CMOS
(low voltage)
interfacing
(high voltage)
Fig 4.14.1
CMOS to TTL:
The CMOS output can supply enough voltage and current to satisfy
the TTL input requirements in the HIGH state. Hence, no special
consideration is required for the HIGH state.
But the TTL input current requirements at LOW state cannot be met
directly.
3. Therefore, an interface circuit with a LOW input current requirement
and a sufficiently high output current rating is required. The
arrangement is shown in Fig. 4.14.2.
When a high voltage CMOS has to drive a TTL gate, a voltage level
translator that converts the high voltage input to a +5 V output is used
between CMOS and TTL as shown in Fig. 4.14.2.
16 V +5 V
Que 4.16. Explain the interfacing of TTL to ECL and ECL to TTL.
Answer
TTL to ECL:
1 The TTLis the most widely used logic family, but its speed ofoperation
is not very high.
2. The ECL is the fastest family. In some applications, the rate at which
input data is to be handled may be much lower than the rate at which
the output data is to be handled.
3. Therefore, it becomes necessary to interconnect the two different logic
systems, such as TTL and ECL
A TTL cannot interface directly with an BCL; it requires a translator as
shown in Fig. 4.15.1.
A-
B X
TTL
L------ TTL to ECL
ECL
translator
A*
B. OX
ECL
ECL to TTL TTL
Vcc i translator
-----
PART-8
Memory Elements, Concept of Programmable
Logic Devices Like FPGA
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Programmable Horizonta
input/ output channe
Conigurable
L logic block(CLB)
Switch box
-Horizontal
connections
Vertical channel
Four-input
Input look-up D
MUX Output
table
(LUT)
|Flip-flop
Clock- Select lines
Fis 4.16.2. Blocdk disgramoflogic module
PART-99
Logic Implementation Using Programmable Devices
Questions-Answers
Long AnSwer 1ype and Medium Answer Type Questions
3. PLA be
can
implemented in several forms, i.e., NOR-NOR,
NAND-NAND, NAND-NOR.
4 The structure of PLA is shown in Fig. 4.18.2, and its internal logic with
three inputs and two outputs is shown in
Fig. 4.18.3.
5. The particular boolean functions implemented in the PLA of
Fig. 4.18.3, are
F AB + AC + ABC
F, = (AC + BC)
m input AND OR
lines array array
n output lines
Fig. 4.18.2. PLA structure.
6. The programming table that specifies the PLA of Fig.4.18.3 is listed in
the table 4.18.1. The PLA programming table consists of three sections.
A
B
C
D - AB'
2- AC
3)- -BC
-A'BC
C C'BB'A A'
Fig. 4.18.3, PLA with three inputs, four product terms, and two outputs.
7. The first section lists the product term numerically. The second section
specifies the required paths between input and AND gates. The third
section specifies the path between the AND and OR gates.
8. For each output variable, we may have a T (true) or C (complement)
for programming the XOR gate.
9. For each product term, the inputs are narked with 1, 0 o r - (dash).
Digital System Design 4-23 B (EC-Sem-3)
10. If the variable in the product term appears in the form in which it is
true, the corresponding input variable is marked with a 1. Ifit appears
complemented, the corresponding input variable is marked with a 0. If
the variable is absent from the product term, it is marked with a dash.
Table 4.18.1. PLA programmin8
Input Output
Product term (7 F(C)F
AB
AC
BC
0
ABC
11. The size of the PLA is specified by the number of inputs, the number of
product terms, and the number of outputs. A typical integrated circuit
PLA may have 16 inputs, 48 product terms and eight outputs.
12. For n inputs, k product terms, and m outputs, the internal logic of the
PLA consists of n buffer-inverter gates, k AND gates, m OR gates, and
m XOR gates.
Que 4.19 Draw the logic configuration of four input and four
output PAL and explain.
Answer
1. A programmable array logic has the same structure as a ROM, but has
a programmable AND array anda fixed OR (or NOR) array.
2. Because of the fixed OR array, a PAL device is cheaper comparatively
and easier to program.
3. However, the lack of shared rows with the column requires that each
output function be simplified, with no common product term with others.
It is easier to program, but is not flexible.
PAL with the four input and four output
3. The number of produet terms in each section is fixed, and ifthe number
of terms in the function is too large, it may be necessary to have two
sections to implement one boolean function.
AND gate input
12 34 910
Product term
10
11
12
23 45 6 78910
Pig. 4.19.1, PAL with four inputs, four outputs and a three wire
AND-OR structure.
Que 420. Realize the full adder circuit using the PAL.
Answer
Full adder using PAL : There are two funetions used for the
implementation of full adder:
S= ABC + AB + AB + ABC
A A B B C
Fig. 4.20.1
Que 421. Differentiate between PLA and PAL. Realize the ful
adder circuit using PAL. AKTU 2018-19, Marks 3.5
Answer
A Difference:
In this, only the AND array | In this, both AND and OR arrays
is programmable, OR array are programmable.
is fixed.
3.
It is easier to progran |It is complicated to program because
because only the AND gates both the AND and OR gates are
are programmable programmable.
It is less flexible due to fixed It is more flexible than
PAL.
OR gates
For W For X
CD
AB 11 B\ 00
00 01 10 01 11 10
00 00
01 01|
6
11 11 1
12 12
10 10 1 |11
11 10
For Y For2
CD CD
AB 00 01 11 10 AB 00 01 10
0
o1 01
12
1
Fig. 4.22.1
W= ABC+ ABCD
X = A+ BCD
4-27B (EC-Sem-3)
Digital System Design
BD
Y = AB+CD+
Z= ABC + ABCD+ ACD+ ABCD
W+ACD + ABCD
table for the four boolean
2 Table 4.22.1 lists the PAL programming
sections with three
functions. The table 4.22.1 is divided into four
product terms in each section.
gate is always 0.
Table 4.22.1. PAL programming
2 0
3
X = A+ BCD
Y= AB+ CD BD
8
11 0
12 0 0 0
4-28 B (EC-Sem-3) Logic Families & Semiconductor Memories
Product
term
A A B BCC D D WW
C
10-
11-
12-
xFuse intact
D +Fuseblown
TL
A A B BCC D D WW
Fig 4.22.2. Fuse map for PAL as specified in Table. 4.22.1.
FA,B, C) Zm(0,2, 7)
=
Answer
Simplify the given boolean expression
F A, B, C)= Em(3, 5, 6)
FA,B, C)= Em(0, 2, 7)
4-29 B (EC-Sem-3)
Digital System Design
For F:
BC For F BC
A 00 01 11 10 A 00 01 11 10
AC ABC
F ABC+ ABC+ ABC F2 = +
Fig. 4.23.1.
PLA program table:
ABC
ABC
ABC
AC 0
ABC
Implementation:
A
Product
erm
Sum
term
Fig 4.33.2
Que 424. Design a 3-bit binary to Gruy code converter using PLA.
Answer
Truth table:
ForG2 For G
B,Bo BB
B2 00 0111 10 B 00 01 11 10
0
(a) (6)
For Go
Ba00 01 11
(c)
Fig. 4.24.1.
G, = B,
G= B,8,+B,B
G B,B,+ B,,
Implementation:
Fig. 4.24.2 shows the implementation using PLA.
Digital System Design 4-31 B (EC-Sem-3)
Bo
B
Binary
inputs
B B AND matrix
B
B2
BgB B,B BB,B,B G
G ay
ooutput
OR matrix
Fig 424.2
using PLA.
Q.6. Design a 3-bit binary to Gray code converter
NAND gate.
Q.7. Describe the construction and operation of TIL
Ans Refer Q. 4.1, Page 4-2B, Unit-4.
PLDs.
Q.8. Draw the basic configuration of three
AnE 4-20B, Unit-4.
Refer Q. 4.17, Page
5
UNIT
D/A and A/D Converter
CONTENTS
Part-1 Weighted Resistor, R-2 R Ladder . 5-2B to 5-7B
*********************************
6 - 7 B to 5-8B
Part-2 : Resistor String ..
Part-3: Analog to Digital Converters: . . . 5-88 to 5-10B
Single Slope
Configurations
Part-6 .-17B
Application in Amplifier.************************) to 5-18B
5-18B
Part-7: Integrator, ADC.****** ************************* to 5-20B
5-1B (EC-Sem-3)
5-2 B (EC-Sem-3) D/A and AD Converter
PART1
Weighted Resistor, R-2 R Ladder.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
R
W-
lo
'R 2'R
(LSB) D D3 D (MSB)
-VR
Fig5.11Aaimple weighted renistor Di/A eonverter
4. From Fig. 5.1.1, the output currentI, for an ideal op-amp can be written
as
Answer
A Weighted resistor D/A converter:
R
wW
oVo
2'R 2'R 2'R
LSBD, D2 Di (MSB)
-VR
Fig, 5.2.1.4-bit bínary weighted resistor D/A converter.
B. Numerical:
Given:R- 10 K, R,= 1.2 K, V = 5 V, N=4
To Find :Step size, Output voltage
5 = 0.333 V
Stepsize=-12-1 15
= 0.5625 V
OR
Explain different types of DAC.
Answer
DAC:
1. It is the process of taking a value represented in digital code and
converting it into a voltage or current which is proportional to digital
value. It is accomplished by the use of DAC or D/A converter.
2. The analog voltage output V. of an N-bit straight binary D/A converter
is related to the digital input by the relation.
V.=K(2*- b. +2*bxat.26,+ 26, +b,)
K= Proportionality factor
by 1, ifMh bit of digital input is 1
0,if N bit of digital input is 0.
There are two types of D/A converters:
Weighted resistor D/A converter: Refer Q. 5.1, Page 5-2B, Unit-6.
ii R-2R Ladder D/A converter :
1. This network uses resistors of only two values R and 2R. The inputs to
the resistor network are applied through digitally controlled switches.
Rp
R R 2R
-
Vo
2R 2R 2R 2 2R
LSB
MSB
Pig. 6.3.1.
2. Consider a 3 bit R-2R Ladder D/A network. Let us assume a digital input
of001. The equivalent circuit becomes as shown in Fig. 5.3.2.
Digital System Design 5-5B (EC-Sem-3)
R 2R
ww ww-o
2R 2R 2R 2R
Z
Fig. 5.3.2.
3 Applying Thevenin's theorem at point X*', we get
2R
w-
2R 2R
Fig. 5.3.3.
4. Applying Thevenin's theorem at YY, we get
RY R 2R
ww-oMW WWWO
R
Y
Fig. 6.8.4.
Fig. 5.3.6.
6. The equivalent resistance is 3R in each case. The circuit reduces to
5-6B (EC-Sem-3)
D/A and A/D Converter
3R Rp
3R
3R
0 W-
Fig 5.8.6.
7. The output voltage is given as
V= -3R
3R 2 RVRb* Rb
3R 2
3R 2 " 3R 2
14b,+2b, +b,1
3R
8. The number of resistors
required for N-bit D/A converter is 2N in the
case of R-2R ladder D/A
converter
Que 54 Explain the performance characteristics of D/A
converters.
Answer
1. Resolution:
It is the smallest
possible change in output voltage as a fraction or
percentages of the full-scale output range.
Example for
a 8-bit converter there are 25
or 256 values of
voltage, hence the smallest change in the output voltage isanalog
1/255thoutput
of full
scale output range.
2 Linearity:
The input-output relationship should be linear for a D/A converter. But
sometimes the relation is non-linear. This is due to
error in resistor
values and voltage across the switches.
ii. If converter was ideal the dots will fall
it is indicated
on
straight line. But if it has
errors by
shown in Fig. 6.4.1.
e as
PART-2
Resistor String.
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Answer
3. For an n-bit DAC, this requires 2" resistors and the taps between the
resistors are connected to switches controlled by the digital logic input
values (and their complement).
4. At the output node, an output voltage (Vorr) is generated, the value set
by the positions of the switches.
5. The output would need to be suitably buffered in order to prevent
electrical loading of the converter output.
5-8 B (EC-Sem-3) D/A and A/D Converter
=
R
REF R
|R
B) b2 b2 b1 b+ (MSB)
Fig.5.5.1. Resistor atring DAC
PART-3
Analog to Disital Converters: Single Slope.
Questions-Answers
Long Answer Type and Medium Ansiyer Type Questions
Answer
1. The block schematic of ADC in Fig. 5.6.1 provides the function just
opposite to that of a DAC.
Start EOC
d MSB
Analog ADC F-. Digital
input V output
VReference)
Fig. 64.1. Punctional diagram of ADC.
2. It accepts an analog input V, and produces an output binary word
d, da.., d,of functional value D, so that
D =
d,2-'+d,2-2 + . . .
+d,2- ..5.6.1)
where d, is the most significant bit and d, is the least significant bit.
Digital System Design 5-9B (EC-Sem-3)
3. An ADC usually has two additional control lines, the START input to tell
the ADC when to start the conversion and the EOC (end of conversion)
output to announce when the conversion is complete.
Depending upon the type of application, ADCs are designed for
microprocessor interfacing or to directly drive LCD or LED displays.
5. ADCs are classified broadly into two groups according to their conversion
technique.
6. These are Direct type ADCs and Integrating type ADCs. Direct type
ADCs compares a given analog signal with the internally generated
equivalent signal.
7. Integrating type ADCs perform conversion in an indirect manner by
first changing the analog input signal to a linear function of time or
frequency and then to a digital code. The two most widely used integratingg
typeconverters are:
Charge balancing ADC.
Dual slope ADC.
8. The most commonly used ADCs are successive approximation and the
integrator type. The successive approximation ADCs are used in
applications such as data loggers and instrumentation where conversion
speed is important.
9.The suecessive approximation and comparator types are faster but
generally less accurate than integrating type converters. The flash
comparator) type is expensive for high degree of accuracy.
10. The integrating type converter is used in applications such as digital
meter, panel meter and monitoring systems where the conversion
accuracy is critical.
Anawer
1. It consists of a ramp generator and BCD or binary counters. The
Fig. 5.7.1 shows the single slope ADC.
2. At the start, the reset signal is provided to the ramp generator and the
counters. Thus counters are reset to O's.
3. The analog input voltage Vin is applied to the positive terminal of the
comparator
4. As this is more positive than the negative input, the comparator output
goes high.
5. The output of ramp generator is applied to the negative terminal of the
comparator.
6. The high output of the comparator enables the AND gate which allows
clock to reach to the counters and also this high output starts the
ramp
5-10B (EC-Sem-3) D/A and AD Converter
7 The ramp voltage goes positive until it exceeds the input voltage. When
it exceeds Vin, comparator output goes low.
8. This disables AND gate which in turn stops the clock to the counters.
The control circuitry provides the latch signal which is used to latch the
counter data.
The reset signal resets the counters to 0's and also resets the ramp
generator. The latched data is then displayed using decoder and a display
device.
Analog
input Clock
i n o
IN
AND gate
omparator BCD or Binary counters
Ramp Timing and ResetD II
generator Ramp control
Latches
reset Latch
IIIL
Decoder or drivers
B Display
Fig. 5.7.1. Single slope ADC
PART-4
Dual Slope, Successive Approximation,
Flash
Questions-Answers
Long Answer Type and Medium Answer Type Questions
Que 5.8 Explain the working of dual slope integrating ADC with
the help of circuit diagrum.
Answer
1.Fig.5.8.1(a)shows the dual slop ADC funetional diagram. The cireuit
consists ofahigh input impedance bufier A,. precision integrator A, and
a voltage comparator.
2 The converter first integrates the analog input signal V, for a fixed
duration of 2"clock periods as shown in Fig. 5.8.1(b).
3. Then it integrates an internal reference voltage Vz of opposite polarity
until the integrator output is zero.
Digital System Design 5-11 B (EC-Sem-3)
WA CM
SW
C
Start Control n-stage
EOC logic counter
(a)
Integrator
output voltage
Time
i Integrate Integrate
Va -VR
(b)
Fig.5.8.1b).
8. The counter resets itself to zero at the end of the interval 7, and the
switch SW, is connected to the reference voltage (-VR
9 The output voltage v, will now have a positive slope. However, when v,
becomes just zero at time t = ta, the control logic issues an end of
conversion (EOC) command and no further clock pulses enter the
counter.
2" counts
T Clock rate
Digital count N
and
t-t Clock rate
10. For an
integrator,
Av, = (-1/RC) V (2)
11. The voltage v. will be equal to u, at the instant t, and can be written as
v = (-VRC) V,-4,
12. The voltage u, is also given by
So,
(1/RC)-V)t-t5)
V t - t ) = Vpl's-12)
Putting the value of(t, -t)=2" and (t-t) =N, we get
V2) = (VRN
or, V. = (Vp) (N/2")
Answer
1. The Buccessive approximation technique uses a very efficient code
strategy to provide n-bit conversion in n-clock periods.
Start o- EOC
V.c SAR
CLK
d da ds
d(MSB)
d
DAC
Working
1. With the arrival of the START command, the SAR sets the MSBd, = 1
with all other bits to zero so that the trial code is 10000000.
The output V of the DAC is now compared with analog input V,. If V,
2.
is greater than the DAC output V then 10000000 is less than the correct
digital representation.
3. The MSB is left at '1' and the next lower significant bit is made '1' and
further tested.
4 However, if V. is less than the DAC output, then 10000000 is greater
than the correct digital representation.
5. So reset MSB to 0 and go on to the next lower significant bit. This
procedure is repeated for all subsequent bits, one at a time, until all bit
positions have been tested.
Whenever the DAC output crosses Va, the comparator changes state
and this can be taken as the end of conversion (EOC) command.
Que 510 Draw and explain the fnash type A/D converter. Also
discuss the corresponding digital output with respect to input signal
voltage.
OR
Design a parallel-flash ADC and explain its working.
Answer
V
R/2
VPT= 13/14 V
R C
V6=11/14V
6
Vrs 9/14 V L
Cs A DB
Vr47/14 V Digital
output
V5/14 V Bo
S
V2 3/14 V
C2
V= 1/14 V
R/2
Fig. 5.10.1
3. A 7-bit output is obtained from the comparator is converted to a 3-bit
output using decoder cireuit.
4. The process adopted here is the simplest and it works quite fast.
5. Thedemerits rapidly increase in the number of comparators with the
number of bits and the corresponding complications of the decoder circuit.
6. The analog input, comparator outputs and digital output are shown in
Table 5.10.1
Table 5.10.1.
V,V.<Va 0 0000 0 1 0 0 1
Va.Va 0 0000 1 1 0 1 0
Vr<V V 0 0 0 1 1 l 1 10 0