Digital - Questions - With - Answers - PDF Version 1
Digital - Questions - With - Answers - PDF Version 1
Q.1 The NAND gate output will be low if the two inputs are
(A) 00 (B) 01
(C) 10 (D) 11
Ans: D
The NAND gate output will be low if the two inputs are 11
(The Truth Table of NAND gate is shown in Table.1.1)
X(Input) Y(Input) F(Output)
0 0 1
0 1 1
1 0 1
1 1 0
Ans: A
The Binary equivalent of the Decimal number 368 is 101110000
(Conversion from Decimal number to Binary number is given in Table 1.2)
2 368
2 184 --- 0
2 92 --- 0
2 46 --- 0
2 23 --- 0
2 11 --- 1
2 5 --- 1
2 2 --- 1
2 1 --- 0
0 --- 1
Table 1.2 Conversion from Decimal number to Binary number
1
Silicon Valley VLSI Vision Academy
Made with Xodo PDF Reader and Editor
Ans: B
The decimal equivalent of Hex Number 1A53 is 6739
(Conversion from Hex Number to Decimal Number is given below)
1 A 5 3 Hexadecimal
16³ 16² 16¹ 16 Weights
Ans: D
(734)8 = (1 D C)16
0001 | 1101 | 1100
1 D C
Q.5
The simplification of the Boolean expression ABC ABC is
(A) 0 (B) 1
(C) A (D) BC
Ans: B
The Boolean expression is ABC + ABC is equivalent to 1
ABC + ABC = A + B + C + A + B + C = A + B + C + A + B + C
= (A+ A )(B+ B )(C+ C ) = 1X1X1 = 1
Ans: B
The number of control lines for an 8 to 1 Multiplexer is 3
(The control signals are used to steer any one of the 8 inputs to the output)
Ans: D
The number of flip-flops is required for Mod-16 Counter is 4.
2
Silicon Valley VLSI Vision Academy
Made with Xodo PDF Reader and Editor
(For Mod-m Counter, we need N flip-flops where N is chosen to be the smallest number
for which 2N is greater than or equal to m. In this case 24 greater than or equal to 1)
Ans: A
EPROM contents can be erased by exposing it to Ultraviolet rays
(The Ultraviolet light passes through a window in the IC package to the EPROM chip
where it releases stored charges. Thus the stored contents are erased).
Q.9 The hexadecimal number ‘A0’ has the decimal value equivalent to
(A) 80 (B) 256
(C) 100 (D) 160
Ans: D
The hexadecimal number ‘A0’ has the decimal value equivalent to 160
( A 0
1
16 160 = 10X161 + 0X160 = 160)
Ans: C
The Gray code for decimal number 6 is equivalent to 0101
(Decimal number 6 is equivalent to binary number 0110)
+ + +
0 1 1 0
0 1 0 1
Ans: A
The Boolean expression A .B + A. B + A.B is equivalent to A + B
( A .B + A. B + A.B = B( A + A ) + A. B
= B + A. B {m( A + A ) = 1}
= A + B {m(B + A. B ) = B + A}
Q.12 The digital logic family which has minimum power dissipation is
3
Silicon Valley VLSI Vision Academy
Made with Xodo PDF Reader and Editor
Ans: D
The digital logic family which has minimum power dissipation is CMOS.
(CMOS being an unipolar logic family, occupy a very small fraction of silicon Chip
area)
Q.13 The output of a logic gate is 1 when all its inputs are at logic 0. the gate is either
(A) a NAND or an EX-OR (B) an OR or an EX-NOR
(C) an AND or an EX-OR (D) a NOR or an EX-NOR
Ans: D
The output of a logic gate is 1 when all inputs are at logic 0. The gate is either a NOR or an
EX-NOR .
(The truth tables for NOR and EX-NOR Gates are shown in fig.1(a) & 1(b).)
Fig.1(a) Truth Table for NOR Gate Fig.1(b) Truth Table for EX-NOR Gate
Q.14 Data can be changed from special code to temporal code by using
(A) Shift registers (B) counters
(C) Combinational circuits (D) A/D converters.
Ans: A
Data can be changed from special code to temporal code by using Shift Registers.
(A Register in which data gets shifted towards left or right when clock pulses are
applied is known as a Shift Register.)
Ans: A
A ring counter consisting of Five Flip-Flops will have 5 states.
4
Silicon Valley VLSI Vision Academy
Made with Xodo PDF Reader and Editor
Ans: B
The speed of conversion is maximum in Parallel-comparator A/D converter
(Speed of conversion is maximum because the comparisons of the input voltage are
carried out simultaneously.)
Ans: D
The 2’s complement of the number 1101101 is 0010011
(1’s complement of the number 1101101 is 0010010
2’s complement of the number 1101101is 0010010 + 1 =0010011)
Ans: B
The correction to be applied in decimal adder to the generated sum is 00110.
When the four bit sum is more than 9 then the sum is invalid. In such cases, add +6(i.e.
0110) to the four bit sum to skip the six invalid states. If a carry is generated when adding 6,
add the carry to the next four bit group .
Ans: D
When simplified with Boolean Algebra (x + y)(x + z) simplifies to x + yz
[(x + y) (x + z)] = xx + xz + xy + yz = x + xz + xy + yz (mxx = x)
= x(1+z) + xy + yz = x + xy + yz {m(1+z) = 1}
= x(1 + y) + yz = x + yz {m(1+y) = 1}]
Ans: C
The gates required to build a half adder are EX-OR gate and AND gate
Fig.1(d) shows the logic diagram of half adder.
A
S
B
5
Silicon Valley VLSI Vision Academy
Made with Xodo PDF Reader and Editor
Q.21 The code where all successive numbers differ from their preceding number by single bit is
(A) Binary code. (B) BCD.
(C) Excess – 3. (D) Gray.
Ans: D
The code where all successive numbers differ from their preceding number by single bit
is Gray Code.
(It is an unweighted code. The most important characteristic of this code is that only a
single bit change occurs when going from one code number to next.)
Ans: B
ECL is the fastest logic family of all logic families.
(High speeds are possible in ECL because the transistors are used in difference
amplifier configuration, in which they are never driven into saturation and thereby the
storage time is eliminated.
Q.23 If the input to T-flipflop is 100 Hz signal, the final output of the three T-flipflops in cascade is
(A) 1000 Hz (B) 500 Hz
(C) 333 Hz (D) 12.5 Hz.
Ans: D
If the input to T-flip-flop is 100 Hz signal, the final output of the three T-
flip-flops in cascade is 12.5 Hz
{The final output of the three T-flip-flops in cascade is
Frequency 100
(T) = = =12.5Hz}
2N 23
Ans: B
RAM is a volatile memory
(Volatile memory means the contents of the RAM get erased as soon as the power
goes off.)
Ans: A
- 8 is equal to signed binary number 10001000
6
Silicon Valley VLSI Vision Academy
Made with Xodo PDF Reader and Editor
(To represent negative numbers in the binary system, Digit 0 is used for the positive
sign and 1 for the negative sign. The MSB is the sign bit followed by the magnitude
bits. i.e.,
- 8 = 1000 1000
-
Sign Magnitude
Ans: B
DeMorgan’s first theorem shows the equivalence of NOR gate and Bubbled AND gate
(Logic diagrams for De Morgan’s First Theorem is shown in fig.1(a)
A
A Y
B B
Q.27 The digital logic family which has the lowest propagation delay time is
(A) ECL (B) TTL
(C) CMOS (D) PMOS
Ans: A
The digital logic family which has the lowest propagation delay time is ECL
(Lowest propagation delay time is possible in ECL because the transistors are used in
difference amplifier configuration, in which they are never driven into saturation and thereby
the storage time is eliminated).
Q.28 The device which changes from serial data to parallel data is
(A) COUNTER (B) MULTIPLEXER
(C) DEMULTIPLEXER (D) FLIP-FLOP
Ans: C
The device which changes from serial data to parallel data is demultiplexer.
(A demultiplexer takes in data from one line and directs it to any of its N outputs
depending on the status of the select inputs.)
7
Silicon Valley VLSI Vision Academy
Made with Xodo PDF Reader and Editor
Ans: B
A device which converts BCD to Seven Segment is called DECODER.
(A decoder coverts binary words into alphanumeric characters.)
Ans: C
In a JK Flip-Flop, toggle means Change the output to the opposite state.
Ans: C
The access time of ROM using bipolar transistors is about 1 sec.
Q.32 The A/D converter whose conversion time is independent of the number of bits is
(A) Dual slope (B) Counter type
(C) Parallel conversion (D) Successive approximation.
Ans: C
The A/D converter whose conversion time is independent of the Number of bits is
Parallel conversion.
(This type uses an array of comparators connected in parallel and comparators compare
the input voltage at a particular ratio of the reference voltage).
Q.33 When signed numbers are used in binary arithmetic, then which one of the following
notations would have unique representation for zero.
(A) Sign-magnitude. (B) 1’s complement.
(C) 2’s complement. (D) 9’s complement.
Ans: A
Q.34 The logic circuit given below (Fig.1) converts a binary code y1y2 y3 into
8
Made with Xodo PDF Reader and Editor
Q.35 The logic circuit shown in the given fig.2 can be minimised to
(A) (B)
(C) (D)
Ans: D
As output of the logic circuit is
Y=(X+Y’)’+(X’+(X+Y’)’)’
(X+Y’)’=X’Y Using DE Morgan’s
Now this is one of input of 2nd gate.
F=(A+X’)’=A’X=[(X’Y)’.X]
=[(X+Y’)X]=X+XY’=X(Y’)
=X
Q.36 In digital ICs, Schottky transistors are preferred over normal transistors because of their
(A) Lower Propagation delay. (B) Higher Propagation delay.
(C) Lower Power dissipation. (D) Higher Power dissipation.
Ans: A
Lower propagation delay as shottky transistors reduce the storage time delay by
preventing the transistor from going deep into saturation.
9
Made with Xodo PDF Reader and Editor
Q.38 A 4-bit synchronous counter uses flip-flops with propagation delay times of 15 ns each. The
maximum possible time required for change of state will be
(A) 15 ns. (B) 30 ns.
(C) 45 ns. (D) 60 ns.
Ans: A
15 ns because in synchronous counter all the flip-flops change state at the same time.
Q.39 Words having 8-bits are to be stored into computer memory. The number of lines required for
writing into memory are
(A) 1. (B) 2.
(C) 4. (D) 8.
Ans: D
Because 8-bit words required 8 bit data lines.
1
Q.40 In successive-approximation A/D converter, offset voltage equal to LSB is added to the
2
D/A converter’s output. This is done to
(A) Improve the speed of operation.
(B) Reduce the maximum quantization error.
(C) Increase the number of bits at the output.
(D) Increase the range of input voltage that can be converted.
Ans: B
Ans: A
4 3 2 111010 = 1 X 2 +
1X 2 + 0 X 2 + 1 X 2 = 26
Q.42 1’s complement representation of decimal number of -17 by using 8 bit representation is
(A) 1110 1110 (B) 1101 1101
(C) 1100 1100 (D) 0001 0001
Ans: A
(17)10 = (10001)2
In 8 bit = 00010001
1's Complement = 11101110
10
Made with Xodo PDF Reader and Editor
Ans: B
(26)10 in BCD is ( 00100110 ) BCD
Add 011 to each BCD 01011001 for excess – 3
Ans: D
To realize Y = CD + EF + G
Two AND gates are required (for CD & EF).
Ans: A
4
In 16 to 1 MUX four select lines will be required to select 16 ( 2 ) inputs.
Q.46 How many flip flops are required to construct a decade counter
(A) 10 (B) 3
(C) 4 (D) 2
Ans: C
Decade counter counts 10 states from 0 to 9 ( i.e. from 0000 to 1001 )
Thus four FlipFlop's are required.
Ans: A
Open collector output.
Ans: B
As in CMOS one device is ON & one is Always OFF so power consumption is low.
11
Made with Xodo PDF Reader and Editor
Ans: A
RAM is used by the user, number of times.
0 5
8 247
8 30 7
8 3 6
0 3
Q.52 The chief reason why digital computers use complemented subtraction is that it
(A) Simplifies the circuitry.
(B) Is a very simple process.
(C) Can handle negative numbers easily.
(D) Avoids direct subtraction.
Ans: C
Using complement method negative numbers can also be subtracted.
Ans: B
12
Made with Xodo PDF Reader and Editor
We decide two voltages levels for positive digital logic. Higher voltage represents logic
1 & a lower voltage represents logic 0.
Q.54 The commercially available 8-input multiplexer integrated circuit in the TTL family is
(A) 7495. (B) 74153.
(C) 74154. (D) 74151.
Ans: B
MUX integrated circuit in TTL is 74153.
Q.55 CMOS circuits are extensively used for ON-chip computers mainly because of their extremely
(A) low power dissipation. (B) high noise immunity.
(C) large packing density. (D) low cost.
Ans: C
Because CMOS circuits have large packing density.
Ans: C
MSI chip 7474 dual edge triggered D Flip-Flop.
Q.57 Which of the following memories stores the most number of bits
(A) a 5M 8 memory. (B) a 1M 16 memory.
(C) a 5M 4 memory. (D) a 1M 12 memory.
Ans: A
5Mx8 = 5 x 220 x 8 = 40M (max)
Ans: B
The process of entering data into ROM is known as programming the ROM.
Q.59 When the set of input data to an even parity generator is 0111, the output will be
(A) 1 (B) 0
(C) Unpredictable (D) Depends on the previous input
Ans: B
In even parity generator if number of 1 is odd then output will be zero.
13
Made with Xodo PDF Reader and Editor
Ans: A
(140)8 = (96)10
1 x 82 + 4 x 8 + 0x 1 = 64 + 32 = 96
Q.61 The NOR gate output will be low if the two inputs are
(A) 00 (B) 01
(C) 10 (D) 11
Ans: B, C, or D
O/P is low if any of the I/P is high
Ans: A
Ans: A
Mod - 30 counter +/- needs 5 Flip-Flop as 30 < 25
Mod - N counter counts total ' N ' number of states.
To count 'N' distinguished states we need minimum n FlipFlop's as [N = 2n]
For eg. Mod 8 counter requires 3 Flip-Flop's (8 = 23)
Ans: D
32K = 25 x 210 = 215,
Thus 15 address bits are required, Only 16 bits can address it.
Ans: B
As 16 = 24, 4 Select lines are required.
Ans: B
Ans:C
Q.68 For JK flip flop with J=1, K=0, the output after clock pulse will be
(A) 0. (B) 1.
(C) high impedance. (D) no change.
Ans: B
Ans: A
(153)10 = (231)8
8 153 1
8 19 3
8 2 2
Ans: A
(1100)2 = (12)10
Ans: B
(FA)16 = (11111010)10
15
Made with Xodo PDF Reader and Editor
Ans: A
As for the SR flip-flop S=set input R=reset input ,when S=1, R=0, Flip-flop will be set.
Ans: A
Ans: B
The number of control lines for 32 (25) and to select one input among them total 5 select
lines are required.
Q.75 How many two-input AND and OR gates are required to realize Y=CD+EF+G
(A) 2,2. (B) 2,3.
(C) 3,3. (D) none of these.
Ans: A
Y=CD+EF+G
Number of two input AND gates=2
Number of two input OR gates = 2
One OR gate to OR CD and EF and next to OR of G & output of first OR gate.
Ans: D
Magnetic tape can only be accessed sequentially.
Ans: D
An excess 3 code is always equal to the binary code +3
Q.78 When an input signal A=11001 is applied to a NOT gate serially, its output signal is
(A) 00111. (B) 00110.
(C) 10101. (D) 11001.
Ans: B
As A=11001 is serially applied to a NOT gate, first input applied will be LSB 00110.
16
Made with Xodo PDF Reader and Editor
Ans: B
Q.80 A universal logic gate is one, which can be used to generate any logic function. Which of
the following is a universal logic gate?
(A) OR (B) AND
(C) XOR (D) NAND
Ans: D
NAND can generate any logic function.
Ans: D
CMOS logic low level is 0 volts approx.
Ans: C
Ans: D
A full adder circuit will add two bits and it will also accounts the carry input generated in
the previous stage. Thus three inputs and two outputs (Sum and Carry) are there.
Q.84 An eight stage ripple counter uses a flip-flop with propagation delay of 75 nanoseconds. The
pulse width of the strobe is 50ns. The frequency of the input signal which can be used for
proper operation of the counter is approximately
(A) 1 MHz. (B) 500 MHz.
(C) 2 MHz. (D) 4 MHz.
Ans: A
17
Made with Xodo PDF Reader and Editor
Maximum time taken for all flip-flops to stabilize is 75ns x 8 + 50 = 650ns. Frequency of
operation must be less than 1/650ns = 1.5 MHz.
Q.85 The output of a JK flipflop with asynchronous preset and clear inputs is ‘1’. The output can be
changed to ‘0’ with one of the following conditions.
(A) By applying J = 0, K = 0 and using a clock.
(B) By applying J = 1, K = 0 and using the clock.
(C) By applying J = 1, K = 1 and using the clock.
(D) By applying a synchronous preset input.
Ans: C
Preset state of JK Flip-Flop =1
With J=1 K=1 and the clock next state will be complement of the present state.
Ans: B
Q.87 The conversation speed of an analog to digital converter is maximum with the following
technique.
(A) Dual slope AD converter.
(B) Serial comparator AD converter.
(C) Successive approximation AD converter.
(D) Parallel comparator AD converter.
Ans: D
Q.88 A weighted resistor digital to analog converter using N bits requires a total of
(A) N precision resistors. (B) 2N precision resistors.
(C) N + 1 precision resistors. (D) N – 1 precision resistors.
Ans: A
Ans: C
1’s complement of 1101110 is = 0010001
Thus 2’s complement of 1101110 is = 0010001 + 1 = 0010010
18
Made with Xodo PDF Reader and Editor
Ans: A
1x24 + 0x23 +1x22 +0x21 + 1x20
= 16 + 0 + 4 + 0 + 1 = 21.
Q.91 How many two input AND gates and two input OR gates are required to realize
Y = BD+CE+AB
(A) 1, 1 (B) 4, 2
(C) 3, 2 (D) 2, 3
Ans: A
There are three product terms, so three AND gates of two inputs are required.
As only two input OR gates are available, so two OR gates are required to get the logical
sum of three product terms.
Q.92 How many select lines will a 32:1 multiplexer will have
(A) 5. (B) 8.
(C) 9. (D) 11.
Ans: A
For 32 inputs, 5 select lines will be required, as 25 = 32.
Ans: B
For representing 4K memory, 12 address bits are required as
4K = 22 x 210 = 212 (1K = 1024 = 210)
Q.94 For JK flipflop J = 0, K=1, the output after clock pulse will be
(A) 1. (B) no change.
(C) 0. (D) high impedance.
Ans: C
J=0, K=1, these inputs will reset the flip-flop after the clock pulse. So whatever be the
previous output, the next state will be 0.
Ans: A
NAND & NOR are known as universal gates, because any digital circuit can be realized
completely by using either of these two gates.
Q.96 Which of the following memories stores the most number of bits
(A) 64K 8 memory. (B) 1M 8 memory.
19
Made with Xodo PDF Reader and Editor
Ans: C
32M x 8 stores most number of bits
25 x 220 = 225 (1M = 220 = 1K x 1K = 210 x 210)
Ans: B
CMOS consumes minimum power as in CMOS one p-MOS & one n-MOS transistors
are connected in complimentary mode, such that one device is ON & one is OFF.
20
Made with Xodo PDF Reader and Editor
PART – II
NUMERICALS
Q.1 Convert the octal number 7401 to Binary. (4)
Ans:
Conversion of Octal number 7401 to Binary:
Each octal digit represents 3 binary digits. To convert an octal number to binary
number, each octal digit is replaced by its 3 digit binary equivalent shown below.
7 4 0 1
101110001 → 171
Ans:
2’s Complements Subtraction of (7)10 – (11)10
First convert the decimal numbers 7 and 11 to its binary equivalents.
(7)10 = (0111)2
(11)10 = (1011)2 in 4-bit system
Then find out the 2’s complement for 1011 i.e.,
1100
21
Made with Xodo PDF Reader and Editor
Since there is no carry over flow occurring in the summation, the result is a negative
number, to find out its magnitude, 2’s Complement of the result must be found.
2’s Complement of 1100 is 0011
1
0100
Ans:
Gray equivalent of (25)10
The binary equivalent of Decimal number 25 is (00100101)2
1. The left most bit (MSB) in gray code is the same as the left most in binary
2. Add the left most bit to the adjacent bit
3. Add the next adjacent pair and so on., Discard if we get a carry.
0+0+1+0+0+1+0+1
0 0 1 1 0 1 1 1 Gray Number
Q.5
Evaluate x = A.B C A.D using the convention A = True and B = False. (4)
Ans:
Evaluate x = A .B + C A.D
= A B + C ( A + D ) (Since A.D = A + D by using Demorgan’s Law)
= A .B + C . A + C. D
By using the given convention, A = True = 1; B = False = 0
=1.0 + C.1+ C. D = 0 + 0 + C. D = C. D
Ans:
Simplify the Boolean Expression F = C (B +C) (A+B+C)
F = C (B+C) (A+B+C)
= CB + CC [(A+B+C)]
= CB + C [(A+B+C)] (m CC = C)
= CBA + CBB + CBC + CA + CB + CC
= ABC + CB + CB + CA + CB + CC (m CBB =CB & CBC = CB)
= ABC + CB + CA + C (m CB+CB+CB = CB; CC = C)
= ABC + BC + C (1+A)
= ABC + BC + C (m1+A = 1)
= ABC + C (1+B)
22
Made with Xodo PDF Reader and Editor
= ABC + C (m 1+B = 1)
= C (1+AB) = C {m(1+AB)=1}
Q.7 Simplify the following expression into sum of products using Karnaugh map
F(A, B, C, D) Σ(1,3,4,5,6,7,9,12,13) (7)
Ans:
Simplification of the following expression into sum of products using Karnaugh
Map:
F(A,B,C,D) = (1,3,4,5,6,7,9,12,13)
Karnaugh Map for the expression F(A,B,C,D) = (1,3,4,5,6,7,9,12,13)
is shown in Fig.4(a). The grouping of cells is also shown in the Figure.
Q.8 Simplify and draw the logic diagram for the given expression
F ABC ABC ABC ABC ABC . (7)
Ans:
Simplification of the logic expression
F = ABC + AB C + A B C + A BC + A B C
F = ABC + AB C + A B C + A BC + A B C
23
Made with Xodo PDF Reader and Editor
F = A + B + C + ( A + B )C + A B C + A ( B + C ) + A B C
(m ABC = A + B + C and AB = A + B by using Demorgan’s Law)
= A + B +C + A C + B C + A BC + A B + AC + A B C
= A + A C+ B + B C + C + A C + A B C +A B + A B C
= A (1+C)+ B (1 + C) + C (1 + A) + A B C + A B + A B C
= A + B + C + A B C + A B + A B C {m (1+C) = 1 and (1+A) = 1}
= ( A + A B ) + B (1 + AC) + C (1+ A B)
= ( A + B )+ B + C {m ( A + A B ) = ( A + B ); (1+AC) = 1 and (1+ A B) =1}
F = ( A + B + C ) (m B + B = B )
The logic diagram for the simplified expression F = ( A + B + C ) is given in fig.5(a)
_
A
A
_
B _ _ _
B F =A +B+C
_
C
C
Q.9 Determine the binary numbers represented by the following decimal numbers. (6)
(i) 25.5 (ii) 10.625 (iiii) 0.6875
Ans:
(i) Conversion of decimal number 25.5 into binary number:
Here integer part is 25 and fractional part is 0.5. First convert the integer part 25 into its
equivalent binary number i.e., divide 25 by 2 till the quotient becomes 0 shown in table
2(a)
Quotient Remainder
25
2 12 1
12
2 6 0
6
2 3 0
3
2 1 1
1
2 0 1
Table 2(a)
24
Made with Xodo PDF Reader and Editor
So, integer part (25)10 is equivalent to the binary number 11001. Next convert fractional
part 0.5 into binary form i.e., multiply the fractional part 0.5 by 2 till you get remainder
as 0
0.5
X2
1.0 Remainder
1 (Quotient)
The decimal fractional part 0.5 is equivalent to binary number 0.1. Hence, the decimal
number 25.5 is equal to the binary number 11001.1
Quotient Remainder
10
2 5 0
5
2 2 1
2
2 1 0
1
2 0 1
Table 2(b)
So, the integer part 10 is equal to binary number 1010. Next convert the decimal
fractional part 0.625 into its binary form i.e., multiply 0.625 by 2 till the remainder
becomes 0
0.625 0.250 0.50
X2 X2 X2
1 0 1 (Quotient)
So, the decimal fractional part 0.625 is equal to binary number 0.101. Hence the
decimal number 10.625 is equal to binary number 1010.101.
(iii) Conversion of fractional number 0.6875 into its equivalent binary number:
Multiply the fractional number 0.6875 by 2 till the remainder becomes 0 i.e.,
25
Made with Xodo PDF Reader and Editor
1 0 1 1 (Quotient)
So, the decimal fractional number 0.6875 is equal to binary number 0.1011.
Q.10 Perform the following subtractions using 2’s complement method. (8)
(i) 01000 – 01001 (ii) 01100 – 00011 (iii) 0011.1001 – 0001.1110
Ans:
(i) Subtraction of 01000-01001: 1’s complement of 01001 is 10110 and 2’s
complement is
10110+ 1 =10111. Hence
01000 = 01000
- 01001 = +10111 (2's complement)
11111 (Summation)
Since the MSB of the sum is 1, which means the result is negative and it is in 2's
complement form. So, 2's complement of 1111 =00001= (1) 10. Therefore, the result is – 1.
(ii) Subtraction of 01100-00011: 1’s complement of 00011 is 11100 and 2’s complement
is 11100 + 1 = 11101. Hence
01100 = 01100
– 00011 = + 11101 (2's complement)
1 01001 = + 9
Ignore
If a final carry is generated discard the carry and the answer is given by the remaining bits
Which is positive i.e., (1001)2 = (+ 9)10
(iii) Subtraction of 0011.1001 – 0001.1110: 1’s complement of 0001.1110 is 1110.0001
and its 2’s complement is 1110.0010.
0011.1001 = 0011.1001
- 0001.1110 = + 1110.1011 (2’s complement)
1 0001.101I = + 1 .68625
Ignore
26
Made with Xodo PDF Reader and Editor
If a final carry is generated discard the carry and the answer is given by the remaining
bits which is positive i.e., (0001.1011)2 = (+ 1.68625)10
Ans:
(i) XY XYZ X (Y XY )
= XY XYZ X (Y XY )
= X (Y YZ) X (Y XY )
= X (Y Z ) X (Y X )
(Because Y YZ = Y Z and Y XY = Y X )
= XY XZ XY XX
= XY XZ XY X (Because XX=X)
= XY XZ X (1 Y )
= XY XZ X (Because (1+Y=1)
= ( X Y )( X Z ) X (Because XY = X + Y )
= X X X Z Y X YZ X
= X X Z Y X YZ X (Because X X = X )
= X (1 Z Y ) Y Z X
= X YZ X
= (X X ) Y Z
= 1 Y Z (Because X X = 1)
=1 = 0 (Because 1 Y Z =1)
(ii) Y = (A + B)( A + C)(B + C)
Y = (A + B)( A + C)(B + C)
= (A A + AC + B A + BC) (B + C)
= (AC + B A + BC) (B + C) (Because A A = 0)
= ABC + BB A + BBC + ACC + B A C + BCC
= ABC + B A + BC + AC + B A C + BC (Because BB = B)
= ABC + AC + B A + B A C + BC (Because BC + BC = BC)
=AC (B+1) + B A + BC ( A +1)
= AC + B A + BC (Because B + 1 = 1 and A + 1 = 1)
= AC + B A + BC (A + A ) (Because A + A = 1)
= AC + B A + BCA + BC A
= AC(1 + B) + B A (1 + C)
27
Made with Xodo PDF Reader and Editor
Q.12 Minimize the logic function Y(A, B, C, D) Σ m(0,1,2,3,5,7,8,9,11,14) . Use Karnaugh map.
Draw logic circuit for the simplified function. (9)
Ans:
Fig. 4(a) shows the Karnaugh map. Since the expression has 4 variables, the map
has 16 cells. The digit 1 has been written in the cells having a term in the given
expression. The decimal number has been added as subscript to indicate the binary
number for the concerned cell. The term ABC D cannot be combined with any other
cell. So this term will appear as such in the final expression. There are four
groupings of 4 cells each. These correspond to the min terms (0, 1, 2, 3), (0, 1, 8, 9),
(1, 3,5,7) and (1, 3, 9, 11). These are shown in the map. Since all the terms (except
14) have been included in groups of 4 cells, there is no need to form groups of two
cells.
28
Made with Xodo PDF Reader and Editor
Q.13 Simplify the given expression to its Sum of Products (SOP) form. Draw the logic circuit
for the simplified SOP function Y A B A AB C A B C AB ABC (5)
Ans:
Simplification of given expression
Y = (A + B) (A + AB ) C + A (B + C ) + A B + ABC
in some of products (SOP) form:-
29
Made with Xodo PDF Reader and Editor
Y = (A + B) (A + AB ) C + A (B + C ) + A B + ABC
=(A + B) (A + AB ) C + A (B + C ) + A B + ABC
=(A + B) (A + A + B )C + A (B + C ) + A B + ABC
=(A + B) (1+ B )C + A (B + C ) + A B + ABC (Because A + A = 1)
= (A + B) (C+ B C) + A B + A C + A B + ABC
= (A + B) (C+ B C) + A B + A C + A B + ABC
=AC + A B C + BC + B B C + A B + A C + A B + ABC
= AC + AC( B + B) + BC + 0 + A B + A C + A B (Because B B = 0)
= AC + AC+ BC+ A B + A C (Because B + B = 1)
= AC+ BC+ A B + A C (Because AC + AC = AC)
= C (A+ B) + A (B + C )
A B C
A +B
C (A + B)
Y
_
A _ _
A(B + C)
B
_
B +C
_
C
Ans:
Design of 8 to 1 Multiplexer: This is a four-variable function and therefore we need a
multiplexer with three selection lines and eight inputs. We choose to apply variables B, C,
and D to the selection lines. This is shown inTable 8.1. The first half of the minterms are
associated with A' and the second half with A. By circling the minterms of the function and
applying the rules for finding values for the multiplexer inputs, the implementation shown
in Table.8.2.
The given function can be implemented with a 8-to-1 multiplexer as shown in fig.8(a).
Three of the variables, B, C and D are applied to the selection lines in that order i.e., B is
connected to s2, C to s1 and D to s0. The inputs of the multiplexer are 0, 1, A and A’.
When BCD = 000,001 & 111 output F = 1 since I 0 & I8 = 1 for BCD(000), I1 = 1and I9 =1
respectively. Therefore, minterms m0 = A’ B’ C’ m1 = A’ B’ C, m8 = A’, B’, C’ and
m9 = A’ B’ C produce a 1 output. When BCD = 010, 101 and 110, output F = 0, since I2, I5
and I6 respectively are equal to 0.
30
Made with Xodo PDF Reader and Editor
Minterm A B C D F
0 0 0 0 0 1
1 0 0 0 1 1
2 0 0 1 0 0
3 0 0 1 1 1
4 0 1 0 0 1
5 0 1 0 1 0
6 0 1 1 0 0
7 0 1 1 1 0
8 1 0 0 0 1
9 1 0 0 1 1
10 1 0 1 0 0
11 1 0 1 1 0
12 1 1 0 0 0
13 1 1 0 1 0
14 1 1 1 0 0
15 1 1 1 1 1
Table .8.1 Truth Table for 8-1 Multiplexer
31
Made with Xodo PDF Reader and Editor
1 I
0
I
1
0 I
2
I 8X1
3 Y F
I
4
I
5
I
6
S S S
I 7 2 1 0
A
B
C
D
Q.15 Convert the decimal number 82.67 to its binary, hexadecimal and octal equivalents. (6)
Ans:
(i)Conversion of Decimal number 82.67 to its Binary Equivalent
Considering the integer part 82 and finding its binary equivalent
2 82
2 41 Remainder ------ 0 (LSB)
2 20 Remainder ------ 1
2 10 Remainder ------ 0
2 5 Remainder ------ 0
2 2 Remainder ------ 1
2 1 Remainder ------ 0
0 Remainder ---- 1 (MSB)
32
Made with Xodo PDF Reader and Editor
It is seen that, it is not possible to get a zero as remainder even after 8 stages. The process
continued further on an approximation can be made and the process is terminated here.
The binary equivalent is 0.10101011
Therefore, the binary equivalent of decimal number 82.67 is (1010010.10101011)2
(ii)Conversion of the binary equivalent of decimal number 82.67 into Hexadecimal:
The binary equivalent of decimal number 82.67 is (1010010.10101011)2
Convert each 4-bit binary into an equivalent hexadecimal number i.e.
0101 0010 .1010 1011
5 2 A B
1 2 2 . 5 2 6
33
Made with Xodo PDF Reader and Editor
Ans:
Addition of 20 and (-15) using 2’s Complement:
2 20 2 16
2 10 Remainder ------ 0 (LSB) 2 8 Remainder ------ 0 (LSB)
2 5 Remainder ------ 0
2 4 Remainder ----- 0
2 2 Remainder ------ 1
2 2 Remainder ----- 0
2 1 Remainder ------ 0
2 1 Remainder ------ 0
0 Remainder ------ 1(MSB)
0 Remainder ----- 1(MSB)
(20)10 = 1 0 1 0 0 (16)10 = 1 0 0 0 0
10000
Therefore, 20 = 1 0 1 0 0
-16 = 1 0 0 0 0
1 0 0 1 0 0
(Neglect)
Since the MSB of the sum is 0, which means the result is positive i.e +4
Ans:
Addition of 648 and 487 in BCD Code:
6 4 8 = 0110 0100 1000
4 8 7 = 0100 1000 0111
10 12 15
In the above problem all the three groups are invalid, because the four bit sum is more than
9. In such cases, add +6(i.e. 0110) to the four bit sum to skip the six invalid states. If a carry
is generated when adding 6, add the carry to the next four bit group i.e.
34
Made with Xodo PDF Reader and Editor
1 1 3 5
Ans:
(i) Prove the Boolean Identity XY + YZ + Y Z = XY + Z
L.H.S = XY + YZ + Y Z
= XY(Z+ Z ) + YZ + Y Z (mZ + Z = 1)
= XYZ + XY Z + YZ + Y Z
= YZ(1+X) + XY Z + Y Z
= YZ + XY Z + Y Z (m 1+X = 1)
= Z (Y+ Y ) + XY Z
= Z + XY Z (m Y+ Y =1)
= Z + XY(mZ + XY Z = Z + XY)
= R.H.S (Hence Proved)
Q.19 For F A.B.C B.C.D A.B.C , write the truth table. Simplify using Karnaugh map and
realize the function using NAND gates only. (10)
Ans:
Simplification of Logic Function F = A B C + B C D + A B C
35
Made with Xodo PDF Reader and Editor
Inputs Output
(F)
A B C D
0 0 0 0 0
0 0 0 1 0
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 1
1 1 1 0 1
1 1 1 1 1
Table 4.1
36
Made with Xodo PDF Reader and Editor
B BC
C
F = BC . BD = BC + BD
B BD
D
Q.20 Determine the analog output voltage of 6-bit DAC (R-2R ladder network) with Vref as 5V when
the digital input is 011100. (10)
Ans:
For 6-bit R-2R DAC ladder network, the output voltage is given by
V R a 2n1 a 2n2 a 21 a 20
V
0 1 0
2n n1 n2
Ans:
(i) Solve the equation 23.610 = X2 for X
23.610 = X2
In order to find X, convert the Decimal number 23.610 into its Binary form.
First take the decimal integer part 23 to convert into its equivalent binary form
2 23
2 11 -------- 1
2 5 ------- 1
2 2 ------- 1
2 1 ------- 0
0 1
Next take the decimal fractional part 0.6 to convert into its equivalent binary form.
37
Made with Xodo PDF Reader and Editor
It is seen that it is not possible to get a zero as remainder even after 7 stages. The process
can be continued further or an approximation can be made and the process terminated here.
The binary equivalent is 0.1001100.
Hence 23.610 = 10111.10011002.
(ii) In order to find X, convert the Decimal number 65.535 into its equivalent Hexadecimal
form. First taking the integer part 65 to convert into its equivalent Hexadecimal form.
16 65
16 4 ---- 1
0 ---- 4
It is seen that it is not possible to get a zero as remainder even after 7 stages. The process
can be continued further or an approximation can be made and the process terminated here.
The Hexadecimal equivalent is 0.88F5C28.
Hence 65.53510 = 41.88F5C2816.
Ans:
38
Made with Xodo PDF Reader and Editor
(i) First convert the two numbers 20 and 26 into its 8-bit binary equivalent and find out the
2’s complement of 20, then add -20 to +26.
20 = 0 0 0 1 0 1 0 0 (8-bit binary equivalent of 20)
20 = 1 1 1 0 1 0 1 1 (1’s complement)
+1
(ii) First convert the two numbers 25 and 15 into its 8-bit binary equivalent and find out
the 2’s complement of 15, then add +25 to -15.
15 = 0 0 0 0 1 1 1 1 (8-bit binary equivalent of 15)
15 = 1 1 1 1 0 0 0 0 (1’s complement)
+1
Q.23 (i) Convert the decimal number 430 to Excess-3 code: (6)
(ii) Convert the binary number 10110 to Gray code:
Ans:
(i) Excess 3 is a digital code obtained by adding 3 to each decimal digit and then
converting the result to four bit binary. It is an unweighted code i.e., no weights can be
assigned to any of the four digit positions.
4 3 0
+3 +3 +3
7 6 3
(ii) The rules for changing binary number 10110 into its equivalent Gray code are, the left
most bit (MSB) in Gray code i.e., 1 is the same as the left most bit in binary and
39
Made with Xodo PDF Reader and Editor
add the left most bit (1) to the adjacent bit (0) then add the next adjacent pair and discard
the carry. Continue this process till completion.
+ + + +
1 0 1 1 0
1 1 1 0 1
Hence Gray equivalent of Binary number 10110 is 11101.
Q.24 Verify that the following operations are commutative but not associative (6)
(i) NAND (ii) NOR
Ans:
(i) Commutative Law is AB = BA . To verify whether the NAND operation is
Commutative or not, prepare truth table shown in Table No.3.1
A B AB BA
0 0 1 1
0 1 1 1
1 0 1 1
1 1 0 0
Table No.3.1
From the Table No.3.1, we observe that the last two columns are identical, which means
AB = BA
Associative Law is A.(B.C) = ( A.B).C
To verify whether the NAND operation is Associative or not, prepare truth table shown in
Table No.3.2
A B C A.(B.C) ( A.B).C
0 0 0 1 1
0 0 1 1 0
0 1 0 1 1
0 1 1 1 0
1 0 0 0 1
1 0 1 0 0
1 1 0 0 1
1 1 1 1 1
Table No.3.2
From the Table No.3.2, we observe that the last two columns are not identical, which means
A.(B.C) ≠ ( A.B).C
40
Made with Xodo PDF Reader and Editor
A B AB BA
0 0 1 1
0 1 0 0
1 0 0 0
1 1 1 1
Table No.3.3
From the Table No.3.3, we observe that the last two columns are identical, which means
AB = B A
Associative Law is A (B C) = ( A B) C
To verify whether the NOR operation is Associative or not, prepare truth table shown in
Table No.3.4
A B C A (B C ) ( A B) C
0 0 0 0 0
0 0 1 1 0
0 1 0 1 1
0 1 1 1 0
1 0 0 0 1
1 0 1 0 0
1 1 0 0 1
1 1 1 0 0
Table No.3.4
From the Table No.3.4, we observe that the last two columns are not identical, which means
A. (B C) ≠ ( A B) C
Q.25 Prove the following equations using the Boolean algebraic theorems: (5)
(i) A + A .B + A . B = A + B (ii) A BC + A B C + AB C + ABC = AB + BC + AC
Ans:
(i) Given equation is A + A .B + A. B = A + B
L.H.S. = A + A .B + A. B
= (A + A. B ) + A .B
= A (1+ B ) + A .B
= A + A .B (m 1+ B =1)
= (A + A ) (A + B)
= (A + B) (mA + A = 1)
= R.H.S
Hence Proved
41
Made with Xodo PDF Reader and Editor
Q.26 A staircase light is controlled by two switches one at the top of the stairs and another at the
bottom of stairs (5)
(i) Make a truth table for this system.
(ii) Write the logic equation is SOP form.
(iii) Realize the circuit using AND-OR gates.
Ans:
A staircase light is controlled by two switches S1 and S2, one at the top of the stairs and
another at the bottom of the stairs. The circuit diagram of the system is shown in fig.4(a).
1 0
0 1
S S
1 L 2
ON = 1
BULB
OFF = 0
SUPPLY
(i) The truth table for the system is given in truth table 4.1
S1 S2 L
0 0 0
0 1 1
1 0 1
1 1 0
Table 4.1
(ii) The logic equation for the system is given by L = S1 S2 + S1 S 2
42
Made with Xodo PDF Reader and Editor
(iii) Realization of the circuit using AND-OR gates is shown in fig 4(b)
_
S . S
1 2
S
1
S
2 L
_
S . S
1 2
Q.27 Minimize the following logic function using K-maps and realize using NAND and NOR gates.
F(A, B, C, D) Σ m(1,3,5,8,9,11,15) d(2,13) (9)
Ans:
Minimization of the logic function F(A, B, C, D) = Σ m(1,3,5,8,9,11.15) + d(2,13) using K-
maps and Realization using NAND and NOR Gates
(i) Karnaugh Map for the logic function is given in table 4.1
43
Made with Xodo PDF Reader and Editor
A B C D
_
C+D
F
_
B+D
A+D
44
Made with Xodo PDF Reader and Editor
m5 = AB'C produce a 1 output, since the output is 1. when BC = 01 regardless of the value
of A.
When BC = 10, input I2 is selected. Since A is connected to this input, the output will be
equal to 1 only for minterm m6 = ABC', but not for minterm m2 = A' BC', because when
A' = I, then A = 0, and since I2 = 0, we have F = 0.
Finally, when BC = 11, input I3 is selected. Since A' is connected to this input, the output
will be equal to 1 only for minterm m3 = A' BC, but not for m7 = ABC. This is given in the
Truth Table shown in Table No 7.1
Minterm A B C F
0 0 0 0 0
1 0 0 1 1
2 0 1 0 0
3 0 1 1 1
4 1 0 0 0
5 1 0 1 1
6 1 1 0 1
7 1 1 1 0
45
Made with Xodo PDF Reader and Editor
0 I0
1
1 4 x1
F
A
2
A'
3 1 0
Q.29 Find the conversion time of a Successive Approximation A/D converter which uses a 2 MHz
clock and a 5-bit binary ladder containing 8V reference. What is the Conversion Rate?
(4)
Ans:
Given data:
Frequency of the clock (F) = 2 MHZ
Number of bits (n) = 5
n 5
(i) Conversion Time (T) = = = 2.5 sec
clockrate 2 X106
1 1
(ii) Conversion Rate = = = 400,000 conversions/sec
T 2.5X106
Q.30 A 6-bit R-2R ladder D/A converter has a reference voltage of 6.5V. It meets standard linearity.
Find
(i) The Resolution in Percent.
(ii) The output voltage for the word 011100. (4)
Ans:
Given Data Number of Bits (n) = 6
Reference Voltage (VR) = 6.5 V
For R-2R Ladder D/A Converter,
1 1 1 1.59 %
(i) The Resolution in Percent is given by
2n 1 26 1 63
(ii) The Output Voltage (VO ) of 6-bit R-2R Ladder D/A Converter for the word 011100 is
given by
V
O
VR
n
a n1 .2n1 a n2 .2n2 a 121 a 0 20
2
46
Made with Xodo PDF Reader and Editor
V
O
6.5
6
0.261 1X 251 1X 241 1X 231 0 X 221 0 X 20
2
V
O
6.5
2 4
23 22
26
VO 2.84 V.
Ans:
2222
16 138 14
16 8 10 =8AE
0 8
Ans:
68-(-27)=68-(-27)using 2’s complement
2’s complement representation of 68=01000100(64+4)
2’s complement representation of - (-27) = 00011011 =+ 27
11100101 =-27 in 2’s complement
Now add 68 and 27
68 01000100
-(-27) +00011011
95 010111111
Ans:
101 101110 1001
101
000110
101
001
Quotient -1001
Remainder -001
Q.34 Prove the following identities using Boolean algebra:
(i) A BA ABC AB C AB ABC CA B AB C.
(ii) AA B BA B A B .
47
Made with Xodo PDF Reader and Editor
(iii) AB A AB 0 . (9)
Ans:
(i) (A+B)(A+A’B’)C+A’(B+C’)+A’B+ABC
=C(A+B)+A’(B+C’)
LHS (A+B)(A+A’+B’)C+A’B+A’C’+A’B+ABC
= (A+B)(1+B’)C+A’B+ A’C’+ABC as (A+A’=1)
= (A+B).1.C+A’B+ A’C’+ABC
= AB+AC+A’B+ A’C’+ABC
= ABC+AB+ABC+AC+A’B+A’C’
AB(C+1)+AC(B+1) +A’B+ A’C’
= AB+AC+A’B+ A’C’
= C(A+B) + A’(B+C’) = RHS
Hence Proved
(ii) A( A.B).B( A.B) A B
Let us take X A( A.B)
Y B( A.B)
So we have X .Y A B - ----- 3
Also X A( A.B)
= A( A B)
By using DeMorgan’s Law (AB)’=A’+B’
X = (A(A’+B’))’=(AA’+AB’)’=(AB’)’=(A’+B) --------------------- 1
Now Y = (B(AB)’)’=[B(A’+B’)]’= [A’B+BB’]’=(A’B)’=(A+B’) ------- 2
Now Combining X & Y from 1 & 2 above, we have L.H.S in 3 as :
((A+B’)(A’+B))’
=[AA’+BB+A’B’+AB]’
=(AB+A’B’)’
=A XOR B = RHS
Hence Proved
(iii) ((AB)’+A’+AB)’=0
LHS ( AB A AB)
= (1 A) since AB AB 1
= 1 since 1 A 1
= 0 = RHS Hence Proved
Q.35 A combinational circuit has 3 inputs A, B, C and output F. F is true for following input
combinations
A is False, B is True
A is False, C is True
A, B, C are False
A, B, C are True
48
Made with Xodo PDF Reader and Editor
(i) Write the Truth table for F. Use the convention True=1 and False = 0.
(ii) Write the simplified expression for F in SOP form.
(iii) Write the simplified expression for F in POS form.
(iv) Draw logic circuit using minimum number of 2-input NAND gates. (7)
Ans:
(i) Making the truth table
A B C F
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
A is false b is true For both value of c F is true.
(ii) Simplified expression for F can be found by K-map
In SOP Form
F = A’+BC
(iii) Simplified expression for F in POS form
I. In POS Form MINIMIZE ZEROS
F’=AB’+AC’
II. F=A’+BC taking complement twice
F’=( A’+BC)’=(A.(BC)’)
F”=F=(A.(BC)’)’
(iv) Logic circuit by using minimum number of 2-input NAND gates
49
Made with Xodo PDF Reader and Editor
Ans:
F=∏M(1,2,3,8,9,10,11,14).d(7, 15)
F’=B’D+B’C+AC+AB’
By Complementing F
F=(B’D+B’C+AC+AB’)’
= [(B’D)’(B’C)’(AC)’(AB’)’]’
= (B+D’)(B+C’)(A’+C’)(A’+B)
Taking complement twice and without opening the bracket
F=[(B+D’)+(B+C’)’(‘A’+C’)+(A’+B)]’
The logic circuit for the simplified function using NOR gates
Q.37 The capacity of 2K 16 PROM is to be expanded to 16 K 16. Find the number of PROM
chips required and the number of address lines in the expanded memory. (4)
Ans:
Required capacity =16k x 16
Available chip (PROM) =2k x 16
The no of chip =16k x 16 =8
2k x 16
In the chip total word capacity = 2 x 210
50
Made with Xodo PDF Reader and Editor
Ans:
(i ) 11001 - 10110
1' s Compliment of 10110 = 01001
11001
+ 01001
100010
Add 1 and ignore carry.
Ans is 00011 = 3.
(ii) 11011 – 11001 = A – B
2's complement of B = 00111
11011
+ 00111
100010
Ignore carry to get answer as 00010 = 2.
Ans:
Y = ABC + ACD + AB + ABC
Y = ABCD + ABCD + ABCD + ABCD+ ABCD + ABCD
+ ABCD + ABCD + ABCD+ ABCD + ABCD
Ans:
f A,B,C= ZM 1,4,5,6,7 in standard POS form
F = m1 + m4 + m5 + m6 + m7
F = Σm(1,4,5,6,7)
= ∏ M(0,2,3)
= M0 M2 M3
= (A+B+C)(A+ B +C)(A+ B + C )
Q.41 Design a 32:1 multiplexer using two 16:1 multiplexers and a 2:1 multiplexer. (8)
Ans:
To design a 32 X 1 MUX using
s3 s2 s1 s 0
I0
16 X1
I15 MUX
2X1 f
s2 s1
s3 s0 MUX
I16
16X1
I31 MUX
Select line M
Ans:
S (A,B,C) = m (1,2,4,7)
C (A,B,C) = m (3,5,6,7)
These are full adder's output as sum (S) and carry ( C ). We know that 3 to 8 line decoder
generates all the minterms from 0 to 7. In the decoder shown in the figure, Do correspond
to minterm mo, and so on. So by ORing appropriate outputs of the decoder we can
implement these functions.
52
Made with Xodo PDF Reader and Editor
Q.43 Perform the following operations using the 2’s complement method:
(i) 23 – 48 (ii) – 48 – 23 (4)
Ans:
(i) 23 - 48
add them
23 010111
- (- 48) + 010000
71 100111
(ii) – 48 - 23 = - 48 + (-23)
-48 =11010000
-23 =11101001
1 1 0 1 1 1 0 0 1 = -71
Carry is discarded
Q.44 Prove the following Boolean identities using the laws of Boolean algebra:
(i) A BA C A BC
(ii) ABC ABC ABC AB C (4)
Ans:
(i) (A+B)(A+C)=A+BC
LHS AA+AC+AB+BC=A+AC+AB+BC
OR A((C+1)+A(B+1))+BC
OR A+A+BC
OR A+BC = RHS
Hence Proved
(ii) ABC+AB’C+ABC’=A(B + C)
LHS AC(B+B’)+AB(C+C’)
OR AC+AB
OR A(B+C)= RHS
Hence Proved
53
Made with Xodo PDF Reader and Editor
Q.45 The Karnaugh map for a SOP function is given below in Fig.1. Determine the simplified
SOP Boolean expression. (5)
Ans:
Ans:
(i) available capacity =4Kx8
= 210 x210 x 8
= 212x8
As in the 4Kx8 ,the second number represents the number of bits in each word so the
number of data input lines will be 8(also the data output lines) .
(ii) It has total 4K (2 12) address line which are required to address 212 locations.
(iii) Its capacity in bytes is 4K bytes.
Q.47 A 5-bit DAC produces an output voltage of 0.2V for a digital input of 00001. Find the
value of the output voltage for an input of 11111. What is the resolution of this DAC? (6)
Ans:
For the Digital output of 00001
Output voltage is =0.2 volt =Resolution
The output=.2x31=15.5volts
Resolution=(0.2volt)/(15.5v)x100=1.290
54
Made with Xodo PDF Reader and Editor
Q.48 An 8-bit successive approximation ADC has a resolution of 20mV. What will be its digital
output for an analog input of 2.17V? (4)
Ans:
Resolution =20mv
Analog input =2.17v
Equivalent value=(2.17)/(2.17)=108.5
Equivalent Binary value=1101100.1
(i) How many chips will be required and how many address lines will be connected to
provide capacity of 1024 bytes.
(ii) How many chips will be required to obtain a memory of capacity of 16 K bytes. (5)
Ans:
( i ) Available chips = 1024 x 1 capacity
Required capacity = 1024 x 8 capacity
1024X8
No. of Chips= =8
1024X1
Number of address lines are required = 10 (i.e. 1024 = 210 )
As the word capacity is same ( 1024 ) so same address lines will be connected to all chips.
( ii )
16X1024X8
No.Of Chips Required = = 128
1024X1
Q.50 Find the Boolean expression for logic circuit shown in Fig.1 below and reduce it using
Boolean algebra. (6)
Ans:
Y = (AB)’ + (A’ + B)’
= A’ + B’ + AB’ Using Demorgan’s Theorem.
= A’ + B’(1+A)
= A’ + B’ Since 1+A=1
55
Made with Xodo PDF Reader and Editor
Ans:
Y(A,B,C)=Σ(2,3,5,6)
Let us take B,C as the select bits and A as input. To decide the input we write.
Y = A’BC’+A’BC+AB’C+ABC’
= 0 if B=0, C=0
= A if B=0, C=1
= 1 if B=1, C=0
= A’ if B=1, C=1
The corresponding implementation is shown in the figure. Thus
B C
Ans:
Design a mod 12 synchronous counter using D-flipflops.
I state table
Present state Next state Required D Inputs
A B C D A B C D DA DB DC DD
0 0 0 0 0 0 0 1 0 0 0 1
0 0 0 1 0 0 1 0 0 0 1 0
0 0 1 0 0 0 1 1 0 0 1 1
0 0 1 1 0 1 0 0 0 1 0 0
0 1 0 0 0 1 0 1 0 1 0 1
0 1 0 1 0 1 1 0 0 1 1 0
0 1 1 0 0 1 1 1 0 1 1 1
0 1 1 1 1 0 0 0 1 0 0 0
1 0 0 0 1 0 0 1 1 0 0 1
1 0 0 1 1 0 1 0 1 0 1 0
1 0 1 0 1 0 1 1 1 0 1 1
1 0 1 1 0 1 0 0 0 1 0 0
56
Made with Xodo PDF Reader and Editor
First draw the state table having present state, next state and required flip-flop input to give
the transition. D flip flop gives the output same as the next state itself. Then solve by using K
maps to find out DA DB DC DD for all states.
Unused states are 1100,1101,1110,1111 they can be treated as don’t care conditions from the
table. Draw Karnaugh-maps for DA, DB, DC and DD as follows and obtain Boolean
expressions for them.
57
Made with Xodo PDF Reader and Editor
58
Made with Xodo PDF Reader and Editor
Q.53 Find how many bits of ADC are required to get an resolution of 0.5 mV if the maximum
full scale voltage is 10 V. (8)
Ans:
Resolution=.5mv
Full scale output=+10v
%resolution =(5mv)/10x100=0.05%
No of bits =Log2(2x1000) = 20
Q.54 Convert the decimal number 45678 to its hexadecimal equivalent number. (4)
Ans:
(45678)10=(B26E)16
59
Made with Xodo PDF Reader and Editor
16 45678
16 2854 14 E
16 178 6 6
16 11 2 2
0 11 B
(45678)10=(B26E)16
Ans:
A B F
0 0 1
0 1 0
1 0 0
1 1 0
Q.56 Design a BCD to excess 3 code converter using minimum number of NAND gates. Hint:
use k map techniques. (8)
Ans:
First we make the truth table
BCD no EXCESS-3 NO
ABCD WXYZ
0000 0011
0001 0100
0010 0101
0011 0110
0100 0111
0101 1000
0110 1001
0111 1010
1000 1011
1001 1100
Then by using K maps we can have simplified functions for w, x, y, z as shown below:
60
Made with Xodo PDF Reader and Editor
61
Made with Xodo PDF Reader and Editor
62
Made with Xodo PDF Reader and Editor
W = BD + AD + AB’ + BC
By complementing twice we get
W = ((BD + AD + AB’ + BC)’)’
= ((BD)’ . (AD)’ . (AB’)’ . (BC)’)’
X = BC’D + B’D + B’C
By complementing twice we get
X = BC’D + B’D + B’C
= ((BC’D)’ . (B’D)’ . (B’C)’)’
Y = C’D’ + CD
= ((C’D’)’ + (CD)’)’
Z = D’
Logic diagram for BCD to excess 3 code converter by using minimum number of
NAND gates
Q.57 With the help of a suitable diagram, explain how do you convert a JK flipflop to T type
flipflop. (4)
63
Made with Xodo PDF Reader and Editor
Ans:
Given flip flop is JK flip flop and it is required to convert JK into T. First we draw the
characteristic table of T flip flop and then relate the transition with excitation table of JK flip
flop.
Q.58 A number of 256 x 8 bit memory chips are available. To design a memory organization of
2 K x 8 memory. Identify the requirements of 256 x 8 memory chips and explain the
details. (8)
Ans:
Chips available=256x8
Required capacity=2048x8
Number of chips=(2048x8)/(256x8)=8=(256=28)
Address lines required for 2048x8chip=11(2048=211)
Thus the size of the decoder=3x8
64
Made with Xodo PDF Reader and Editor
Ans:
(177.25)10 = ( )8
First we take integer part
8 177 1
8 22 6 Thus (177)10 = (261)8
8 2 2
0
Ans:
(i) 11001 – 10110 = X – Y
X = 11001
1’s complement of Y = 01001
Sum = 1 00010
End around carry = 1
So X-Y = 00011
(ii) 11011 – 11001 = X – Y
X = 11011
1’s complement of Y = 00110
Sum = 1 00001
End around carry = 1
So X-Y = 00010
Ans:
(i) LHS = A’B’C’ + A’BC’ + AB’C’ + ABC’
= A’C’ (B’ + B) + AC’ (B’ + B)
= A’C’ + AC’ [as B’+B = 1]
= C’ (A’ + A)
= C’ [as A’+A =1]
65
Made with Xodo PDF Reader and Editor
= RHS.
Hence Proved
Q.62 Find the boolean expression for the logic circuit shown below. (8)
Ans:
Output of Gate-1 (NAND) = (AB)’
Output of Gate-2 (NOR) = (A’+B)’
Output of Gate-3 (NOR) = [(AB)’ + (A’+B)’]’
Now applying De-Morgans law, (X+Y)’ = X’Y’
and (XY)’ = (X’+Y’)
[(AB)’ + (A’+B)’]’ = [(AB)’]’ [(A’+B)’]’
= (AB) (A’+B)
= AA’B + ABB
= ABB
= AB.
Ans:
Multiplying the first term by (A+A’)
Y = A’BC’D’ + ABC’D’ + A’BC’D + ABC’D + A’BCD + ABCD
= Σ(4,12,5,7,15,13)
= BC’ + BD
66
Made with Xodo PDF Reader and Editor
Ans:
We will take three variables B,C & D at selection lines and A as input. Now there are
eight inputs and they can be 0,1,A or A’ depending on the Boolean function.
I0 I1 I2 I3 I4 I5 I6 I7
A’ 0 1 2 3 4 5 6 7
A 8 9 10 11 12 13 14 15
A’ 1 A’ A 0 1 0 A
67
Made with Xodo PDF Reader and Editor
I0 = A’
I1 = 1
I2 = A’
I3 = A 8x1 Y
I4 = 0
MUX
I5 = 1
I6 = 0
I7 = A
B C D
Select Lines
Q.65 (i) How many 128 8 RAM chips are required to provide a memory capacity of 2048
bytes.
(ii) How many lines of address bus must be used to access 2048 bytes of memory. How
many lines of these will be common to each chip?
(iii) How many bits must be decoded for chip select? What is the size of decoder?
(8)
Ans:
(i) Available RAM chips = 128 x 8
Required memory capacity = 2048 x 8
Number of chips required = (2048 x 8) / (128 x 8)
= 16.
(ii) Chips available are of 128 x 8 in size. It means that total 128 (2 7) locations are there
and each location can store 8 bits. Thus the total number of address lines required to access
128 locations is 7. As seven address lines can address 27 locations. These seven lines are
common to all chips.
Now to access 2048 locations, we require 11 address lines, as 2048 = 211
(iii) These higher order lines will be applied to decoder input. The number of inputs to the
decoder will be 11 - 7 = 4. The size of the decoder will be 4x16. These 16 decoder outputs
will be connected to the chip select input of individual chips.
A6
~ To all chips
A0
68
Made with Xodo PDF Reader and Editor
Q.66 How many bits are required at the input of a ladder D/A converter, if it is required to give a
resolution of 5mV and if the full scale output is +5V. Find the %age resolution.
(8)
Ans:
First we find out the ratio of Full scale output to Resolution = 5V / 5 mV = 1000.
Now number of bits = log2 1000 = 10.
Percentage Resolution = 5 mV / 5 V * 100 = 0.1%
Q.67 A 6-bit Dual Slope A/D converter uses a reference of –6V and a 1 MHz
clock. It uses a fixed count of 40 (101000). Find Maximum Conversion Time. (4)
Ans
The time T1 given by
T 1 = 2N T C where N = no. of Bits, Tc = time period of clock pulse
Given N = 6, TC = 1/ 1MHz = 1 µs.
Therefore T1 = 26 X 10 -6 s = 64 µs.
Q.68 A 2-digit BCD D/A converter is a weighted resistor type with E R 1 Volt, with R 1M ,
R f 10K . Find resolution in Percent and Volts. (5)
Ans
Resolution = 1/22 = 0.25 volts.
As the resolution is determined by number of input bits of D/A converter; For example two
bit converter has 22 (4) possible output levels, therefore its resolution is 1 part in 4
In percent it will be ¼ X 100 = 25%
In volts, it will be 0.25 volts.
69