DPSD (2 Marks)
DPSD (2 Marks)
DPSD (2 Marks)
Ma
rks
Q&
A
Digital
Princip
les &
System
s
Design
3rd SEM
CSE &
IT
(b) (16.5)16
= (1x161) + (6x160) + (5x16-1)
= 16 + 6 + (5 (0.0615))
= (22.3125)10
(c) (26.24)8
= (2x81) + (6x80) + (2x8-1) + (4x8-2)
= 16 + 6 + 2/8 + 4/64
= (22.3125)10
(d) (FAFA.B)16
= (Fx163) + (Ax162) + (Fx161) + (Ax160) + (Bx16-1)
= (15x163) + (10x162) + (15x161) + (10x160) + (11x16-1)
= (64,250.6875)10
(e) (1010.1010)2
= (1x23) + (0x22) + (1x21) + (0x20) + (1x2-1) + (0x2-2) + (1x2-3) + (0x2-4)
= 8 + 2 + 0.5 +0.125
= (10.625)10
b) (1110.10) 2
= (1x23) + (1x22) + (1x21) + (0x20) + (1x2-1) + (0x2-2)
= (8+4+2) + (0.5)
= (14.5) 10
The decimal answer in (b) is 8 times that of (a) because the binary number in (b) is
the same as that in (a) except that the point is shifted to the right 3 digits and this means
that it is multiplied by 23.
= (231)8
Fractional part:
0.513 x 8 = 4.104 4
0.104 x 8 = 0.832 0
0.832 x 8 = 6.656 6
0.656 x 8 = 5.248 5
0.248 x 8 = 1.984 1
0.984 x 8 = 7.872 7 = (0.406517)8 (approximate)
(153.513)10 = (231. 406517)8
= (104)7
Fractional part
0.4414062x 7 = 3.0898434 3
0.0898434x 7 = 0.6289038 0
0.6289038 x 7 = 4.4023266 4
0.4023266x 7 = 2.8162862 2 = (0.3042)7
(65.342)8 = (104.3042) 7
= (16)16
Fractional Part:
0.64 x 16 = 10.24 A
0.24 x 16 = 3.84 3
0.84 x 16 = 13.44 D
0.44 x 16 = 7.04 7
Ans = (16. A3D7) 16
11. Convert (231.3)4 to base 7. (May, 2005)
Convert the given number to decimal,
(231.3)4 = (2x42) + (3x41) + (1x40) + (3x4-1)
= 32+ 12+ 1+ 0.75 = (45.75)10
Now, convert this number to base 7.
Integer part:
7 45
6 -- 3
= (63)7
Fractional part:
0.75x 7 = 5.25 5
0.25x 7 = 1.75 1
0.75x 7 = 5.25 5
0.25x 7 = 1.75 1 = (0.5151)7
(231.3)4 = (63.5151)7
13. Convert the following number from one base to other (Nov, 2006)
(a) (354.52) 6 = ( )10
(b) (100)10 = ( ) 16.
(a) (354.52) 6 = (3x62) + (5x61) + (4x60) + (5x6-1) + (2x6-2)
= 108+ 30+ 4 + 0.8333+ 0.0555
= (142.888) 10
(354.52) 6 = (142.888) 10
(b) (100)10
16 100
6 -- 4
= (64)7
(100)10 = (64)16.
(10,000)10 = (2710)16
Complements :
15. What are the different types of number complements?
i) r’s Complement
ii) (r-1)’s Complement.
16. What is the range of values that can be represented using n-bit 2’s
complement form of representation? What is the corresponding range with n-bit
1’s complement form? (May, 2006)
The given number N in the base 2 having n digits. The 2’s complement of N is
defined as follows.
2’s complement of N= + (2n-1- 1) to – (2n-1),
Where, n is number of digits.
The given number N in the base r= 2 having n digits. The (r-1)’s complement of
N is defined as follows.
1’s complement of N= + (2n-1- 1) to – (2n-1-1)
Where, N= given number or digit
20. Obtain the 1’s and 2’s complement of the following binary numbers:
a) 11101010 b) 01111110 c) 00000001 d) 10000000 e) 00000000
Soln:
1’s complement : change every 1 to 0 and vice versa.
2’s complement: change every 1 to 0 and vice versa, then add (1) to the LSB.
a) 11101010
1’s complement: (00010101)2
2’s complement : 0 0 0 1 0 1 0 1
(+) 1
--------------------
(0 0 0 1 0 1 1 0)2
---------------------
b) 01111110
1’s complement: (10000001)2
2’s complement : 1 0 0 0 0 0 0 1
(+) 1
---------------------
(1 0 0 0 0 0 1 0)2
---------------------
c) 00000001
1’s complement: (01111110)2
2’s complement : 0 1 1 1 1 1 1 0
(+) 1
----------------------
(1 1 1 1 1 1 1 1)2
-----------------------
d) 10000000
1’s complement: (01111111)2
2’s complement : 0 1 1 1 1 1 1 1
(+) 1
-----------------------
(1 0 0 0 0 0 0 0)2
-----------------------
e) 00000000
1’s complement: (11111111)2
2’s complement : 0 1 1 1 1 1 1 1
(+) 1
-----------------------
(1 0 0 0 0 0 0 0 0)2
-----------------------
21. Find 2’s complement of (1 0 1 0 0 0 1 1) 2
Soln:
010111001 - 1’s Complement
(+) 0 0 0 0 0 0 1
----------------------
(0 1 0 1 1 1 0 1 0)2 - 2’s complement.
----------------------
b) Y = 1 0 0 0 0 1 1
0101100 (2's complement of X)
-----------------
1101111
There is no end carry, So, take 2’s complement again for the above answer.
Answer is Y-X = - (2's complement of 1101111)
= - (0010001)2
b) Y - X = 1000011 - 1010100
Y=1000011
0101011 (1's complement of X)
-----------------
1101110
There is no end carry.
Answer is Y - X = - (1's complement of 1101110)
= - (0010001)2
26. What are the different ways to represent a negative number? (Nov, 2006)
The different ways of representing a negative number are-
i. In ordinary arithmetic, the negative sign is indicated by a minus sign.
ii. In signed magnitude representation, in which MSB is indicated as ‘0’ to
represent negative number.
iii. In signed 1’s complement representation, in which the negative number is
indicated by its 1’s complement.
iv. In signed 2’s complement representation, in which the negative number is
indicated by its 2’s complement.
Binary Codes :
27. Mention the different type of binary codes?
The various types of binary codes are,
i. BCD code (Binary Coded decimal).
ii. Self-complementing code.
iii. The excess-3 (X’s-3) code.
iv. Gray code.
v. Binary weighted code.
vi. Alphanumeric code.
vii. The ASCII code.
viii. Extended binary-coded decimal interchange code (EBCDIC).
ix. Error-detecting and error-correcting code.
x. Hamming code.
43. Show that A+A’.B = A+B using the theorems of Boolean algebra. (Nov,
2005)
LHS= A+A’.B
= A+ AB + A’B [ A+AB = A]
= A+ B (A+ A’)
= A+ B (1) [A+ A’= 1]
= A+ B
Canonical Form :
44. What are minterms? (May, 2008)
Each individual term in standard SOP form is called minterms
46. Find the minterms of the logical expression Y= A'B'C' +A'B'C +A'BC
+ABC'
Y = A'B'C' + A'B'C + A'BC + ABC'
= m0 + m1 +m3 +m6
= ∑m (0, 1, 3, 6)
47. Convert the given expression in canonical SOP form Y = AC + AB + BC
Y = AC + AB + BC
= AC (B + B’) + AB (C + C’) + (A + A') BC
= ABC + ABC' + AB'C + AB'C' + ABC + ABC' + ABC
= ABC + ABC' +AB'C + AB'C' [A + A =1]
= m7 + m6 +m5 +m4
= ∑m (4, 5, 6, 7)
50. Find the complement of the functions F1 = x'yz' + x'y'z and F2 = x (y'z' + yz).
By applying De-Morgan's theorem.
F1' = (x'yz' + x'y'z)'
= (x'yz')'(x'y'z)'
= (x + y' + z) (x + y +z')
F2' = [x (y'z' + yz)]'
= x' + (y'z' + yz)'
= x' + (y'z')'(yz)'
= x' + (y + z) (y' + z')
52. Obtain the complement of f = wx’y + xy’+ wxz using De Morgan’s theorem.
(May, 2006)
f’ = (wx’y + xy’+ wxz)’
= (wx’y)’ (xy’)’ (wxz)’
= (w’+x+ y’) (x’+ y) (w’+ x’+ z’)
= (w’x’+ w’y+ xx’+ xy+ x’y’+ yy’) (w’+ x’+ z’)
= (w’x’+ w’y+ xy+ x’y’) (w’+ x’+ z’)
= w’x’. w’+ w’y. w’+ xy. w’+ x’y’. w’+ w’x’. x’+w’y. x’+ xy. x’+ x’y’. x’+
w’x’. z’+ w’y. z’+ xy. z’+ x’y’.z’
= w’x’+ w’y+ w’xy+ w’x’y’+ w’x’+ w’x’y+ 0 + x’y’+ w’x’z’+ w’yz’+ xyz’+
x’y’z’
= w’x’+ w’y+ w’xy+ w’x’y’+ w’x’y+ x’y’+ w’x’z’+ w’yz’+ xyz’+ x’y’z’
= w’x’( 1+ y’+ y+ z’)+ w’y( 1+ x+ z’)+ x’y’(1+ z’)+ xyz’
= w’x’(1)+ w’y(1)+ x’y’(1)+ xyz’
= w’x’+ w’y+ x’y’+ xyz’
60. Reduce A (A + B)
A (A + B)
= A.A + A.B
= A + A.B
= A (1 + B) [1 + B = 1]
= A.
b) xy + x’z + yz.
= xy + x’z + yz (1)
= xy + x’z + yz (x+ x’) [x+ x’= 1]
= xy + x’z + xyz + x’yz
Re-arranging,
= xy + xyz + x’z +x’yz
= xy (1+ z) + x’z (1+y)
= xy (1) + x’z (1) [1+y= 1]; [1+z= 1]
= xy+ x’z.
63. Simplify the following expression Y = (A + B) (A + C) (B + C)
= (A A + A C + A B + B C) (B + C)
= (A C + A B + B C) (B + C)
=ABC+ACC+ABB+ABC+BBC+BCC
=ABC
74. Explain or list out the advantages and disadvantages of K-map method?
The advantages of the K-map method are
i. It is a fast method for simplifying expression up to four variables.
ii. It gives a visual method of logic simplification.
iii. Prime implicants and essential prime implicants are identified fast.
iv. Suitable for both SOP and POS forms of reduction.
v. It is more suitable for class room teachings on logic simplification.
76. List out the advantages and disadvantages of Quine Mc-Cluskey method?
The advantages are,
i. This is suitable when the number of variables exceed four.
ii. Digital computers can be used to obtain the solution fast.
iii. Essential prime implicants, which are not evident in K-map, can be clearly seen in
the final results.
Logic Gates :
78. Distinguish between positive logic and negative logic. (Nov, 2003)
In binary logic, two voltage levels represent the two binary digits, 1 and 0. If the
higher of the two voltages represents a 1 and the lower voltage represents a 0, the system
is called positive logic system. On the other hand, if the lower voltage represents a 1 and
the higher voltage represents a 0, then it is a negative logic system.
80. Which gates are called as the universal gates? What are its advantages?
The NAND and NOR gates are called as the universal gates. These gates are used
to perform any type of logic application.
83. How will you use a 4 input NOR gate as a 2 input NOR gate? (May, 2003)
By connecting unused inputs to logic 0, we can use 4-input NOR gate as a 2 input
NOR gate.
84. How will you use a 4 input NAND gate as a 2 input NAND gate? (Nov,
2002)
By connecting unused inputs to logic 1, we can use 4-input NAND gate as a 2
input NAND gate.
85. What is meant by a functionally complete set of logic gates? (May, 2005)
A set of logic gates by which we can implement any logic function is called
functionally complete set of logic gates.
86. Show that a positive logic NAND gate is the same as a negative logic NOR
gate.
(May, 2003; Nov, 2004)
Logic expression for NAND gate is, Y= (A .B)’
Y= (A .B)’
= A’ +B’
Y= A’ + B’ is the logic expression for negative logic NOR gate.
87. What happens when all the gates is a two level AND-OR gate network are
replaced by NOR gate (May, 2004; Nov, 2004, IT)
The output will change. We will get complemented output when all applied inputs
are complemented.
CHAPTER 2
COMBINATIONAL LOGIC
2. What is a half-adder?
A half-adder is a combinational circuit that can be used to add two bits. It has two
inputs that represent the two bits to be added and two outputs, with one producing the
SUM output and the other producing the CARRY.
3. Give the truth table for a half adder.
Inputs Outputs
A B Sum (S) Carry (C)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
4. From the truth table of a half adder derive the logic equation
8. From the truth table of a full adder derive the logic equation
11. Give the truth table for a half Subtractor. (Nov, 2005)
Inputs Outputs
A B Difference (D) Borrow (Bout)
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
12. From the truth table of a half-Subtractor derive the logic equation
13. Draw the circuit of a half-subtractor.
Inputs Outputs
Difference(D
A B Bin Borrow(Bout)
)
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
16. From the truth table of a full-Subtractor derive the logic equation
21. Draw the circuit diagram for 3-bit parity generator. (Nov, 2007)
22. Draw the logic diagram of 4 bit even parity checker. (Nov, 2008)
27. Construct a 4-bit binary to gray code converter circuit and discuss its
operation. (May, 2006)
The gray code is often used in digital systems because it has the advantage that
only bit in the numerical representation changes between successive.
29. List the important features of HDL. (Nov, 2006; May 2010)
1. It is specifically oriented to describe hardware structures and behaviors.
2. It can be used to represent logic diagrams, Boolean expressions and other
complex digital circuits.
3. It is used to represent and document digital systems in a form that can be read
by both humans and computers.
CHAPTER 3
Here, binary counter is used to derive the select inputs of the multiplexer so that
as the binary counter increments its count, the next bit is available at the output of the
multiplexer. The binary counter counts from 000 to 111, therefore D0 through D7 bits are
available at the output of the multiplexer as serial output.
13. Mention the uses of multiplexer.
1. It can be used to realize a Boolean function
2. It can be used in communication systems e.g., time division multiplexing.
14. Mention any two applications of multiplexers. (May, 07; May, 09)
1. Data routing
2. Logic function generator
3. Control sequencer
4. Parallel-to-serial converter.
15. Construct a 16×1 multiplexer with two 8×1 multiplexer and 2×1 multiplexer.
(Nov, 2008)
Dynamic RAM
2. The stored charges on the capacitors tend to discharge with time and the
capacitors must be tending to discharge with time and the capacitors must be periodically
recharged by refreshing the dynamic memory.
3. DRAM offers reduced power consumption and larger storage capacity in a
single memory chip.
48. What are the difference between PLA and PAL? (Nov, 2006)
S.No PLA PAL
PLA is a device with a PAL is a programmable logic device with a
1 programmable AND array and fixed OR array and programmable AND
programmable OR array array.
PLA is comparatively difficult to
PAL is easier to program as only AND gates
2 program, as both AND and OR
are programmable.
array are programmable.
3 It is flexible. It is less flexible than PLA.
49. Give differences between PROM, PLA, and PAL. (Nov, 09)
S.No PROM PLA PAL
AND array is fixed and OR array is fixed and
Both AND and OR arrays
1 OR array is AND array is
are programmable
programmable programmable
Cheaper and simpler to
2 Costliest and complex Cheaper and simpler
use
AND array can be AND array can be
All minterms are
3 programmed to get desired programmed to get
decoded
minterms desired minterms
Only Boolean functions
Any Boolean functions in Any Boolean functions
in standard SOP form
4 SOP form can be in SOP form can be
can be implemented
implemented using PLA implemented using PLA
using PROM
50. What are the terms that determine the size of a PAL?
The size of a PAL is specified by the
a. Number of inputs
b. Number of products terms
c. Number of outputs
54. What is the maximum range of a memory that can be accessed using 10
address lines? (May, 2008)
Maximum range of memory = 2 address lines.
= 210
= 1024 bytes.
58. What are the modelling techniques available to build HDL module?
(May, 2007)
1. Gate level modeling using instantiation of primitive gates and user-defined
modules.
2. Data flow modeling, using continuous assignment statements with keyword
‘assign’.
3. Behavioral modeling using procedural assignment with keyword ‘always’.
CHAPTER 4
SYNCHRONOUS SEQUENTIAL
CIRCUITS
1. What is sequential circuit?
The circuits in which the output variables depend not only on the present input but
they also depend upon the past history of these input variables are known as sequential
circuits.
2. What are the differences between sequential and combinational logic circuits?
(Nov, 2004; Nov, 2007; May 2010)
S.No Combinational logic Sequential logic
Output depends on present input Output depends not only on present input
1
but also depend upon the past inputs.
Memory unit is not required Memory unit is required to store past input
2
variables
3 Faster in speed Slower
4 Easy to design Hard
Ex: Adders, Subtractor, MUX, Ex: Shift Registers, Counters
5
DEMUX, Encoder, Decoder etc..,
Flip-flops
8. What is called latch?
Latch is a simple memory element, which consists of a pair of logic gates with
their inputs and outputs inter connected in a feedback arrangement, which permits a
single bit to be stored.
Enable signal is provided with the latch. When enable signal is active, output
changes with output. When enable signal is not activated, input changes does not affect
output.
9. Draw the internal circuit of a NOR gate latch and derive the truth table.
(May, 2006)
The SR latch is a digital circuit with two inputs S and R and two cross-coupled
NOR gates.
Truth table:
S R Qn Qn+1 State
0 0 0 0 No Change
0 0 1 1 (NC)
0 1 0 0
Reset
0 1 1 0
1 0 0 1
Set
1 0 1 1
1 1 0 x Indeterminate
1 1 1 x *
21. What is race around condition? How can it be avoided? (May, 09; Nov, 09)
In a JK latch, when J and k are both high, then the output toggles continuously.
This condition is called a race around condition.
Due to this, in the positive half cycle of the clock pulse (Enable), if J and K both
are HIGH, then the output toggles continuously.
To avoid this condition, an edge triggered or pulse triggered JK flip-flop is
created. In this flip-flop, the output changes only at the positive edge or a negative edge
of the clock.
23. Write down the characteristic table of JK flip flop. (Nov, 2008)
Characteristic Equation:
Qn+1= JQ’+ K’Q.
Characteristic Equation:
Qn+1= D.
33. Derive the characteristic equation of a T flip-flop. (May, 2004, IT)
Characteristic equation:
Qn+1= TQn’+ T’Qn
34. What is the difference between truth table and excitation table?
i) An excitation table is a table that lists the required inputs for a given change of
state.
ii) A truth table is a table indicating the output of a logic circuit for various input
states.
SR to D Flip-Flop
36. How will you convert a SR flip-flop into JK flip-flop?
SR to JK Flip-Flop
JK to T Flip-Flop
D to T Flip-Flop
42. What are the models used to represent clocked sequential circuits? (Nov, 2006)
The clocked sequential circuits are represented by two models as
1. Moore circuit,
2. Mealy circuit.
43. What is the difference between a Mealy machine and Moore machine?
(Nov, 2008; May, 2005)
S.No Moore model Mealy model
1 Its output is a function of present Its output is a function of present state as
state only. well as present input.
2 An input change does not affect the An input change may affect the output of
output. the circuit
3 It requires more number of states for It requires less number of states for
implementing same function. implementing same function.
48. A reduced state table has 14 rows. What is the minimum number of flip-flops
needed to build the sequential circuit? (Nov, 2004)
24 ≥ 14.
Therefore, 4 flip-flops.
Counters
65. How many flip-flops are required for designing synchronous MOD50 counter?
(May, 2009)
2n ≥ N
26 ≥ 8
Therefore, six flip-flops are required.
66. Form the truth table for 3-bit binary down counter.
Clk Q2 Q1 Q0
1 1 1 1
1 1 1 0
1 1 0 1
1 1 0 0
1 0 1 1
1 0 1 0
1 0 0 1
1 0 0 0
1 1 1 1
71. State the relative merits of series and parallel counters. (May, 2003)
In comparison with parallel counters the serial counters have simple logic circuits;
however, serial counters are low speed counters as the clock is propagated through
number is flip-flops before it reaches the last flip-flop.
Shift Register
78. How many flip-flops are needed to build an 8-bit register? (Nov,
2002)
8 -flops are needed to build an 8-bit register.
81. A shift register comprises of JK flip-flops. How will you complement the
contents of the register? (May, 2003)
In shift register outputs J and K of previous flip-flop is connected to the inputs of
the next flip-flop. If these lines are connected through OR gate, we can complement the
contents of flip-flop. When complement line is high all J and K inputs will be high and
flip-flops will complement the output.
82. How many states are there in a 3-bit ring counter? What are they? (May, 2007)
The number of states in a 3-bit counter is three- 001, 010, 100.
CHAPTER 5
ASYNCHRONOUS SEQUENTIAL CIRCUITS
2. Define cycles.
If an input change includes a feedback transition through more than unstable state
then such a situation is called a cycle.
11. Define static 0-hazard, static 1-hazard and dynamic hazard. (May, 2005)
In a combinational circuit, if output goes momentarily 0 when it should remain a
1, the hazard is known as static-1 hazard.
If the output goes momentarily 1 when it should remain a 0, the hazard is known
as static-0 hazard.
When the output changes three or more times when it should change from 1 to 0
or from 0 to 1 is known as dynamic hazard.
12. Does Hazard occur in sequential circuit? If so what is the problem caused?
Yes, Hazards occur in sequential circuit that is Asynchronous sequential circuit.
It may result in a transition to a wrong state.
13. Describe how to detect and eliminate hazards from an asynchronous network.
(May, 2005)
Hazards can be eliminated by enclosing two minterms or maxterms.
16. What are the two types of asynchronous circuits? How do they differ?
(May, 2006)
Two types of asynchronous circuits are –
1. Fundamental mode circuit,
2. Pulse mode circuit.
According to the characteristics of the input,
Fundamental mode circuit:
The input is allowed to charge after the steady state condition. Here the inputs are
levels and not pulses.
Pulse mode circuit:
Here the inputs are pulses. The pulses width must not be so long that it is still
present after the new state is reached.
Generally Fundamental mode circuit is preferred over pulse mode circuits because
it is very difficult to fix the pulse width.
17. What are the assumptions that must be made for fundamental mode circuit?
(May 2008)
1. The input variables change only when the circuit is stable.
2. Only one input variable can change at a given time.
3. Inputs are levels and not pulses.
18. What are the assumptions made for pulse mode circuit?
(Nov 2006; May, 2007; Nov, 2007)
1. The input variables are pulses instead of levels.
2. The width of the pulses is long enough for the circuit to respond to the input.
3. The pulse width must not be so long that it is still present after the new state is
reached.
22. Give the procedural steps for determining the compatibles used for the
purpose of merging a flow table.
The purpose that must be applied in order to find a suitable group of compatibles
for the purpose of merging a flow table can be divided into 3 procedural steps.
i. Determine all compatible pairs by using the implication table.
ii. Find the maximal compatibles using a Merger diagram
iii. Find a minimal collection of compatibles that covers all the states and is closed.
23. What are the steps for the design of asynchronous sequential circuit? (Nov, 09)
1. Construction of a primitive flow table from the problem statement.
2. Primitive flow table is reduced by eliminating redundant states using the state
reduction.
3. State assignment is made.
4. The primitive flow table is realized using appropriate logic elements.