Skip to main content

Chapter 3

Digital Logic

TU BSc CSIT past exam questions

Past questions and answers

66 questions set from this chapter, 2 of them more than once; 1 is most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.

  • Most repeated · 3 of 8 exams
  • 2075 · 10 marks

Implement the following function F = Σ(1, 2, 3, 4, 8) using
  • Decoder
  • Multiplexer
  • PLA

Similar questions: Digital Logic: Implement the following Functions F= Σ (0,3,5,6,7) (2074) · Digital Logic: Implement the Boolean function F(P,Q,R,S) = ∑ (2080)

Answer

Take F(A,B,C,D)=∑(1,2,3,4,8)F(A,B,C,D) = \sum(1,2,3,4,8) with AA as the MSB.

(a) Using a decoder. Use a 4×164 \times 16 decoder with inputs A,B,C,DA, B, C, D. Its outputs are the minterms m0…m15m_0 \ldots m_{15}. Since a decoder gives each minterm separately, connect the outputs m1,m2,m3,m4,m8m_1, m_2, m_3, m_4, m_8 to a 5-input OR gate:

F=m1+m2+m3+m4+m8F = m_1 + m_2 + m_3 + m_4 + m_8

 A B C D --> [ 4 x 16 DECODER ] -- m1, m2, m3, m4, m8 --> [ 5-input OR ] --> F

(b) Using a multiplexer. Use an 8×18 \times 1 MUX with A,B,CA, B, C as the select lines (S2S1S0S_2S_1S_0) and DD (or its complement, 0 or 1) on the data inputs. Pair the minterms by ABCABC:

ABCABCMintermsPresent in FFInput
0000, 11 onlyI0=DI_0 = D
0012, 3bothI1=1I_1 = 1
0104, 54 onlyI2=D′I_2 = D'
0116, 7noneI3=0I_3 = 0
1008, 98 onlyI4=D′I_4 = D'
10110, 11noneI5=0I_5 = 0
11012, 13noneI6=0I_6 = 0
11114, 15noneI7=0I_7 = 0

So the data inputs are I0=D, I1=1, I2=D′, I3=0, I4=D′, I5=I6=I7=0I_0 = D,\ I_1 = 1,\ I_2 = D',\ I_3 = 0,\ I_4 = D',\ I_5 = I_6 = I_7 = 0, and the MUX output is FF.

(c) Using a PLA. First simplify with a K-map. The prime implicants are: m1,m3→A′B′Dm_1, m_3 \to A'B'D; m2,m3→A′B′Cm_2, m_3 \to A'B'C; m4m_4 alone →A′BC′D′\to A'BC'D'; m8m_8 alone →AB′C′D′\to AB'C'D'. Hence

F=A′B′D+A′B′C+A′BC′D′+AB′C′D′F = A'B'D + A'B'C + A'BC'D' + AB'C'D'

PLA programming table (4 inputs, 4 product terms, 1 output; 1 = true input, 0 = complemented input, - = not connected, 1 in the output column = term connected to the OR gate):

Product termAABBCCDDFF
A′B′DA'B'D00-11
A′B′CA'B'C001-1
A′BC′D′A'BC'D'01001
AB′C′D′AB'C'D'10001

In the PLA diagram, the AND array has four AND gates that receive the inputs A,B,C,DA, B, C, D and their complements, with fuses left intact only where the table has 0 or 1. The OR array has one OR gate with all four product-term fuses intact, giving FF.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2075 · 5 marks
  • 2077 · 5 marks

What is the difference between a serial and parallel transfer? Explain how to convert serial data to parallel and parallel data to serial. What type of register is needed?

Answer

Serial and parallel transfer

Serial transferParallel transfer
Data move one bit at a time over a single lineAll bits of a word move at the same time, one line per bit
nn clock pulses are needed for an nn-bit wordOne clock pulse is enough
Slow, but needs only one wire; suitable for long distancesFast, but needs nn wires; suitable for short distances (inside a computer)
Example: communication between computers (UART, USB)Example: transfer between registers over a bus

Serial to parallel conversion. The serial data are fed bit by bit into the serial input of a shift register. After nn clock pulses the nn bits occupy the nn flip-flops, and all the flip-flop outputs Qn−1…Q0Q_{n-1} \ldots Q_0 can be read at the same time as the parallel word. Example: serial input stream 1,0,1,11, 0, 1, 1 shifted into a 4-bit register gives Q3Q2Q1Q0=1011Q_3Q_2Q_1Q_0 = 1011 after four pulses. This is a serial-in parallel-out (SIPO) operation.

Parallel to serial conversion. The parallel word is loaded into all the flip-flops at once, using the parallel data inputs and a Load control (for example a multiplexer in front of each D input selecting between parallel data and the previous stage). The control is then switched to shift mode, and on each clock pulse the word moves one place and one bit leaves at the serial output. After nn pulses all nn bits have been sent. This is a parallel-in serial-out (PISO) operation.

 Parallel in -> [load] -> FF3 -> FF2 -> FF1 -> FF0 -> Serial out   (shift right)
 Serial in  -> FF3 -> FF2 -> FF1 -> FF0 -> parallel outputs Q3 Q2 Q1 Q0

Type of register needed. A shift register: serial-in parallel-out for serial to parallel, and parallel-in serial-out for parallel to serial. A single shift register with parallel load, shift right control and a serial input and output (a universal shift register) can perform both conversions.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • Asked 2 times
  • 2075 · 5 marks
  • 2077 · 5 marks

Design 4-bit even parity generator.

Answer

Even parity generator. An even parity generator adds a parity bit PP to the data so that the total number of 1s in the data plus parity bit is even. So P=1P = 1 when the number of 1s in the 4 data bits is odd.

Truth table (data ABCDABCD)

AABBCCDDPPAABBCCDDPP
0000010001
0001110010
0010110100
0011010111
0100111000
0101011011
0110011101
0111111110

Expression. The K-map has a checkerboard pattern (no two 1s adjacent), so no simplification is possible in SOP form, but the function is the exclusive-OR of all the inputs:

P=∑(1,2,4,7,8,11,13,14)=A⊕B⊕C⊕DP = \sum(1,2,4,7,8,11,13,14) = A \oplus B \oplus C \oplus D

Circuit. Three 2-input XOR gates: A⊕BA \oplus B and C⊕DC \oplus D in the first level, and their outputs XORed in the second level to give PP. The transmitted 5-bit word is A B C D PA\,B\,C\,D\,P, which always has an even number of 1s.

 A --\
      XOR --\
 B --/       \
              XOR --> P
 C --\       /
      XOR --/
 D --/

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 10 marks

Implement the following Functions F= Σ (0,3,5,6,7) using
  • Decoder
  • Multiplexer
  • PLA

Similar questions: Digital Logic: Implement the following function F = Σ(1 (2075)

Answer

Take the function in variables x,y,zx,y,z (xx is the MSB):

F(x,y,z)=Σ(0,3,5,6,7)F(x,y,z)=\Sigma(0,3,5,6,7)

(a) Using a 3-to-8 decoder. Connect x,y,zx,y,z to the select inputs A2,A1,A0A_2,A_1,A_0. The decoder produces all minterms m0…m7m_0 \ldots m_7 on its outputs. Since FF is the sum of minterms, an OR gate collects the required outputs:

F=m0+m3+m5+m6+m7F=m_0+m_3+m_5+m_6+m_7

Outputs D0,D3,D5,D6,D7D_0, D_3, D_5, D_6, D_7 go to a 5-input OR gate whose output is FF (outputs D1,D2,D4D_1, D_2, D_4 are left unused). Alternatively, F′=m1+m2+m4F'=m_1+m_2+m_4 can be formed with a 3-input OR and inverted.

(b) Using a multiplexer. Use a 4-to-1 MUX with x,yx,y as select lines (S1=xS_1=x, S0=yS_0=y) and zz as the data variable. Build the implementation table:

Inputxy=00xy=00xy=01xy=01xy=10xy=10xy=11xy=11
z=0z=00 (m0)246 (m6)
z=1z=113 (m3)5 (m5)7 (m7)

Circled (present) minterms: 0, 3, 5, 6, 7. For each column:

  • xy=00xy=00: only m0m_0 present (z=0z=0), so I0=z′I_0=z'.
  • xy=01xy=01: only m3m_3 present (z=1z=1), so I1=zI_1=z.
  • xy=10xy=10: only m5m_5 present (z=1z=1), so I2=zI_2=z.
  • xy=11xy=11: both m6,m7m_6, m_7 present, so I3=1I_3=1.

Connections: I0=zˉI_0=\bar z, I1=zI_1=z, I2=zI_2=z, I3=1I_3=1, selects S1=xS_1=x, S0=yS_0=y, output =F=F.

(c) Using a PLA. First simplify with a K-map:

x\yzx \backslash yz00011110
01010
10111

Groups: m3,m7m_3,m_7 gives yzyz; m5,m7m_5,m_7 gives xzxz; m6,m7m_6,m_7 gives xyxy; m0m_0 stays alone as x′y′z′x'y'z'.

F=x′y′z′+yz+xz+xyF=x'y'z'+yz+xz+xy

The PLA needs 3 inputs (x,y,zx,y,z), 4 product terms and 1 output. AND-plane programming:

Product termxxyyzzOutput FF
P1=x′y′z′P_1=x'y'z'0001
P2=yzP_2=yz-111
P3=xzP_3=xz1-11
P4=xyP_4=xy11-1

In the AND plane, fuses are kept for the literals shown (complemented or true form; "-" means no connection). In the OR plane, all four product terms are connected to the output FF.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2075 · 5 marks

Design a combinational circuit with three inputs, x, y, and z, and three outputs, A, B, and C. When the binary input is 0, 1, 2, or 3, the binary output is one greater than the input. When the binary input is 4, 5, 6, or 7, the binary output is one less than the input.

Similar questions: Digital Logic: Explain design procedure of combinatorial circuits. Design (2081)

Answer

Specification. For inputs xyzxyz from 0 to 3 the output is the input +1+ 1; for inputs 4 to 7 the output is the input −1- 1. Three output bits ABCABC are enough (the largest output is 6).

Truth table

xxyyzzInputOutputAABBCC
00001001
00112010
01023011
01134100
10043011
10154100
11065101
11176110

Simplification

  • A=∑(3,5,6,7)A = \sum(3, 5, 6, 7). K-map groups m3,m7=yzm_3, m_7 = yz; m5,m7=xzm_5, m_7 = xz; m6,m7=xym_6, m_7 = xy. So A=xy+xz+yzA = xy + xz + yz.
  • B=∑(1,2,4,7)B = \sum(1, 2, 4, 7). No two minterms are adjacent (a checkerboard pattern), so B=x′y′z+x′yz′+xy′z′+xyz=x⊕y⊕zB = x'y'z + x'yz' + xy'z' + xyz = x \oplus y \oplus z.
  • C=∑(0,2,4,6)=z′C = \sum(0, 2, 4, 6) = z'.

Circuit. CC is just an inverter on zz. BB uses two XOR gates. AA is the majority function: three 2-input AND gates feeding a 3-input OR gate.

A=xy+yz+zx,B=x⊕y⊕z,C=z′A = xy + yz + zx, \qquad B = x \oplus y \oplus z, \qquad C = z'

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 10 marks

Implement the Boolean function F(P,Q,R,S) = ∑ (3,4,6,8,9,14) using: a. 8 to 1 multiplexer b. PLA c. Decoder

Similar questions: Digital Logic: Implement the following function F = Σ(1 (2075)

Answer

F(P,Q,R,S)=Σ(3,4,6,8,9,14)F(P,Q,R,S) = \Sigma(3,4,6,8,9,14), with PP as the MSB.

(a) Using an 8-to-1 multiplexer

Connect P,Q,RP, Q, R to the select lines S2,S1,S0S_2, S_1, S_0 and express each data input in terms of SS. Each data line covers a pair of minterms m2im_{2i} (S = 0) and m2i+1m_{2i+1} (S = 1):

PQRPQRMinterms (S=0, S=1)Function presentInput
000m0,m1m_0, m_1neitherI0=0I_0 = 0
001m2,m3m_2, m_3m3m_3 onlyI1=SI_1 = S
010m4,m5m_4, m_5m4m_4 onlyI2=S′I_2 = S'
011m6,m7m_6, m_7m6m_6 onlyI3=S′I_3 = S'
100m8,m9m_8, m_9bothI4=1I_4 = 1
101m10,m11m_{10}, m_{11}neitherI5=0I_5 = 0
110m12,m13m_{12}, m_{13}neitherI6=0I_6 = 0
111m14,m15m_{14}, m_{15}m14m_{14} onlyI7=S′I_7 = S'

So I0=I5=I6=0I_0 = I_5 = I_6 = 0, I4=1I_4 = 1, I1=SI_1 = S, and I2=I3=I7=S′I_2 = I_3 = I_7 = S' (one inverter). Output of the MUX is FF.

(b) Using a PLA

K-map (rows PQPQ, columns RSRS in Gray order):

PQ\RSPQ \backslash RS00011110
000010
011001
110001
101100

Groups: m4,m6m_4, m_6 gives P′QS′P'QS'; m6,m14m_6, m_{14} gives QRS′QRS'; m8,m9m_8, m_9 gives PQ′R′PQ'R'; m3m_3 alone gives P′Q′RSP'Q'RS.

F=P′QS′+QRS′+PQ′R′+P′Q′RSF = P'QS' + QRS' + PQ'R' + P'Q'RS

PLA programming table:

ProductPPQQRRSSFF
P′QS′P'QS'01-01
QRS′QRS'-1101
PQ′R′PQ'R'100-1
P′Q′RSP'Q'RS00111

The AND plane makes these 4 product terms (with inputs and complements available) and the OR plane connects them to output FF.

(c) Using a decoder

Use a 4×164\times16 decoder with inputs P,Q,R,SP, Q, R, S whose outputs D0…D15D_0 \ldots D_{15} are the minterms, and a 6-input OR gate:

F=D3+D4+D6+D8+D9+D14F = D_3 + D_4 + D_6 + D_8 + D_9 + D_{14}

 P Q R S --> [4x16 decoder] --D3 --\
                             D4 ---\
                             D6 ----\
                             D8 -----> OR --> F
                             D9 ----/
                             D14---/

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 10 marks

Explain design procedure of combinatorial circuits. Design a combinatorial circuit with three inputs x, y, and z, and three outputs A, B, and C. When the binary input is 0, 1, 2 or 3, the binary output is one greater than the input. When the input is 4, 5, 6, or 7, the binary output is one less than the input.

Similar questions: Digital Logic: Design a combinational circuit with three inputs (2075)

Answer

Design procedure of combinational circuits

A combinational circuit has outputs that depend only on the present inputs. The design steps are:

  1. State the problem and decide the number of inputs and outputs.
  2. Assign letter symbols to the inputs and outputs.
  3. Derive the truth table that defines the required input-output relation.
  4. Obtain the simplified Boolean function for each output (K-map or algebra).
  5. Draw the logic diagram and verify it.

Design of the given circuit

Inputs x,y,zx,y,z (binary number NN), outputs A,B,CA,B,C (AA is the MSB). For N=0N=0 to 3 the output is N+1N+1; for N=4N=4 to 7 the output is N−1N-1.

Nx y zOutput valueA B C
00 0 010 0 1
10 0 120 1 0
20 1 030 1 1
30 1 141 0 0
41 0 030 1 1
51 0 141 0 0
61 1 051 0 1
71 1 161 1 0

From the table:

A=Σ(3,5,6,7)B=Σ(1,2,4,7)C=Σ(0,2,4,6)A=\Sigma(3,5,6,7)\qquad B=\Sigma(1,2,4,7)\qquad C=\Sigma(0,2,4,6)

K-map simplification (rows xx, columns yz=00,01,11,10yz=00,01,11,10):

  • AA: the 1s are at m3,m5,m6,m7m_3,m_5,m_6,m_7. Pairs m3m7m_3m_7 (yzyz), m5m7m_5m_7 (xzxz), m6m7m_6m_7 (xyxy) give A=xy+yz+zxA=xy+yz+zx
  • BB: the 1s are at m1,m2,m4,m7m_1,m_2,m_4,m_7, a checkerboard with no adjacent pairs. This is the odd-parity function: B=x′y′z+x′yz′+xy′z′+xyz=x⊕y⊕zB=x'y'z+x'yz'+xy'z'+xyz=x\oplus y\oplus z
  • CC: the 1s are at m0,m2,m4,m6m_0,m_2,m_4,m_6, the whole column z=0z=0: C=z′C=z'

Logic diagram.

  • AA: three 2-input AND gates (xyxy, yzyz, zxzx) feeding one 3-input OR gate.
  • BB: two cascaded XOR gates, (x⊕y)⊕z(x\oplus y)\oplus z.
  • CC: one NOT gate on zz.

The circuit therefore needs 3 AND, 1 OR, 2 XOR and 1 NOT gate.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 10 marks

Draw a block diagram, truth table and logic circuit of 1*16 Demultiplexer and explain its working principle.

Answer

1-to-16 demultiplexer. A demultiplexer has one data input DD, nn select lines and 2n2^n outputs. It routes the input to exactly one output, chosen by the select code. For 16 outputs, n=4n=4 select lines S3S2S1S0S_3S_2S_1S_0 are needed.

Block diagram.

              +-----------------+
              |                 |--- Y0
              |                 |--- Y1
   D  ------->|                 |--- Y2
              |   1 x 16 DEMUX  |  ...
              |                 |--- Y14
              |                 |--- Y15
              +--+--+--+--+-----+
                 |  |  |  |
                S3 S2 S1 S0

Truth table (output YiY_i equals DD when S3S2S1S0S_3S_2S_1S_0 equals the binary value of ii; all other outputs are 0):

S3S2S1S0S_3S_2S_1S_0Output that follows DDOthers
0000Y0Y_00
0001Y1Y_10
0010Y2Y_20
0011Y3Y_30
0100Y4Y_40
0101Y5Y_50
0110Y6Y_60
0111Y7Y_70
1000Y8Y_80
1001Y9Y_90
1010Y10Y_{10}0
1011Y11Y_{11}0
1100Y12Y_{12}0
1101Y13Y_{13}0
1110Y14Y_{14}0
1111Y15Y_{15}0

Logic circuit. Each output is a 5-input AND gate of the data input and a select combination (using inverters for complemented selects):

Y0=D Sˉ3Sˉ2Sˉ1Sˉ0,Y1=D Sˉ3Sˉ2Sˉ1S0,…,Y15=D S3S2S1S0Y_0=D\,\bar S_3\bar S_2\bar S_1\bar S_0,\quad Y_1=D\,\bar S_3\bar S_2\bar S_1 S_0,\quad \ldots,\quad Y_{15}=D\,S_3S_2S_1S_0

So the circuit has four inverters (for Sˉ3,Sˉ2,Sˉ1,Sˉ0\bar S_3,\bar S_2,\bar S_1,\bar S_0) and sixteen 5-input AND gates; the data line DD is connected to one input of every AND gate.

Working principle. The four select bits form a binary number from 0 to 15. Only the AND gate whose select pattern matches this number has all its inputs at 1 when D=1D=1, so only that output equals DD; every other AND gate has at least one 0 input, so its output stays 0. For example, with S3S2S1S0=1010S_3S_2S_1S_0=1010 (=10=10), only Y10Y_{10} follows DD. The circuit is the same as a 4-to-16 decoder with DD used as the enable input. It can also be built from a tree of 1-to-2 or 1-to-4 demultiplexers.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Perform the arithmetic operation (+42)+(-13) and (-42)-(-13) in binary using the signed -2’s-complement representation for negative numbers.

Answer

Use 8 bits (sign bit plus 7 magnitude bits). Negative numbers are stored in 2's complement.

Representations.

  • +42=00101010+42 = 00101010
  • +13=00001101+13 = 00001101
  • −13-13: 1's complement of 0000110100001101 is 1111001011110010; add 1 to get 1111001111110011.
  • −42-42: 1's complement of 0010101000101010 is 1101010111010101; add 1 to get 1101011011010110.

(a) (+42)+(−13)(+42)+(-13).

  00101010   (+42)
+ 11110011   (-13)
-----------
1 00011101

The carry out of the sign bit is discarded (the carries into and out of the sign bit are both 1, so there is no overflow). Result =00011101=16+8+4+1=+29=00011101 = 16+8+4+1 = +29. Check: 42−13=2942-13=29.

(b) (−42)−(−13)(-42)-(-13). Subtraction is done by adding the 2's complement of the subtrahend. The 2's complement of −13-13 (1111001111110011) is 0000110100001101 (+13)(+13). So

  11010110   (-42)
+ 00001101   (+13)
-----------
  11100011

There is no carry out. The sign bit is 1, so the result is negative. Its magnitude is the 2's complement of 1110001111100011: invert to 0001110000011100, add 1 to get 00011101=2900011101 = 29. Result =−29=-29. Check: −42+13=−29-42+13=-29.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Express the complement of the following function in sum of min-terms. F(A, B, C, D) = Σ(0, 2, 6, 11, 13, 14)

Answer

For a 4-variable function there are 24=162^4=16 minterms (00 to 1515). The complement F′F' consists of exactly those minterms that are not in FF.

F(A,B,C,D)=Σ(0,2,6,11,13,14)F(A,B,C,D)=\Sigma(0,2,6,11,13,14)

All minterms: 0,1,2,…,150,1,2,\ldots,15. Removing 0,2,6,11,13,140,2,6,11,13,14 leaves 1,3,4,5,7,8,9,10,12,151,3,4,5,7,8,9,10,12,15. Hence

F′(A,B,C,D)=Σ(1,3,4,5,7,8,9,10,12,15)F'(A,B,C,D)=\Sigma(1,3,4,5,7,8,9,10,12,15)

Check: FF has 66 minterms and F′F' has 1010, and 6+10=166+10=16.

In terms of maxterms, F=Π(1,3,4,5,7,8,9,10,12,15)F=\Pi(1,3,4,5,7,8,9,10,12,15), i.e. the minterms of F′F' are the maxterm numbers of FF.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Reduce the following function using k-map F = wxy + yz + xy’z + x’y

Answer

F=wxy+yz+xy′z+x′yF = wxy + yz + xy'z + x'y

Expand to minterms (index =8w+4x+2y+z=8w+4x+2y+z):

  • wxywxy: w=x=y=1w=x=y=1, zz any, giving 14,1514, 15
  • yzyz: y=z=1y=z=1, giving 3,7,11,153, 7, 11, 15
  • xy′zxy'z: x=1,y=0,z=1x=1,y=0,z=1, giving 5,135, 13
  • x′yx'y: x=0,y=1x=0,y=1, giving 2,3,6,72, 3, 6, 7 and 10,1110, 11 (with w=1w=1)

F=Σ(2,3,5,6,7,10,11,13,14,15)F=\Sigma(2,3,5,6,7,10,11,13,14,15)

K-map (rows wxwx, columns yzyz):

wx\yzwx \backslash yz00011110
000011
010111
110111
100011

Grouping.

  • Octet of the two columns 1111 and 1010 (all y=1y=1 cells: 2,3,6,7,10,11,14,152,3,6,7,10,11,14,15) gives yy.
  • Quad of cells 5,7,13,155,7,13,15 (rows 0101 and 1111, columns 0101 and 1111) gives xzxz.

F=y+xzF = y + xz

Check: y=1y=1 covers 8 minterms, and xzxz with y=0y=0 adds 55 and 1313, a total of 1010 minterms, matching the original function.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Design a combinational circuit with three inputs and six outputs. The output binary number should be the square of the input binary number.

Answer

Design. Let the 3-bit input be ABCABC (AA the MSB). The largest input is 77, and 72=49<647^2 = 49 < 64, so six output bits B5B4B3B2B1B0B_5B_4B_3B_2B_1B_0 are enough.

Truth table

AABBCCDecimalSquareB5B_5B4B_4B3B_3B2B_2B1B_1B0B_0
00000000000
00111000001
01024000100
01139001001
100416010000
101525011001
110636100100
111749110001

Simplification from the minterms

  • B0=∑(1,3,5,7)=CB_0 = \sum(1,3,5,7) = C
  • B1=0B_1 = 0 (a square is always 00 or 1(mod4)1 \pmod 4, so this bit is always 0)
  • B2=∑(2,6)=BC′B_2 = \sum(2,6) = BC'
  • B3=∑(3,5)=A′BC+AB′C=C(A⊕B)B_3 = \sum(3,5) = A'BC + AB'C = C(A \oplus B)
  • B4=∑(4,5,7)=AB′+AC=A(B′+C)B_4 = \sum(4,5,7) = AB' + AC = A(B' + C)
  • B5=∑(6,7)=ABB_5 = \sum(6,7) = AB

Circuit. B0B_0 is connected directly to CC and B1B_1 is tied to logic 0. B2B_2 uses one NOT and one AND gate. B3B_3 uses one XOR and one AND gate. B4B_4 uses one NOT, one OR and one AND gate. B5B_5 uses one AND gate. Only the inputs AA, BB, CC (and their complements) are needed, so the whole circuit is a small two-level combinational network.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Design a 5 x 32 decoder with four 3 x 8 decoder with enable and one 2 x 4 decoder. Use block diagrams only.

Answer

Idea. A 5×325 \times 32 decoder has inputs A4A3A2A1A0A_4A_3A_2A_1A_0 and 32 outputs D0…D31D_0 \ldots D_{31}. The two most significant bits A4A3A_4A_3 select one of four groups of eight outputs; the three least significant bits A2A1A0A_2A_1A_0 select one output inside the group.

  • A 2×42 \times 4 decoder takes A4A3A_4A_3. Its four outputs Y0,Y1,Y2,Y3Y_0, Y_1, Y_2, Y_3 drive the enable inputs EE of the four 3×83 \times 8 decoders, so only one of them is active at a time.
  • The three lines A2A1A0A_2A_1A_0 are connected in parallel to the select inputs of all four 3×83 \times 8 decoders.

Block diagram

                     +-----------+
 A4 ---------------->|           |--Y0--> E of DEC-0 (3x8) -> D0  ... D7
 A3 ---------------->| 2 x 4 DEC |--Y1--> E of DEC-1 (3x8) -> D8  ... D15
                     |           |--Y2--> E of DEC-2 (3x8) -> D16 ... D23
                     +-----------+--Y3--> E of DEC-3 (3x8) -> D24 ... D31

 A2 A1 A0 ---------> (common to the select inputs of all four 3x8 decoders)

Working. When A4A3=00A_4A_3 = 00, only the first 3×83 \times 8 decoder is enabled and gives outputs D0D_0 to D7D_7 according to A2A1A0A_2A_1A_0. For A4A3=01A_4A_3 = 01, the second decoder gives D8D_8 to D15D_{15}; for 1010 the third gives D16D_{16} to D23D_{23}; for 1111 the fourth gives D24D_{24} to D31D_{31}. The disabled decoders keep all their outputs at the inactive level. For example, A4A3A2A1A0=10110A_4A_3A_2A_1A_0 = 10110 enables decoder 2 and selects its output 6, which is D22D_{22}.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Design and explain the Decimal adder with truth table and suitable diagram.

Answer

Decimal (BCD) adder. A decimal adder adds two BCD digits and a carry-in and produces a BCD digit and a carry-out. Since each digit is at most 9, the largest sum is 9+9+1=199 + 9 + 1 = 19.

Method. Add the two BCD digits and the input carry with an ordinary 4-bit binary adder. This gives a binary sum K Z8Z4Z2Z1K\,Z_8Z_4Z_2Z_1. If the sum is 9 or less, it is already the correct BCD digit. If it is 10 to 19, it is not valid BCD, and adding 011020110_2 (6) corrects it and produces the decimal carry.

Truth table

Binary sum K Z8Z4Z2Z1K\,Z_8Z_4Z_2Z_1DecimalBCD sum C S8S4S2S1C\,S_8S_4S_2S_1
0 0000 to 0 10010 to 90 0000 to 0 1001 (same)
0 1010101 0000
0 1011111 0001
0 1100121 0010
0 1101131 0011
0 1110141 0100
0 1111151 0101
1 0000161 0110
1 0001171 0111
1 0010181 1000
1 0011191 1001

Correction condition. Correction is needed when the binary sum has produced a carry (K=1K = 1, sums 16 to 19) or when the 4-bit result is 10 to 15, i.e. Z8=1Z_8 = 1 together with Z4=1Z_4 = 1 or Z2=1Z_2 = 1:

C=K+Z8Z4+Z8Z2C = K + Z_8Z_4 + Z_8Z_2

When C=1C = 1, the number 01100110 is added to Z8Z4Z2Z1Z_8Z_4Z_2Z_1 and the carry-out of the digit is CC.

Diagram

 A (4-bit BCD) --+
 B (4-bit BCD) --+--> [ 4-bit binary adder 1 ] <-- Cin
                          |  K (carry)   Z8 Z4 Z2 Z1
                          |
                 K + Z8.Z4 + Z8.Z2  (AND-OR gates) ---> C = carry-out
                          |
                          +--> 0 C C 0  (= 0110 when C=1, else 0000)
                                        |
 Z8 Z4 Z2 Z1 ------> [ 4-bit binary adder 2 ] ---> S8 S4 S2 S1

The first adder forms the binary sum, the AND-OR logic generates CC, and the second adder adds 0 C C 00\,C\,C\,0 (6 or 0) to give the corrected BCD digit. The carry CC is passed to the next decade for multi-digit addition. Example: 8+7=15=011118 + 7 = 15 = 01111; Z8Z4=1Z_8Z_4 = 1, so C=1C = 1; 1111+0110=1 01011111 + 0110 = 1\,0101, and the discarded carry gives the BCD result 1 01011\ 0101, i.e. 15.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Explain shift register with parallel load. Highlight on its practical implications.

Answer

Shift register with parallel load. A shift register is a group of flip-flops connected in cascade so that the binary data stored in them moves one position on each clock pulse. A shift register with parallel load can additionally load all of its flip-flops simultaneously from external parallel inputs, so it can be loaded in parallel and shifted serially.

Structure (4 bits). Each flip-flop QiQ_i has a 2×12 \times 1 multiplexer in front of its D input. The select line is a control input Shift/Load‾\text{Shift}/\overline{\text{Load}}:

  • Shift/Load‾=0\text{Shift}/\overline{\text{Load}} = 0: Di=IiD_i = I_i (parallel data input), so all four bits are loaded at the next clock edge.
  • Shift/Load‾=1\text{Shift}/\overline{\text{Load}} = 1: Di=Qi−1D_i = Q_{i-1} (output of the previous stage), and the serial input feeds the first stage, so the data shifts one place right.
 Serial in --> [MUX]->[D FF Q3]-->[MUX]->[D FF Q2]-->[MUX]->[D FF Q1]-->[MUX]->[D FF Q0]--> Serial out
                 ^                  ^                  ^                  ^
                I3                 I2                 I1                 I0      (parallel inputs)
 All MUX select lines = Shift/Load;   all flip-flops share the same clock

Function table

ClockShift/LoadOperation
↑0Parallel load: Qi←IiQ_i \leftarrow I_i
↑1Shift right: Qi←Qi−1Q_i \leftarrow Q_{i-1}

Practical implications

  1. It converts parallel data to serial data (load in one clock pulse, then shift out bit by bit) and serial data to parallel data, which is essential in serial communication such as UART and keyboard or modem interfaces.
  2. It is the basic building block of the accumulator and arithmetic units in a computer, where shifting left or right multiplies or divides by 2.
  3. It can be used as a temporary storage register, a delay line, and to build ring and twisted-ring (Johnson) counters.
  4. Because the data are loaded and shifted under control of the same clock, the multiplexers add gate delay in front of every flip-flop. The clock rate is therefore limited by the multiplexer delay plus the flip-flop setup time.
  5. Serial transfer needs only one data line but nn clock pulses, while parallel transfer needs nn lines but one pulse, so the register lets the designer trade wiring against speed.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Explain master slave J-K flipflop.

Answer

Master-slave J-K flip-flop. A plain level-triggered J-K latch suffers from the race-around condition: when J=K=1J = K = 1 and the clock stays high longer than the propagation delay, the output toggles repeatedly during one clock pulse. The master-slave arrangement removes this problem.

Construction. It consists of two clocked J-K (or SR) latches in cascade:

  • the first is the master, the second is the slave;
  • the master is enabled by the clock CPCP, the slave by its complement CP‾\overline{CP} (through an inverter);
  • the outputs QQ and Q′Q' of the slave are fed back to the master's inputs, giving S=J Q′S = J\,Q' and R=K QR = K\,Q.
 J --+--[AND]--+                          +-----------+
 CP -+--[AND]--+--> MASTER latch --Qm,Qm'-->  SLAVE    +--> Q
 K --+--[AND]--+     (enabled when CP=1)   |  (enabled |--> Q'
      ^   ^                               |  when CP=0)|
      |   +-------- feedback Q, Q' -------+-----------+

Working

  1. When CP=1CP = 1, the master is enabled and takes up the state decided by JJ, KK and the fed-back QQ, Q′Q'. The slave is disabled, so the output QQ does not change.
  2. When CPCP falls to 0, the master is disabled (it holds the value it captured) and the slave is enabled. The slave copies the master's state, so the output changes only at the falling edge of the clock.
  3. Because the output only changes after the master is isolated, the changed QQ cannot reach the master input while the master is active, so there is no race-around.

Truth table

JJKKQ(t+1)Q(t+1)Operation
00Q(t)Q(t)No change
010Reset
101Set
11Q′(t)Q'(t)Toggle

Characteristic equation: Q(t+1)=JQ′+K′QQ(t+1) = JQ' + K'Q.

The master-slave J-K flip-flop therefore acts as a negative-edge triggered flip-flop: the output transition occurs at the end (falling edge) of the clock pulse, using the input values present during the pulse, and it can be used safely as a toggle element in counters.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2074 · 5 marks

Write short notes on (any two):
  • State diagram
  • De-Morgan’s theorem
  • TTL

Answer

(a) State diagram. A state diagram is the graphical representation of a sequential circuit. Each state (the contents of the flip-flops) is drawn as a circle, and a directed arrow between circles shows a transition. The arrow is labelled with the input that causes the transition and, for a Mealy machine, the output as well (input/output); in a Moore machine the output is written inside the circle. For example, a T flip-flop has two states, 0 and 1. With T=1T = 1, the arrow goes from 0 to 1 and from 1 to 0; with T=0T = 0, a loop arrow keeps the state. State diagrams are the first step in sequential design: from the diagram the state table is built, then the flip-flop input equations are found with K-maps.

(b) De Morgan's theorem. It states two rules relating AND, OR and complement:

(A+B)′=A′⋅B′(A⋅B)′=A′+B′(A + B)' = A' \cdot B' \qquad (A \cdot B)' = A' + B'

The complement of a sum is the product of the complements, and the complement of a product is the sum of the complements. It extends to any number of variables: (A+B+C)′=A′B′C′(A + B + C)' = A'B'C'. Proof for the first rule: if A=B=0A = B = 0 both sides are 1; in every other case the left side is 0 and the right side contains a 0 factor, so is 0. The theorem is used to convert an AND-OR network into NAND-NAND or an OR-AND network into NOR-NOR form, and to find the complement of a function.

(c) TTL. Transistor-Transistor Logic is a bipolar logic family in which the input stage uses a multiple-emitter transistor and the output stage is a totem-pole (a pull-up transistor on top of a pull-down transistor). The 74xx series is the standard TTL series, with a supply of +5 V+5\text{ V}, logic-0 below 0.8 V0.8\text{ V} and logic-1 above 2.0 V2.0\text{ V} at the input. Typical figures: propagation delay about 10 ns10\text{ ns} and power dissipation about 10 mW10\text{ mW} per gate for standard TTL, fan-out 10. Variants are Schottky (74S), low-power Schottky (74LS), advanced versions, and open-collector and tri-state outputs. TTL is fast and cheap but dissipates more power than CMOS.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2075 · 10 marks

The following is a truth table of a 3-input,4 output combinational circuit. Tabulate the PAL programming table for the circuit and mark for the circuit and mark the fuses to be blown in a PAL diagram.
InputOutput
XY
00
00
01
01
10
10
11
11

Answer

Step 1: simplify each output (inputs X,Y,ZX, Y, Z with XX the MSB).

  • A=∑(1,2,4,6)=X′Y′Z+XZ′+YZ′A = \sum(1,2,4,6) = X'Y'Z + XZ' + YZ'
  • B=∑(1,3,6,7)=X′Z+XYB = \sum(1,3,6,7) = X'Z + XY
  • C=∑(1,2,4,6,7)=X′Y′Z+XZ′+YZ′+XYC = \sum(1,2,4,6,7) = X'Y'Z + XZ' + YZ' + XY
  • D=∑(1,2,3,5,7)=Z+X′YD = \sum(1,2,3,5,7) = Z + X'Y

Step 2: PAL programming table. In a PAL, the AND array is programmable but each OR gate is fixed to its own set of product terms, so terms cannot be shared between outputs. Here at most 4 terms per output are needed, so a PAL with four product terms per OR gate is enough. In the table, 1 means the true input is connected, 0 means the complemented input is connected, and - means the input is not connected (both fuses blown).

Product termAND inputsOutputs
XXYYZZ
1001A=X′Y′ZA = X'Y'Z
21-0+ XZ′+\ XZ'
3-10+ YZ′+\ YZ'
40-1B=X′ZB = X'Z
511-+ XY+\ XY
6001C=X′Y′ZC = X'Y'Z
71-0+ XZ′+\ XZ'
8-10+ YZ′+\ YZ'
911-+ XY+\ XY
10--1D=ZD = Z
1101-+ X′Y+\ X'Y

Step 3: fuse map for the PAL diagram. Every AND gate has six input lines X,X′,Y,Y′,Z,Z′X, X', Y, Y', Z, Z', each with a fuse. A fuse is left intact (marked ×) where the table requires the line, and all other fuses of that gate are blown. Unused AND gates in an OR gate keep all fuses intact (output 0).

TermXXX′X'YYY′Y'ZZZ′Z'Output OR
1blown×blown××blownAA
2×blownblownblownblown×AA
3blownblown×blownblown×AA
4blown×blownblown×blownBB
5×blown×blownblownblownBB
6blown×blown××blownCC
7×blownblownblownblown×CC
8blownblown×blownblown×CC
9×blown×blownblownblownCC
10blownblownblownblown×blownDD
11blown××blownblownblownDD

The remaining fuses (the ones marked "blown") are the ones to be burnt out in the PAL diagram; the intact fuses form the four product-term groups feeding the four fixed OR gates A,B,C,DA, B, C, D.

Check, e.g. XYZ=110XYZ = 110: term 2 (XZ′XZ') gives A=1A = 1; term 5 gives B=1B = 1; terms 7, 9 give C=1C = 1; DD terms are both 0, so D=0D = 0. This matches the row 1 1 1 01\,1\,1\,0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2075 · 5 marks

Convert the following decimal numbers to the indicated bases.
  • 7562.45 to octal
  • 1938.257 to hexadecimal
  • 175.175 to binary

Answer

(a) 7562.45107562.45_{10} to octal

Integer part (divide by 8):

DivisionQuotientRemainder
7562/87562 / 89452
945/8945 / 81181
118/8118 / 8146
14/814 / 816
1/81 / 801

Reading the remainders upward: 16612816612_8. (Check: 4096+3072+384+8+2=75624096 + 3072 + 384 + 8 + 2 = 7562.)

Fraction part (multiply by 8): 0.45×8=3.6→30.45 \times 8 = 3.6 \to 3; 0.6×8=4.8→40.6 \times 8 = 4.8 \to 4; 0.8×8=6.4→60.8 \times 8 = 6.4 \to 6; 0.4×8=3.2→30.4 \times 8 = 3.2 \to 3; 0.2×8=1.6→10.2 \times 8 = 1.6 \to 1; 0.6×8=4.8→40.6 \times 8 = 4.8 \to 4, and the digits 46314631 repeat.

7562.4510=16612.34631…8≈16612.346387562.45_{10} = 16612.34631\ldots_8 \approx 16612.3463_8

(b) 1938.257101938.257_{10} to hexadecimal

Integer part: 1938/16=1211938 / 16 = 121 remainder 22; 121/16=7121 / 16 = 7 remainder 99; 7/16=07 / 16 = 0 remainder 77. So 1938=792161938 = 792_{16}. (Check: 7⋅256+9⋅16+2=1792+144+2=19387\cdot256 + 9\cdot16 + 2 = 1792 + 144 + 2 = 1938.)

Fraction part (multiply by 16): 0.257×16=4.112→40.257 \times 16 = 4.112 \to 4; 0.112×16=1.792→10.112 \times 16 = 1.792 \to 1; 0.792×16=12.672→C0.792 \times 16 = 12.672 \to C; 0.672×16=10.752→A0.672 \times 16 = 10.752 \to A; 0.752×16=12.032→C0.752 \times 16 = 12.032 \to C; …\ldots

1938.25710≈792.41CAC161938.257_{10} \approx 792.41\text{CAC}_{16}

(c) 175.17510175.175_{10} to binary

Integer part: 175=128+32+8+4+2+1=101011112175 = 128 + 32 + 8 + 4 + 2 + 1 = 10101111_2.

Fraction part (multiply by 2): 0.175→0.35 (0)0.175 \to 0.35\ (0); 0.35→0.7 (0)0.35 \to 0.7\ (0); 0.7→1.4 (1)0.7 \to 1.4\ (1); 0.4→0.8 (0)0.4 \to 0.8\ (0); 0.8→1.6 (1)0.8 \to 1.6\ (1); 0.6→1.2 (1)0.6 \to 1.2\ (1); 0.2→0.4 (0)0.2 \to 0.4\ (0); 0.4→0.8 (0)0.4 \to 0.8\ (0); 0.8→1.6 (1)0.8 \to 1.6\ (1); 0.6→1.2 (1)0.6 \to 1.2\ (1); ...

The fraction is 0.00101 1001 1…0.00101\,1001\,1\ldots (the pattern 01100110 repeats after the third bit).

175.17510≈10101111.00101100112175.175_{10} \approx 10101111.0010110011_2

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2075 · 5 marks

Express the Boolean Function F = A + B’ C in a sum of min terms .

Answer

Given F=A+B′CF = A + B'C with three variables A,B,CA, B, C.

Each product term must contain all three variables, so multiply the missing variables by (x+x′)=1(x + x') = 1.

A=A(B+B′)(C+C′)=ABC+ABC′+AB′C+AB′C′A = A(B + B')(C + C') = ABC + ABC' + AB'C + AB'C'

B′C=B′C(A+A′)=AB′C+A′B′CB'C = B'C(A + A') = AB'C + A'B'C

Adding the two and removing the repeated term AB′CAB'C:

F=A′B′C+AB′C′+AB′C+ABC′+ABCF = A'B'C + AB'C' + AB'C + ABC' + ABC

In minterm form (binary ABCABC → decimal): 001=1001 = 1, 100=4100 = 4, 101=5101 = 5, 110=6110 = 6, 111=7111 = 7.

F(A,B,C)=∑m(1,4,5,6,7)F(A,B,C) = \sum m(1, 4, 5, 6, 7)

Check: F=1F = 1 when A=1A = 1 (minterms 4 to 7) and, with A=0A = 0, when B=0,C=1B = 0, C = 1 (minterm 1). This agrees.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2075 · 5 marks

Reduce the following function using k-map F = B’D + A’BC’ + AB’C + ABC’

Answer

F=B′D+A′BC′+AB′C+ABC′F = B'D + A'BC' + AB'C + ABC' in four variables A,B,C,DA, B, C, D.

Minterms (order ABCDABCD):

  • B′DB'D: 0001,0011,1001,1011→1,3,9,110001, 0011, 1001, 1011 \to 1, 3, 9, 11
  • A′BC′A'BC': 0100,0101→4,50100, 0101 \to 4, 5
  • AB′CAB'C: 1010,1011→10,111010, 1011 \to 10, 11
  • ABC′ABC': 1100,1101→12,131100, 1101 \to 12, 13

F=∑(1,3,4,5,9,10,11,12,13)F = \sum(1, 3, 4, 5, 9, 10, 11, 12, 13)

K-map (rows ABAB, columns CDCD in the order 00, 01, 11, 10):

AB\CDAB \backslash CD00011110
000110
011100
111100
100111

Groups

  • Quad m1,m3,m9,m11m_1, m_3, m_9, m_{11} (columns 01 and 11 in rows 00 and 10, wrapping): B′DB'D
  • Quad m4,m5,m12,m13m_4, m_5, m_{12}, m_{13} (rows 01 and 11, columns 00 and 01): BC′BC'
  • Pair m10,m11m_{10}, m_{11}: AB′CAB'C (only way to cover m10m_{10})

All nine minterms are covered, and each group is essential.

F=B′D+BC′+AB′CF = B'D + BC' + AB'C

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2075 · 5 marks

Implement half adder using 2-4 decoder.

Answer

Half adder. The half adder adds two bits xx and yy and gives

S=x′y+xy′=∑m(1,2),C=xy=∑m(3)S = x'y + xy' = \sum m(1, 2), \qquad C = xy = \sum m(3)

Using a 2×42 \times 4 decoder. The decoder produces all four minterms of the two inputs:

xxyyD0=x′y′D_0 = x'y'D1=x′yD_1 = x'yD2=xy′D_2 = xy'D3=xyD_3 = xySSCC
00100000
01010010
10001010
11000101

Connect xx to the MSB input A1A_1 and yy to the LSB input A0A_0 of the decoder. Then:

  • Sum: S=D1+D2S = D_1 + D_2, taken from a 2-input OR gate on outputs D1D_1 and D2D_2.
  • Carry: C=D3C = D_3, taken directly from output D3D_3.
 x --> A1 +---------+ D0 (unused)
 y --> A0 | 2 x 4   | D1 ---+
          | DECODER | D2 ---+--[OR]--> Sum
          |         | D3 -------------> Carry
          +---------+

Output D0D_0 is left unused. This gives the half adder with one decoder and one OR gate.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2075 · 5 marks

Design a 4-bit binary ripple counter with D flip-flops.

Answer

4-bit binary ripple counter with D flip-flops. An asynchronous (ripple) counter has the clock applied only to the first flip-flop; each following flip-flop is clocked by the output of the previous one. A D flip-flop is turned into a toggle (divide-by-2) element by connecting its Q′Q' output back to its D input (D=Q′D = Q'), so it changes state at every active clock edge.

Connections (positive-edge triggered D flip-flops, up counter):

  • D0=Q0′D_0 = Q_0', D1=Q1′D_1 = Q_1', D2=Q2′D_2 = Q_2', D3=Q3′D_3 = Q_3'
  • external clock →\to clock of FF0
  • Q0′→Q_0' \to clock of FF1; Q1′→Q_1' \to clock of FF2; Q2′→Q_2' \to clock of FF3

(With negative-edge triggered flip-flops, the QQ output of each stage would drive the next clock instead.) When Q0Q_0 goes from 1 to 0, Q0′Q_0' goes from 0 to 1, which is a positive edge that toggles FF1, and so on, so each stage toggles when the previous stage falls from 1 to 0.

 CLK -> [FF0: D=Q0'] --Q0'--> [FF1: D=Q1'] --Q1'--> [FF2: D=Q2'] --Q2'--> [FF3: D=Q3']
          Q0                    Q1                    Q2                    Q3

Count sequence (output Q3Q2Q1Q0Q_3Q_2Q_1Q_0)

Clock pulseQ3Q_3Q2Q_2Q1Q_1Q0Q_0Decimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
10101010
11101111
12110012
13110113
14111014
15111115
1600000 (repeats)

Q0Q_0 changes at every clock pulse, so fQ0=f/2f_{Q_0} = f/2, fQ1=f/4f_{Q_1} = f/4, fQ2=f/8f_{Q_2} = f/8, fQ3=f/16f_{Q_3} = f/16. The counter is a modulo-16 counter. Its drawback is that the delays add up (4tpd4 t_{pd} for the last stage), so the maximum clock frequency is limited and glitches may occur in decoding.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2075 · 5 marks

Write short notes on any two:
  • SIMM
  • RTL
  • Parity Checker

Answer

(a) SIMM. A Single In-line Memory Module is a small circuit board carrying several DRAM chips, with a single row of contacts along one edge that plugs into a socket on the motherboard. The contacts on the two sides of a SIMM are electrically the same (unlike a DIMM, where each side is separate). The common types are the 30-pin SIMM (8 bits wide) and the 72-pin SIMM (32 bits wide). Because a 32-bit SIMM matches a 32-bit data bus, they were installed in pairs on 64-bit buses. SIMMs made it easy to expand the memory of a computer by plugging modules in; they were later replaced by DIMMs.

(b) RTL. Resistor-Transistor Logic is one of the earliest digital logic families. The basic gate is a NOR gate: several input resistors feed the bases of parallel transistors whose collectors share a common load resistor. If any input is HIGH, the corresponding transistor conducts and pulls the output LOW; the output is HIGH only when all inputs are LOW.

  • Advantages: simple, cheap.
  • Disadvantages: low noise margin, high power consumption, low fan-out (about 5), slow speed.

It has been replaced by DTL, TTL and CMOS.

(c) Parity checker. A parity checker checks the received data for errors by checking the parity bit that was added by the parity generator. For a 4-bit data word with an even parity bit PP, the checker receives A,B,C,D,PA, B, C, D, P and generates the error output

PEC=A⊕B⊕C⊕D⊕P\text{PEC} = A \oplus B \oplus C \oplus D \oplus P

If the number of 1s among the five bits is even (no error, or an even number of bit errors), PEC=0\text{PEC} = 0. If it is odd, PEC=1\text{PEC} = 1, which indicates an error. The circuit uses four 2-input XOR gates in a tree arrangement. A parity check detects any single-bit error, but cannot locate it, and cannot detect an even number of errors.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 10 marks

Design a combinational circuit that generates 9’s complement of a BCD number.

Answer

9's complement of a BCD digit. The 9's complement of a decimal digit dd is 9−d9 - d. Let the BCD input be ABCDABCD (digits 0 to 9) and the output WXYZWXYZ. The input codes 1010 to 1111 never occur in BCD, so they are don't-care conditions.

Truth table

DigitAABBCCDD9−d9-dWWXXYYZZ
0000091001
1000181000
2001070111
3001160110
4010050101
5010140100
6011030011
7011120010
8100010001
9100100000
10 to 15dddd

K-map simplification (using the don't-cares where they help)

  • ZZ: Z=1Z = 1 for digits 0, 2, 4, 6, 8, which are exactly the inputs with D=0D = 0. So Z=D′Z = D'.
  • YY: Y=1Y = 1 for digits 2, 3, 6, 7 (all those with C=1C = 1; for 10 to 15 the don't-cares may be taken as needed). So Y=CY = C.
  • XX: X=1X = 1 for digits 2, 3, 4, 5, i.e. when BB and CC differ. So X=B′C+BC′=B⊕CX = B'C + BC' = B \oplus C.
  • WW: W=1W = 1 only for digits 0 and 1, i.e. A=B=C=0A = B = C = 0. So W=A′B′C′W = A'B'C'.

W=A′B′C′,X=B⊕C,Y=C,Z=D′W = A'B'C', \quad X = B \oplus C, \quad Y = C, \quad Z = D'

Circuit. One NOT gate on DD gives ZZ; YY is a straight wire from CC; one XOR gate gives XX; one 3-input NOR gate on A,B,CA, B, C (or three NOT gates and an AND gate) gives WW. For example, input 0100 (digit 4) gives W=0W=0, X=1⊕0=1X = 1 \oplus 0 = 1, Y=0Y = 0, Z=1Z = 1, so the output is 01010101 = 5, which is 9−49 - 4.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 10 marks

Implement the following functions using PLA
  • w (A, B, C, D) = Σ(2, 12, 13)
  • x (A, B, C, D) = Σ(7, 8, 9, 10, 11, 12, 13, 14, 15)
  • y (A, B, C, D) = Σ(0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15)
  • z (A, B, C, D) = Σ(1, 2, 8, 12, 13)

Answer

Step 1: simplify each function.

  • w=∑(2,12,13)=ABC′+A′B′CD′w = \sum(2, 12, 13) = ABC' + A'B'CD' (m12,m13m_{12}, m_{13} form the pair ABC′ABC'; m2m_2 stands alone)
  • x=∑(7,8,…,15)=A+BCDx = \sum(7, 8, \ldots, 15) = A + BCD (m8m_8 to m15m_{15} is the group AA; m7m_7 pairs with m15m_{15} to give BCDBCD)
  • y=∑(0,2,3,4,5,6,7,8,9,10,11,15)=AB′+A′B+CD+B′D′y = \sum(0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15) = AB' + A'B + CD + B'D' (check: its complement is ∑(1,12,13,14)\sum(1,12,13,14), and none of these is covered by the four terms)
  • z=∑(1,2,8,12,13)=ABC′+AC′D′+A′B′C′D+A′B′CD′z = \sum(1, 2, 8, 12, 13) = ABC' + AC'D' + A'B'C'D + A'B'CD'

The terms ABC′ABC' (shared by ww and zz) and A′B′CD′A'B'CD' (shared by ww and zz) need to be generated only once in a PLA.

Step 2: PLA programming table. The distinct product terms are numbered 1 to 10. In the input columns, 1 = true input, 0 = complemented input, - = not connected. In the output columns, 1 means the product term is connected to that output's OR gate (an output with no entry is 0).

TermProductAABBCCDDwwxxyyzz
1ABC′ABC'110-1--1
2A′B′CD′A'B'CD'00101--1
3AA1----1--
4BCDBCD-111-1--
5AB′AB'10----1-
6A′BA'B01----1-
7CDCD--11--1-
8B′D′B'D'-0-0--1-
9AC′D′AC'D'1-00---1
10A′B′C′DA'B'C'D0001---1

So the PLA has 4 inputs, 10 product terms and 4 outputs. The outputs are:

w=T1+T2,x=T3+T4,y=T5+T6+T7+T8,z=T1+T2+T9+T10w = T_1 + T_2,\quad x = T_3 + T_4,\quad y = T_5 + T_6 + T_7 + T_8,\quad z = T_1 + T_2 + T_9 + T_{10}

Step 3: diagram. In the AND array, the ten AND gates take A,B,C,DA, B, C, D and their complements, with fuses left intact only at the 1 and 0 entries of the table. In the OR array, the four OR gates have fuses intact only at the 1 entries of the output columns.

Check with ABCD=1100ABCD = 1100 (12): T1T_1 (needs A,B,C′A, B, C') = 1 and T3T_3 = 1, T9T_9 = 1; so w=1w = 1, x=1x = 1, z=1z = 1, and y=0y = 0 (no yy term is active). This agrees with 12 being in ww, xx, zz but not in yy.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 5 marks

List two major characteristics of digital computer. Represent -6 (negative six) 8 bits in signed magnitude, signed 1’s complement and signed 2’s complement respectively. Represent decimal number 4673 in a) octal and b) BCD

Answer

Two major characteristics of a digital computer

  1. It works with discrete (digital) data, represented by binary digits 0 and 1, and it processes them with logic circuits, so results are exact and noise has little effect.
  2. It is a stored-program machine: instructions and data are held in memory, and it carries out the instructions automatically, at very high speed and with high accuracy, without human intervention.

Representation of −6-6 in 8 bits. +6=0000 0110+6 = 0000\,0110.

  • Signed magnitude: sign bit 1 and the magnitude 6: 1000 01101000\,0110
  • Signed 1's complement: invert all bits of +6+6: 1111 10011111\,1001
  • Signed 2's complement: 1's complement plus 1: 1111 1001+1=1111 10101111\,1001 + 1 = 1111\,1010

Decimal 4673

(a) Octal (divide by 8):

DivisionQuotientRemainder
4673/84673 / 85841
584/8584 / 8730
73/873 / 891
9/89 / 811
1/81 / 801

Reading upward: 467310=1110184673_{10} = 11101_8. (Check: 4096+512+64+0+1=46734096 + 512 + 64 + 0 + 1 = 4673.)

(b) BCD: replace each decimal digit by its 4-bit code: 4=01004 = 0100, 6=01106 = 0110, 7=01117 = 0111, 3=00113 = 0011.

467310=0100 0110 0111 0011BCD4673_{10} = 0100\ 0110\ 0111\ 0011_{\text{BCD}}

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 5 marks

Where is CMOS suitable to use? Define Power dissipation. Show that the positive logic NAND gate is a negative logic NOR gate and vice versa.

Answer

Where CMOS is suitable. CMOS (Complementary MOS) has a very low static power consumption, high noise immunity, a wide supply range (3 V to 15 V or more) and a very high packing density. It is therefore suitable for battery-powered and portable equipment (watches, calculators, laptops, mobile phones), for VLSI circuits such as microprocessors and memories, and for places where power dissipation or heat must be kept low or where there is much electrical noise.

Power dissipation. Power dissipation of a gate is the power it consumes from the supply, P=VCC×ICCP = V_{CC} \times I_{CC} (average supply current). It consists of static power, drawn when the gate is in a steady state, and dynamic power, drawn while the gate is switching, PD=CLVDD2fP_D = C_L V_{DD}^2 f for CMOS (where CLC_L is the load capacitance and ff the switching frequency). In CMOS the static part is nearly zero, so the power depends mainly on the switching frequency.

Positive logic NAND is negative logic NOR. In positive logic the high voltage level H is logic 1 and the low level L is logic 0; in negative logic H is 0 and L is 1.

Voltage table of the gate that is a NAND in positive logic:

xxyyOutput
LLH
LHH
HLH
HHL

Positive logic (H = 1, L = 0):

xxyyFF
001
011
101
110

This is the NAND function.

Negative logic (H = 0, L = 1): the same voltage table becomes

xxyyFF
110
100
010
001

Re-ordered, the output is 1 only when both inputs are 0, which is the NOR function. Hence a positive logic NAND gate is a negative logic NOR gate. By the same argument, a positive logic NOR gate (output H only when both inputs L) becomes, with H = 0 and L = 1, a gate whose output is 0 only when both inputs are 1, i.e. a negative logic NAND gate.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 5 marks

Simplify the following function and implement them with two level NOR gate circuit, F(w, x, y, z) = wx’ + y’z’ + w’yz’.

Answer

F(w,x,y,z)=wx′+y′z′+w′yz′F(w,x,y,z) = wx' + y'z' + w'yz'

Minterms (order wxyzwxyz):

  • wx′wx': 1000,1001,1010,1011→8,9,10,111000, 1001, 1010, 1011 \to 8, 9, 10, 11
  • y′z′y'z': 0000,0100,1000,1100→0,4,8,120000, 0100, 1000, 1100 \to 0, 4, 8, 12
  • w′yz′w'yz': 0010,0110→2,60010, 0110 \to 2, 6

F=∑(0,2,4,6,8,9,10,11,12)F = \sum(0, 2, 4, 6, 8, 9, 10, 11, 12)

K-map (rows wxwx, columns yzyz in the order 00, 01, 11, 10)

wx\yzwx \backslash yz00011110
001001
011001
111000
101111

Simplification (sum of products). Groups: wx′wx' (row 10), y′z′y'z' (column 00) and w′z′w'z' (rows 00 and 01, columns 00 and 10, i.e. m0,m2,m4,m6m_0, m_2, m_4, m_6).

F=wx′+y′z′+w′z′F = wx' + y'z' + w'z'

Two-level NOR implementation. A NOR-NOR circuit needs a product-of-sums form. Take the zeros of the map: F′=∑(1,3,5,7,13,14,15)F' = \sum(1, 3, 5, 7, 13, 14, 15). Grouping: m1,m3,m5,m7=w′zm_1, m_3, m_5, m_7 = w'z; m5,m7,m13,m15=xzm_5, m_7, m_{13}, m_{15} = xz; m14,m15=wxym_{14}, m_{15} = wxy.

F′=w′z+xz+wxyF' = w'z + xz + wxy

Complementing with De Morgan's theorem:

F=(w+z′)(x′+z′)(w′+x′+y′)F = (w + z')(x' + z')(w' + x' + y')

Then F=[(w+z′)′+(x′+z′)′+(w′+x′+y′)′]′F = \big[(w+z')' + (x'+z')' + (w'+x'+y')'\big]', which is implemented as:

  • First level: three NOR gates, NOR(w,z′)\text{NOR}(w, z'), NOR(x′,z′)\text{NOR}(x', z') and NOR(w′,x′,y′)\text{NOR}(w', x', y') (the complemented inputs w′,x′,y′,z′w', x', y', z' come from inverters).
  • Second level: one 3-input NOR gate whose inputs are the outputs of the three first-level gates and whose output is FF.

Check: for wxyz=1100wxyz = 1100, the three sums are 1,1,11, 1, 1, so F=1F = 1 (minterm 12 is in FF); for 11011101 the sum (x′+z′)=0(x' + z') = 0, so F=0F = 0 (minterm 13 is not in FF).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 5 marks

Design a full subtractor circuit with three inputs x, y, BinB_{in} and two outputs Diff and BoutB_{out}· The circuit subtracts x−y−Binx-y-B_{in}., where BinB_{in} is the input borrow, BoutB_{out} is the output borrow, and Diff is the difference.

Answer

Full subtractor. A full subtractor subtracts x−y−Binx - y - B_{in} and gives the difference Diff\text{Diff} and the output borrow BoutB_{out}.

Truth table

xxyyBinB_{in}DiffBoutB_{out}
00000
00111
01011
01101
10010
10100
11000
11111

(For example 0−1−1=−20 - 1 - 1 = -2: difference 0 with a borrow; 1−1−1=−11 - 1 - 1 = -1: difference 1 with a borrow.)

Expressions

Diff=∑(1,2,4,7)=x′y′Bin+x′yBin′+xy′Bin′+xyBin=x⊕y⊕Bin\text{Diff} = \sum(1, 2, 4, 7) = x'y'B_{in} + x'yB_{in}' + xy'B_{in}' + xyB_{in} = x \oplus y \oplus B_{in}

For Bout=∑(1,2,3,7)B_{out} = \sum(1, 2, 3, 7), the K-map groups are m1,m3=x′Binm_1, m_3 = x'B_{in}; m2,m3=x′ym_2, m_3 = x'y; m3,m7=yBinm_3, m_7 = yB_{in}:

Bout=x′y+x′Bin+yBinB_{out} = x'y + x'B_{in} + yB_{in}

An equivalent form that shares the XOR gate: Bout=x′y+(x⊕y)′BinB_{out} = x'y + (x \oplus y)'B_{in}.

Circuit. Two XOR gates in cascade give Diff=(x⊕y)⊕Bin\text{Diff} = (x \oplus y) \oplus B_{in}. For BoutB_{out}: an inverter on xx, three 2-input AND gates (x′yx'y, x′Binx'B_{in}, yBinyB_{in}) and a 3-input OR gate. The full subtractor can also be built from two half subtractors and an OR gate for the borrow.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 5 marks

Explain negative-edge triggered D flip flop with necessary logic diagram and truth table.

Answer

Negative-edge triggered D flip-flop. A D flip-flop has a data input DD and a clock input. The output QQ takes the value of DD only at the active clock edge; in a negative-edge triggered flip-flop the active edge is the falling edge of the clock (1 to 0). At all other times, whatever DD does, the output is unchanged.

Logic diagram (master-slave form). It is made of two gated D latches in cascade, each built from NAND gates and an inverter:

          +----------------+       +----------------+
 D ------>| MASTER latch   |--Qm-->| SLAVE latch    |--> Q
          | enabled when   |       | enabled when   |--> Q'
 CLK ---->| CLK = 1        |   +-->| CLK = 0        |
     |    +----------------+   |   +----------------+
     +---------[NOT]-----------+
  • When CLK=1\text{CLK} = 1 the master is transparent and follows DD, while the slave is disabled, so QQ is unchanged.
  • When CLK\text{CLK} falls from 1 to 0, the master is closed and keeps the value DD had just before the edge, and the slave is enabled and copies the master's value to QQ.
  • While CLK=0\text{CLK} = 0 the master is closed, so changes in DD have no effect on QQ. When CLK\text{CLK} rises, the slave closes first, so QQ still does not change.

Thus QQ can change only at the falling edge of the clock.

Truth table

CLKDDQ(t+1)Q(t+1)Operation
↓00Reset
↓11Set
0, 1 or ↑XQ(t)Q(t)No change

Characteristic equation: Q(t+1)=DQ(t+1) = D. The flip-flop is used as a one-bit memory and delay element, and in registers, counters and shift registers.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 5 marks

Illustrate the use of Binary ripple counter and BCD ripple counter.

Answer

Binary ripple counter. A binary ripple counter is an asynchronous counter built from nn toggle (T or J-K with J=K=1J=K=1) flip-flops in which each flip-flop's output clocks the next one. An nn-bit counter counts from 0 to 2n−12^n - 1 (modulo 2n2^n) and then returns to 0. A 4-bit counter counts 0000,0001,…,11110000, 0001, \ldots, 1111 and repeats.

Uses of a binary ripple counter

  1. Counting events or pulses (for example, counting items on a production line or the number of clock pulses), where the output is the binary count.
  2. Frequency division: the output of the first stage is f/2f/2, the second f/4f/4, the third f/8f/8, and the nn-th is f/2nf/2^n. This is used to derive slower clocks from a crystal oscillator, as in digital watches.
  3. Timers and time delays: counting a known number of clock pulses gives a known time interval.
  4. Address generation: sequencing through the memory addresses or control states in a computer.

BCD (decade) ripple counter. A BCD counter counts only the ten states 00000000 to 10011001 (0 to 9) and then resets to 0000. It is built from a 4-bit ripple counter with a NAND gate connected to the outputs Q3Q_3 and Q1Q_1. After the ninth pulse the counter enters 10101010 (10) for a very short time, the NAND output goes low and clears all the flip-flops asynchronously to 00000000, so the sequence is:

Pulse012345678910
Q3Q2Q1Q0Q_3Q_2Q_1Q_000000001001000110100010101100111100010010000

Uses of the BCD counter

  1. It counts in decimal, so each decade stage can drive a BCD-to-seven-segment decoder and display. Cascading decades (the carry from Q3Q_3 clocks the next decade) gives units, tens, hundreds and so on. This is used in digital clocks, frequency counters, digital voltmeters and electronic counters and calculators.
  2. It divides frequency by exactly 10 (a divide-by-10 stage); e.g. a 1 MHz clock gives 100 kHz, which is useful for decimal time bases.
  3. It is used where decimal-based outputs are needed directly without further binary-to-decimal conversion.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2077 · 5 marks

Write Short notes on (Any two)
  • RTL
  • State Reduction
  • POS

Answer

RTL (Register Transfer Language)

RTL is a symbolic notation for describing the micro-operations performed on data stored in registers. A register is named by capital letters (R1, MAR, PC), and a transfer is written with a replacement arrow.

  • Simple transfer: R2 ← R1 copies the contents of R1 into R2; R1 is unchanged.
  • Conditional transfer: P: R2 ← R1 means the transfer occurs only when the control function P=1P = 1.
  • Arithmetic: R3 ← R1 + R2; logic: R3 ← R1 ∧ R2; shift: R1 ← shl R1.
  • Memory transfer: DR ← M[AR] (read) and M[AR] ← DR (write).
  • Several transfers separated by commas happen simultaneously on the same clock edge, e.g. T: R1 ← R2, R2 ← R1 swaps two registers.

RTL is the language used to specify the sequence of operations of a digital system, and each statement maps directly to a set of registers, a bus or multiplexers, and control signals.

State Reduction

State reduction removes redundant states from the state table of a sequential circuit so that fewer flip-flops and less gating are needed, without changing the input-output behaviour.

Two states are equivalent if, for every input sequence, they give the same output sequence, i.e. they have the same outputs for each input and their next states are the same or are themselves equivalent. One of two equivalent states can be removed and all references to it replaced by the other.

Example: if states cc and ee both have next state dd and aa for inputs 00 and 11 and both give output 00 and 11, then ee is replaced by cc. Repeating this until no more equivalent pairs exist gives the minimal table. The reduced table needs fewer state bits (for instance 5 states need 3 flip-flops, 4 states need only 2).

POS (Product of Sums)

POS is a standard form of a Boolean function in which sum (OR) terms are ANDed together:

F=(A+B′)(B+C)(A′+C′)F = (A + B')(B + C)(A' + C')

In the canonical POS form every sum term contains all the variables and is called a maxterm MiM_i. A function is written as the product of the maxterms for which F=0F = 0. For example,

F(x,y,z)=ΠM(0,1,2)=(x+y+z)(x+y+z′)(x+y′+z)F(x,y,z) = \Pi M(0,1,2) = (x+y+z)(x+y+z')(x+y'+z)

POS is obtained from the 0s of a K-map (group the 0s, complement each group's product to get a sum term). It is implemented with an OR-AND two-level circuit, or with NOR-NOR gates only.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Implement F = Σ(0, 2, 3, 4, 7) using
  • Multiplexer
  • Decoder
  • PLA

Answer

Here F(x,y,z)=Σ(0,2,3,4,7)F(x,y,z) = \Sigma(0,2,3,4,7), with xx the MSB.

(a) Using a multiplexer

A 3-variable function can be implemented with a 4×14\times1 MUX: use x,yx, y as the select lines and express each data input in terms of zz.

x yx\,ymintermsFF in terms of zzMUX input
00m0m_0 (z=0) = 1, m1m_1 (z=1) = 0z′z'I0=z′I_0 = z'
01m2m_2 = 1, m3m_3 = 111I1=1I_1 = 1
10m4m_4 = 1, m5m_5 = 0z′z'I2=z′I_2 = z'
11m6m_6 = 0, m7m_7 = 1zzI3=zI_3 = z
        4x1 MUX
  z' --| I0      |
  1  --| I1      |-- F
  z' --| I2      |
  z  --| I3      |
        S1  S0
        x   y

Connections: I0=I2=z′I_0 = I_2 = z' (one inverter on zz), I1=1I_1 = 1 (logic 1), I3=zI_3 = z, select S1=xS_1 = x, S0=yS_0 = y.

(b) Using a decoder

Use a 3×83\times 8 decoder with inputs x,y,zx, y, z (outputs D0…D7D_0 \ldots D_7 are the minterms) and a 5-input OR gate:

F=D0+D2+D3+D4+D7F = D_0 + D_2 + D_3 + D_4 + D_7

 x y z --> [3x8 decoder] --D0--\
                         D2----\
                         D3-----> OR --> F
                         D4----/
                         D7---/

(Equivalently, using NAND outputs of the decoder, F=(D1D5D6)′F = (D_1 D_5 D_6)' with a 3-input AND of the complement outputs; the OR form above is simpler.)

(c) Using a PLA

First simplify with a K-map:

x\yzx \backslash yz00011110
01011
11010

Groups: m0,m4m_0, m_4 gives y′z′y'z'; m2,m3m_2, m_3 gives x′yx'y; m3,m7m_3, m_7 gives yzyz.

F=y′z′+x′y+yzF = y'z' + x'y + yz

PLA programming table (inputs x,y,zx, y, z; 1 = true, 0 = complemented, - = not used):

Product termxxyyzzOutput FF
y′z′y'z'-001
x′yx'y01-1
yzyz-111

The AND plane is programmed to generate these 3 product terms and the OR plane connects all three to output FF. Only 3 product lines are needed.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Difference between synchronous and asynchronous counter. Design mode-7 synchronous counter using T-flip flop. Show necessary truth tables and k-maps.

Answer

Difference between synchronous and asynchronous counters

Synchronous counterAsynchronous (ripple) counter
All flip-flops receive the same clock pulse simultaneouslyOnly the first flip-flop gets the external clock; each next one is clocked by the output of the previous
All FFs change state at the same timeFFs change state one after another (ripple effect)
Propagation delay is that of one FF plus gate, so it is fastDelay accumulates: n×tpdn \times t_{pd}, so it is slow
Needs extra combinational logic to drive the inputs, so the design is more complexSimple design, little extra hardware
No decoding glitches; suitable for high frequencyDecoding errors/glitches at intermediate states; limited frequency

Design of a mode-7 synchronous counter using T flip-flops

A mode-7 counter counts 0→1→⋯→6→00 \to 1 \to \dots \to 6 \to 0. It needs 3 flip-flops (23=8≥72^3 = 8 \ge 7). State 111111 (7) is unused and treated as don't care. Let the state be QAQBQCQ_A Q_B Q_C (QAQ_A = MSB).

For a T flip-flop Q+=T⊕QQ^+ = T \oplus Q, so T=Q⊕Q+T = Q \oplus Q^+.

Present QAQBQCQ_AQ_BQ_CNext QA+QB+QC+Q_A^+Q_B^+Q_C^+TAT_ATBT_BTCT_C
000001001
001010011
010011001
011100111
100101001
101110011
110000110
111xxxxxx

K-maps (rows QAQ_A, columns QBQCQ_BQ_C = 00, 01, 11, 10):

TAT_A:

QA\QBQCQ_A \backslash Q_BQ_C00011110
00010
100x1

Groups: {011,111}\{011, 111\} gives QBQCQ_BQ_C; {110,111}\{110, 111\} gives QAQBQ_AQ_B.

TA=QBQC+QAQBT_A = Q_BQ_C + Q_AQ_B

TBT_B:

QA\QBQCQ_A \backslash Q_BQ_C00011110
00110
101x1

Groups: {001,011,101,111}\{001,011,101,111\} gives QCQ_C; {110,111}\{110,111\} gives QAQBQ_AQ_B.

TB=QC+QAQBT_B = Q_C + Q_AQ_B

TCT_C:

QA\QBQCQ_A \backslash Q_BQ_C00011110
01111
111x0

Groups: the row QA=0Q_A = 0 gives QA′Q_A'; the cells {000,001,100,101}\{000,001,100,101\} give QB′Q_B'.

TC=QA′+QB′=(QAQB)′T_C = Q_A' + Q_B' = (Q_AQ_B)'

Circuit: three T flip-flops with a common clock. TC=(QAQB)′T_C = (Q_AQ_B)' from a NAND gate; TB=QC+QAQBT_B = Q_C + Q_AQ_B from an AND gate and an OR gate; TA=QBQC+QAQBT_A = Q_BQ_C + Q_AQ_B from two AND gates and an OR gate.

Self-start check: from the unused state 111111: TA=1,TB=1,TC=0T_A = 1, T_B = 1, T_C = 0 so the next state is 001001, a valid state. The counter therefore recovers by itself.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Provide one example where shift right operation can be used. Explain parallel-in-parallel-out register.

Answer

Example where shift right operation is used

A right shift moves every bit one position towards the LSB and fills the MSB with 0 (logical shift). Shifting a binary number right by one place divides it by 2 (integer part).

Example: (00101100)2=44(00101100)_2 = 44. After one right shift: 00010110=2200010110 = 22; after another: 00001011=1100001011 = 11. So a right shift divides by 2n2^n after nn shifts. This is used in division by powers of two, in the shift-and-add multiplier/divider algorithms of an ALU, and in serial-to-parallel conversion of data received bit by bit (e.g. UART receiver).

Parallel-in-parallel-out (PIPO) register

A PIPO register loads all bits at the same time and makes all stored bits available at the same time. A 4-bit PIPO register consists of four D flip-flops with a common clock (and optional common clear).

 D3    D2    D1    D0      (parallel data inputs)
  |     |     |     |
 [D FF][D FF][D FF][D FF] <-- common CLK
  |     |     |     |
 Q3    Q2    Q1    Q0      (parallel data outputs)

Working:

  • Each input DiD_i is connected directly to the D input of its own flip-flop. There is no connection between the flip-flops.
  • On the active clock edge, Qi←DiQ_i \leftarrow D_i for all four bits simultaneously, so the word is loaded in a single clock pulse.
  • Between clock pulses, the flip-flops hold the data, and the outputs Q3Q2Q1Q0Q_3Q_2Q_1Q_0 can be read in parallel at any time.
  • An asynchronous clear input resets all outputs to 0.

Example: if D3D2D1D0=1011D_3D_2D_1D_0 = 1011, after one clock pulse Q3Q2Q1Q0=1011Q_3Q_2Q_1Q_0 = 1011.

It is the fastest register type (one clock for load, no shifting) and is used as a temporary storage or buffer register, e.g. data/address registers in a CPU.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Carry out the following task
  • Preform 1’s complement subtraction 110101 – 100101
  • Represent decimal number 0.125 into its binary form

Answer

(a) 1's complement subtraction: 110101−100101110101 - 100101

110101=53110101 = 53 and 100101=37100101 = 37.

Step 1: 1's complement of the subtrahend 100101100101 is 011010011010.

Step 2: add it to the minuend:

110101+ 0110101 001111\begin{array}{r} 110101 \\ +\ 011010 \\ \hline 1\,001111 \end{array}

Step 3: a carry out (11) is produced, so the result is positive. Add the end-around carry:

001111+1=010000001111 + 1 = 010000

Result: (010000)2=(10000)2=16(010000)_2 = (10000)_2 = 16.

Check: 53−37=1653 - 37 = 16. Correct.

(b) Binary form of 0.1250.125

Multiply the fraction repeatedly by 2 and record the integer parts:

StepMultiplicationInteger part
10.125×2=0.250.125 \times 2 = 0.250
20.25×2=0.50.25 \times 2 = 0.50
30.5×2=1.00.5 \times 2 = 1.01

The fraction becomes 0, so we stop. Reading the integer parts from top to bottom:

(0.125)10=(0.001)2(0.125)_{10} = (0.001)_2

Check: 0⋅12+0⋅14+1⋅18=0.1250\cdot\frac12 + 0\cdot\frac14 + 1\cdot\frac18 = 0.125.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Derive the Boolean expression for sum and carry of half adder. Draw its combinational circuit. Implement it using only NAND gates.

Answer

Half adder

A half adder adds two 1-bit numbers AA and BB and gives a sum SS and a carry CC.

AABBSSCC
0000
0110
1010
1101

From the table, S=1S = 1 for A=0,B=1A=0,B=1 and A=1,B=0A=1,B=0; C=1C = 1 only for A=B=1A=B=1:

S=A′B+AB′=A⊕BS = A'B + AB' = A \oplus B

C=ABC = AB

Combinational circuit: one XOR gate gives SS and one AND gate gives CC; both gates have inputs AA and BB.

 A ----+-----|=\\
       |     |XOR|------ S
 B --+-|-----|=//
     | |
     | +-----|AND|
     +-------|   |------ C

NAND-only implementation

Use the identity A⊕B=[A⋅(AB)′] ′⋅[B⋅(AB)′] ′A \oplus B = [A\cdot(AB)']\,'\cdot[B\cdot(AB)']\,' NANDed together. Let

  • N1=(AB)′N_1 = (AB)'
  • N2=(A⋅N1)′N_2 = (A\cdot N_1)'
  • N3=(B⋅N1)′N_3 = (B\cdot N_1)'
  • S=(N2⋅N3)′S = (N_2 \cdot N_3)'
  • C=(N1)′C = (N_1)' (a NAND gate with both inputs tied to N1N_1, i.e. an inverter)

Verification: S=(N2N3)′=AN1+BN1=N1(A+B)=(AB)′(A+B)=AB′+A′B=A⊕BS = (N_2N_3)' = A N_1 + B N_1 = N_1(A+B) = (AB)'(A+B) = AB' + A'B = A \oplus B. And C=N1′=ABC = N_1' = AB.

 A,B --> [NAND N1] --> N1
 A,N1 --> [NAND N2] --> N2
 B,N1 --> [NAND N3] --> N3
 N2,N3 --> [NAND] --> S
 N1,N1 --> [NAND] --> C

Total: 5 two-input NAND gates (4 for the sum and 1 as inverter for the carry).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Express the Boolean function F = x + yz as product of max-terms.

Answer

Given F=x+yzF = x + yz, which is a function of the three variables x,y,zx, y, z.

Step 1: Make every term contain all variables.

F=x+yz=x(y+y′)(z+z′)+yz(x+x′)F = x + yz = x(y + y')(z + z') + yz(x + x')

=xyz+xyz′+xy′z+xy′z′+xyz+x′yz= xyz + xyz' + xy'z + xy'z' + xyz + x'yz

Removing the duplicate xyzxyz:

F=x′yz+xy′z′+xy′z+xyz′+xyz=m3+m4+m5+m6+m7=Σ(3,4,5,6,7)F = x'yz + xy'z' + xy'z + xyz' + xyz = m_3 + m_4 + m_5 + m_6 + m_7 = \Sigma(3,4,5,6,7)

Step 2: Product of maxterms. The maxterms are those whose indices are missing from the minterm list: 0,1,20, 1, 2.

F=ΠM(0,1,2)F = \Pi M(0,1,2)

Each maxterm has a variable complemented where the minterm bit is 1:

  • M0=x+y+zM_0 = x + y + z
  • M1=x+y+z′M_1 = x + y + z'
  • M2=x+y′+zM_2 = x + y' + z

F=(x+y+z)(x+y+z′)(x+y′+z)F = (x + y + z)(x + y + z')(x + y' + z)

Check by the distributive law: x+yz=(x+y)(x+z)x + yz = (x+y)(x+z). Then (x+y)=(x+y+z)(x+y+z′)(x+y) = (x+y+z)(x+y+z') and (x+z)=(x+y+z)(x+y′+z)(x+z) = (x+y+z)(x+y'+z). The product, with the repeated factor (x+y+z)(x+y+z) removed, gives the same three maxterms.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Minimize the Boolean function Boolean function using K-map F(A, B, C, D) = Σ(0, 1, 3, 5, 7, 8, 9, 11, 13, 15)

Answer

F(A,B,C,D)=Σ(0,1,3,5,7,8,9,11,13,15)F(A,B,C,D) = \Sigma(0,1,3,5,7,8,9,11,13,15)

K-map (rows ABAB, columns CDCD in Gray order):

AB\CDAB \backslash CD00011110
001 (m0m_0)1 (m1m_1)1 (m3m_3)0 (m2m_2)
010 (m4m_4)1 (m5m_5)1 (m7m_7)0 (m6m_6)
110 (m12m_{12})1 (m13m_{13})1 (m15m_{15})0 (m14m_{14})
101 (m8m_8)1 (m9m_9)1 (m11m_{11})0 (m10m_{10})

Grouping

  • Octet: the whole column CD=01CD = 01 and CD=11CD = 11 (minterms 1,3,5,7,9,11,13,151,3,5,7,9,11,13,15). In these cells D=1D = 1 and all of A,B,CA, B, C change, so the term is DD.
  • Quad: the four corner-type cells m0,m1,m8,m9m_0, m_1, m_8, m_9 (rows 0000 and 1010, columns 0000 and 0101). Here B=0B = 0 and C=0C = 0 stay constant, so the term is B′C′B'C'.

All 10 minterms are covered, and m1,m9m_1, m_9 are shared.

F=D+B′C′F = D + B'C'

Check: D=1D=1 gives the 8 odd minterms. With D=0D=0, B′C′B'C' gives m0(0000)m_0 (0000) and m8(1000)m_8 (1000). Total 10 minterms, which matches.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

What are the practical implementations of up counter? Explain Binary ripple counter.

Answer

Practical implementations of an up counter

An up counter counts 0,1,2,…0, 1, 2, \dots on each clock pulse. Its common applications are:

  • Frequency division: the output of the nn-th flip-flop has frequency f/2nf/2^n, used for clock dividers in digital watches.
  • Digital clocks and timers: mod-60 and mod-24 counters for seconds, minutes and hours.
  • Event or pulse counting: counting objects on a conveyor, vehicles, or pulses in a frequency counter.
  • Address generation: the program counter of a CPU and address sequencing for memory.
  • Time-delay generation and sequencing: producing timing and control signals in a control unit.
  • Digital voltmeters and A/D converters (counter-type ADC).

Binary ripple counter

A binary ripple counter is an asynchronous counter. An nn-bit ripple counter uses nn flip-flops connected in cascade, each wired as a toggle (T) flip-flop (T=1T = 1, or JK with J=K=1J=K=1). The external clock drives only the first flip-flop (LSB), and the output of each flip-flop clocks the next one. Triggering is on the falling (negative) edge, so a flip-flop toggles when the previous output goes from 1 to 0.

 CLK --> [FF0 T=1] --Q0--> [FF1 T=1] --Q1--> [FF2 T=1] --Q2--> [FF3 T=1] --Q3

Count sequence of a 4-bit counter (mod 16):

ClockQ3Q2Q1Q0Q_3Q_2Q_1Q_0ClockQ3Q2Q1Q0Q_3Q_2Q_1Q_0
0000081000
1000191001
20010101010
30011111011
40100121100
50101131101
60110141110
70111151111

After 15 it returns to 0000.

Operation: Q0Q_0 toggles on every clock pulse, so it is the clock divided by 2. Q1Q_1 toggles when Q0Q_0 falls, so it is divided by 4. Q2Q_2 is divided by 8 and Q3Q_3 by 16.

Timing:

CLK : _|-|_|-|_|-|_|-|_|-|_|-|_|-|_|-|
Q0  : __|‾‾|__|‾‾|__|‾‾|__|‾‾|   (toggles every clock)
Q1  : ____|‾‾‾‾|____|‾‾‾‾|        (toggles when Q0 falls)
Q2  : ________|‾‾‾‾‾‾‾‾|          (toggles when Q1 falls)

Drawback: the clock "ripples" through the flip-flops, so total delay is about n×tpdn \times t_{pd}. This limits the maximum frequency to fmax≈1/(n tpd)f_{max} \approx 1/(n\,t_{pd}) and can give momentary wrong states. Its advantages are simplicity and minimum hardware. The same circuit counting down (using Qˉ\bar Q outputs as clock) gives a down counter.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Design a combinational circuit with three inputs and one output. The output is 1 when the binary value of the inputs is an odd number.

Answer

Let the three inputs be A,B,CA, B, C (AA = MSB, CC = LSB) and the output be FF.

Truth table

AABBCCDecimalFF
00000
00111
01020
01131
10040
10151
11060
11171

F=Σ(1,3,5,7)F = \Sigma(1,3,5,7)

K-map

A\BCA \backslash BC00011110
00110
10110

The four 1s form a single quad (columns BC=01BC = 01 and 1111), where AA and BB change and only C=1C = 1 stays constant.

F=CF = C

Circuit: no gate is required. The output is simply connected directly to the LSB input CC. This is obvious because a binary number is odd exactly when its least significant bit is 1.

 A ---(not used)
 B ---(not used)
 C --------------------- F

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Differentiate between PLA and PAL. Explain 4-bit magnitude comparator

Answer

Difference between PLA and PAL

PLA (Programmable Logic Array)PAL (Programmable Array Logic)
Both AND plane and OR plane are programmableOnly the AND plane is programmable; the OR plane is fixed
More flexible: a product term can be shared by several outputsLess flexible: each output has its own fixed set of product terms
Needs more fuses and a larger chip areaSimpler, cheaper and faster
Harder to program and slower, because of two programmable arraysEasier to program and to use
Used for complex multi-output functionsUsed for simple functions, with more standard devices

4-bit magnitude comparator

A magnitude comparator compares two 4-bit numbers A=A3A2A1A0A = A_3A_2A_1A_0 and B=B3B2B1B0B = B_3B_2B_1B_0 and produces three outputs: A>BA > B, A=BA = B and A<BA < B.

Equality. Bit ii is equal when xi=Ai⊙Bi=AiBi+Ai′Bi′x_i = A_i \odot B_i = A_iB_i + A_i'B_i' (XNOR). The numbers are equal only if all four bit pairs are equal:

(A=B)=x3x2x1x0(A = B) = x_3x_2x_1x_0

Greater than. Compare from the MSB. A>BA > B if the MSBs differ and A3=1,B3=0A_3 = 1, B_3 = 0; or the MSBs are equal and the next bits decide, and so on:

(A>B)=A3B3′+x3A2B2′+x3x2A1B1′+x3x2x1A0B0′(A > B) = A_3B_3' + x_3A_2B_2' + x_3x_2A_1B_1' + x_3x_2x_1A_0B_0'

Less than.

(A<B)=A3′B3+x3A2′B2+x3x2A1′B1+x3x2x1A0′B0(A < B) = A_3'B_3 + x_3A_2'B_2 + x_3x_2A_1'B_1 + x_3x_2x_1A_0'B_0

Implementation: four XNOR gates produce x3…x0x_3 \ldots x_0. A 4-input AND gives A=BA = B. The A>BA>B and A<BA<B outputs use AND gates (with inverters for Ai′A_i', Bi′B_i') feeding an OR gate each. Only one of the three outputs is 1 at a time.

Example: A=1010A = 1010, B=1001B = 1001. x3=1x_3 = 1, x2=1x_2 = 1 (0 and 0), x1=0x_1 = 0 (1 and 0). Then A>BA>B: the third term x3x2A1B1′=1⋅1⋅1⋅1=1x_3x_2A_1B_1' = 1\cdot1\cdot1\cdot1 = 1. So A>BA > B (10 > 9), which is correct. The IC 7485 is the standard 4-bit comparator, with cascading inputs for larger words.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2078 · 10 marks

Write short notes on (Any Two)
  • Negative Logic
  • CMOS
  • EBCDIC

Answer

Negative logic

In digital circuits, logic levels are represented by two voltages. In positive logic, the higher voltage (HH) is logic 1 and the lower voltage (LL) is logic 0. In negative logic, the higher voltage represents logic 0 and the lower voltage logic 1.

Changing the logic convention changes the function a gate performs (dual of the function). For example, a gate that works as AND in positive logic works as OR in negative logic, and NAND becomes NOR.

AA (V)BB (V)YY (V)Positive-logic functionNegative-logic function
LLL0 0 -> 01 1 -> 1
LHL0 1 -> 01 0 -> 1
HLL1 0 -> 00 1 -> 1
HHH1 1 -> 10 0 -> 0

The same gate is AND in positive logic and OR in negative logic. Negative logic is also used with active-low signals (such as chip select CS‾\overline{CS}), which are shown with a bubble at the pin.

CMOS (Complementary Metal-Oxide-Semiconductor)

CMOS is a logic family that uses a pair of complementary MOSFETs, a p-channel (PMOS) pull-up network and an n-channel (NMOS) pull-down network, in each gate.

  • In a CMOS inverter, the PMOS source is at VDDV_{DD}, the NMOS source is at ground, gates are joined as the input and drains are joined as the output. For input low, PMOS is ON and NMOS is OFF, so output is high. For input high, NMOS is ON and PMOS is OFF, so output is low.
  • At any steady state only one transistor conducts, so there is almost no static current.

Features: very low static power dissipation, high noise margin (about 40-45% of VDDV_{DD}), wide supply range (3 to 15 V for the 4000 series), high fan-out, and high packing density. The disadvantages are lower speed than TTL (older series) and sensitivity to static electricity. Power increases with frequency because of switching currents: P≈CVDD2fP \approx C V_{DD}^2 f. CMOS is used in microprocessors, memories and almost all modern ICs.

EBCDIC

EBCDIC (Extended Binary Coded Decimal Interchange Code) is an 8-bit character-encoding scheme developed by IBM for its mainframe computers. It can represent 28=2562^8 = 256 characters, including upper and lower case letters, digits, punctuation and control characters.

Each character is coded in two 4-bit parts: a zone (high nibble) and a digit (low nibble). For example, digits 0-9 are F0F0 to F9F9 (hex), the capital letters A-I are C1C1-C9C9, J-R are D1D1-D9D9, and S-Z are E2E2-E9E9. Hence A=11000001A = 11000001 and 0=111100000 = 11110000.

The letters are not in a contiguous sequence (there are gaps between I/J and R/S), which makes sorting and range checks harder than in ASCII. EBCDIC is still found in IBM mainframes, while ASCII (7 bit) and Unicode are used elsewhere.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 10 marks

What is combinational circuit? Design a combinational circuit with four inputs that represent a decimal digit in BCD and four output lines that generate the 1’s complement of the input binary patterns.

Answer

Combinational circuit

A combinational circuit is a logic circuit whose outputs depend only on the present values of the inputs. It has no memory and no feedback; it consists of logic gates connected from inputs to outputs. Examples are adders, subtractors, multiplexers, decoders and comparators. Design steps: state the problem, list inputs and outputs, make the truth table, simplify the output functions, and draw the logic diagram.

Design: BCD to 1's complement

Let the BCD input be A B C DA\,B\,C\,D (AA = MSB) and the outputs W X Y ZW\,X\,Y\,Z, where the output is the 1's complement of the input (every bit inverted). Only the BCD codes 0 to 9 occur; codes 1010 to 1111 are invalid and treated as don't care.

DecimalABCDABCDWXYZWXYZ
000001111
100011110
200101101
300111100
401001011
501011010
601101001
701111000
810000111
910010110
10-151010-1111xxxx

Looking at each output column, WW is 1 for 0 to 7 and 0 for 8, 9. With don't cares at 10-15, the K-map of WW is 1 exactly where A=0A = 0 (cells 8-15 are 0 or x, and 0-7 are 1), so W=A′W = A'. Similarly XX is 1 where B=0B = 0 in the valid codes: X=B′X = B'; Y=C′Y = C'; Z=D′Z = D'. (The don't cares allow no further simplification, since each output is already a single literal.)

W=A′,X=B′,Y=C′,Z=D′W = A',\quad X = B',\quad Y = C',\quad Z = D'

Logic diagram: four NOT gates (inverters), one for each input line.

 A --[NOT]-- W
 B --[NOT]-- X
 C --[NOT]-- Y
 D --[NOT]-- Z

Check: input 0101 (5) gives 1010 (1's complement). Correct.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 10 marks

What is asynchronous counter? Design asynchronous counter that counts the sequence of 0-1-4-6-7 using T flip-flop.

Answer

Asynchronous counter

An asynchronous (ripple) counter is a counter in which the flip-flops do not share a common clock. The external clock drives the first flip-flop, and the other flip-flops are clocked by the output of an earlier flip-flop, so state changes ripple through the stages one after another.

Design for the sequence 0-1-4-6-7 using T flip-flops

The sequence in binary is 000→001→100→110→111→000000 \to 001 \to 100 \to 110 \to 111 \to 000 (5 states, so mod-5, 3 flip-flops). Let the state be ABCABC (AA = MSB). Unused states 010,011,101010, 011, 101 are don't cares.

Transitions and flip-flop toggling (T=Q⊕Q+T = Q \oplus Q^+):

Present ABCABCNext A+B+C+A^+B^+C^+TAT_ATBT_BTCT_C
000001001
001100101
100110010
110111001
111000111
010, 011, 101xxxxxx

Choice of clock for each flip-flop (asynchronous part):

  • CC falls (1 to 0) exactly in the transitions 001→100001 \to 100 and 111→000111 \to 000, which are the only two transitions where AA toggles, and it never falls at any other time. So FF-A is clocked by CC (falling edge) with TA=1T_A = 1.
  • FF-B and FF-C are clocked by the external clock, with their T inputs found from K-maps.

K-map for TCT_C: TC=1T_C = 1 for 000,001,110,111000, 001, 110, 111; 00 for 100100; don't care for 010,011,101010, 011, 101.

A\BCA \backslash BC00011110
011xx
10x11

Groups: {000,001,011,010}\{000,001,011,010\} gives A′A'; {110,111,010,011}\{110,111,010,011\} gives BB.

TC=A′+BT_C = A' + B

K-map for TBT_B: TB=1T_B = 1 for 100100, 111111; 00 for 000,001,110000, 001, 110.

A\BCA \backslash BC00011110
000xx
11x10

Groups: {100,101}\{100, 101\} gives AB′AB'; {101,111}\{101, 111\} gives ACAC.

TB=AB′+AC=A(B′+C)T_B = AB' + AC = A(B' + C)

TA=1(clock=Cˉ i.e. falling edge of C)T_A = 1 \quad (\text{clock} = \bar{C}\ \text{i.e. falling edge of } C)

Verification of the count:

ClockState ABCABCTC=A′+BT_C = A'+BTB=A(B′+C)T_B = A(B'+C)Next state
100010001
200110CC falls, so AA toggles: 100
310001110
411010111
511111CC falls, AA toggles: 000

The sequence 0-1-4-6-7-0 is obtained. The unused states are self-correcting: 010→011→110010 \to 011 \to 110 and 101→111101 \to 111.

Circuit: CLK goes to the clock inputs of FF-B and FF-C; QCQ_C goes to the (negative-edge) clock input of FF-A with TA=1T_A = 1. An OR gate forms TC=A′+BT_C = A' + B and AND/OR gates form TB=AB′+ACT_B = AB' + AC.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

Perform the following operations: a. (011101)_2 – (110011)_2 using 2’s complement b. (89344)_10– – (98654)_10 using 9’s complement.

Answer

(a) (011101)2−(110011)2(011101)_2 - (110011)_2 using 2's complement

011101=29011101 = 29 and 110011=51110011 = 51, so the expected answer is −22-22.

Step 1: 2's complement of the subtrahend 110011110011: 1's complement is 001100001100, add 1 to get 001101001101.

Step 2: add to the minuend:

011101+ 001101101010\begin{array}{r} 011101 \\ +\ 001101 \\ \hline 101010 \end{array}

Step 3: there is no carry out, so the result is negative and is in 2's complement form. Take the 2's complement of 101010101010: 1's complement 010101010101, plus 1 gives 010110010110.

Result=−(010110)2=−22\text{Result} = -(010110)_2 = -22

This agrees with 29−51=−2229 - 51 = -22.

(b) (89344)10−(98654)10(89344)_{10} - (98654)_{10} using 9's complement

Step 1: 9's complement of the subtrahend 9865498654 is 99999−98654=0134599999 - 98654 = 01345.

Step 2: add:

89344+ 0134590689\begin{array}{r} 89344 \\ +\ 01345 \\ \hline 90689 \end{array}

Step 3: there is no end-around carry (the sum has only 5 digits), so the result is negative. Its magnitude is the 9's complement of 9068990689: 99999−90689=0931099999 - 90689 = 09310.

Result=−9310\text{Result} = -9310

Check: 89344−98654=−931089344 - 98654 = -9310. Correct.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

If f(P,Q,R,S) = ∑(3,4,7,8,14) and d(P,Q,R,S) = ∑(1,6,9,13). Simplify using K-map and design the circuit using minimum number of NAND gates.

Answer

f(P,Q,R,S)=Σ(3,4,7,8,14)f(P,Q,R,S) = \Sigma(3,4,7,8,14) with don't cares d=Σ(1,6,9,13)d = \Sigma(1,6,9,13).

K-map (rows PQPQ, columns RSRS in Gray order; x = don't care):

PQ\RSPQ \backslash RS00011110
000x (m1m_1)1 (m3m_3)0
011 (m4m_4)01 (m7m_7)x (m6m_6)
110x (m13m_{13})01 (m14m_{14})
101 (m8m_8)x (m9m_9)00

Grouping (each 1 must be covered; don't cares are used only when useful):

  • m3,m7m_3, m_7: P′RSP'RS
  • m4,m6m_4, m_6 (using don't care m6m_6): P′QS′P'QS'
  • m6,m14m_6, m_{14} (using m6m_6): QRS′QRS', which covers m14m_{14}
  • m8,m9m_8, m_9 (using m9m_9): PQ′R′PQ'R'

f=P′RS+P′QS′+QRS′+PQ′R′f = P'RS + P'QS' + QRS' + PQ'R'

No group contains a 0, and all of 3,4,7,8,143, 4, 7, 8, 14 are covered. This is the minimum SOP.

NAND implementation (two-level NAND-NAND)

f=[(P′RS)′⋅(P′QS′)′⋅(QRS′)′⋅(PQ′R′)′]′f = \left[(P'RS)'\cdot(P'QS')'\cdot(QRS')'\cdot(PQ'R')'\right]'

  • Four 3-input NAND gates form (P′RS)′(P'RS)', (P′QS′)′(P'QS')', (QRS′)′(QRS')' and (PQ′R′)′(PQ'R')'.
  • One 4-input NAND gate combines them to give ff.
  • The complemented inputs P′,Q′,S′P', Q', S' are made with three NAND gates connected as inverters (inputs tied together).
 P',R,S  --[NAND3]--\
 P',Q,S' --[NAND3]---\
 Q,R,S'  --[NAND3]----[NAND4]--> f
 P,Q',R' --[NAND3]---/

Total: 8 NAND gates (4 + 1 + 3 inverters); if the complemented inputs are available, only 5 gates are needed.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

What is the drawback of RS Flipflop? Explain D Flip Flop in detail with a logic diagram, characteristics table, and characteristics equation.

Answer

Drawback of the RS flip-flop

In an RS flip-flop, the input combination S=R=1S = R = 1 is invalid (forbidden). In a NOR-based latch it forces both outputs Q=Q′=0Q = Q' = 0, which contradicts the complementary nature of the outputs. When both inputs return to 0 together, the final state depends on which gate is faster, so the next state is unpredictable (a race condition). The condition SR=0SR = 0 must therefore always be ensured by the user. The D flip-flop is derived to remove this drawback.

D flip-flop (Data / Delay flip-flop)

A D flip-flop has a single data input DD and a clock. It is made from a clocked SR flip-flop by connecting S=DS = D and R=D′R = D' through an inverter, so SS and RR can never be 1 together.

Logic diagram:

          +------[AND]---- S -->+----------+
 D -------+        ^            | SR latch |--- Q
          |       CLK           |  (NOR /  |
          +--[NOT]--[AND]-- R ->|  NAND)   |--- Q'
                     ^          +----------+
                    CLK

(D feeds the upper gate directly and the lower gate through an inverter; both gates are enabled by CLK.)

Characteristic table:

DDQnQ_nQn+1Q_{n+1}Operation
000Reset
010Reset
101Set
111Set

Simplified:

DDQn+1Q_{n+1}
00
11

Characteristic equation: from S=DS = D, R=D′R = D' and the SR equation Qn+1=S+R′QnQ_{n+1} = S + R'Q_n, we get Qn+1=D+D Qn=DQ_{n+1} = D + D\,Q_n = D:

Qn+1=DQ_{n+1} = D

The output after the clock edge simply equals the input before it, so the flip-flop stores one bit and delays it by one clock period. It has no invalid state. D flip-flops are used in registers, shift registers, counters and memory (IC 7474).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

Design a full subtractor with necessary tables and logic diagram.

Answer

A full subtractor subtracts two bits AA (minuend) and BB (subtrahend) and also the borrow BinB_{in} from the previous lower stage. It gives the difference DD and the borrow-out BoutB_{out}.

Truth table (D=A−B−BinD = A - B - B_{in})

AABBBinB_{in}DDBoutB_{out}
00000
00111
01011
01101
10010
10100
11000
11111

Boolean expressions

Difference (D=1D = 1 for minterms 1,2,4,71,2,4,7):

D=A′B′Bin+A′BBin′+AB′Bin′+ABBin=A⊕B⊕BinD = A'B'B_{in} + A'BB_{in}' + AB'B_{in}' + ABB_{in} = A \oplus B \oplus B_{in}

Borrow (Bout=1B_{out} = 1 for minterms 1,2,3,71,2,3,7), from the K-map:

A\BBinA \backslash B B_{in}00011110
00111
10010

Bout=A′B+A′Bin+BBinB_{out} = A'B + A'B_{in} + BB_{in}

Equivalently, Bout=A′B+(A⊕B)′ BinB_{out} = A'B + (A \oplus B)'\,B_{in}.

Logic diagram (two half subtractors and an OR gate)

 A --\
      XOR1 -- X --\
 B --/       |      XOR2 ------------- D
             |  Bin/
             |
 A' ---\     +--[NOT]--\
        AND1 -- A'B     AND2 -- X'Bin
 B ----/        |        |
                +-- OR --+---------- Bout

Implementation: the first half subtractor computes A⊕BA \oplus B and A′BA'B; the second half subtractor takes (A⊕B)(A \oplus B) and BinB_{in}, gives D=A⊕B⊕BinD = A \oplus B \oplus B_{in} and the borrow (A⊕B)′Bin(A \oplus B)'B_{in}. An OR gate combines the two borrows to give BoutB_{out}.

Check: A=0,B=1,Bin=1A=0, B=1, B_{in}=1 (where X=A⊕B=1X = A \oplus B = 1): D=0⊕1⊕1=0D = 0\oplus1\oplus1 = 0, Bout=A′B+X′Bin=1+0=1B_{out} = A'B + X'B_{in} = 1 + 0 = 1. Result: 0−1−1=−20 - 1 - 1 = -2 gives difference 0 with borrow 1. Correct.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

What is shift register? Explain 4 bit SISO and PIPO with timing diagram.

Answer

Shift register

A shift register is a group of flip-flops connected in cascade, with a common clock, that can store a binary word and shift it left or right by one position on each clock pulse. Each flip-flop output is connected to the input of the next. According to how data enters and leaves, there are four types: SISO, SIPO, PISO and PIPO.

4-bit Serial-In Serial-Out (SISO) right shift register

Four D flip-flops are cascaded: D0=D_0 = serial input, D1=Q0D_1 = Q_0, D2=Q1D_2 = Q_1, D3=Q2D_3 = Q_2, and the serial output is Q3Q_3. All flip-flops share the clock.

 Serial in --> [FF0]->[FF1]->[FF2]->[FF3] --> Serial out
                Q0     Q1     Q2     Q3
                 ^------ common CLK ------^

On each clock edge, every bit moves one place to the right, and a new bit enters at Q0Q_0. A 4-bit word needs 4 clock pulses to load and 4 more to come out serially (a total of 8 pulses for in-and-out).

Timing table for input bits 1,0,1,11, 0, 1, 1 (first bit 1), with the register initially 0000:

ClockSerial inQ0Q1Q2Q3Q_0Q_1Q_2Q_3Serial out Q3Q_3
0-00000
1110000
2001000
3110100
4111011
5001100
6000111
7000011

The word comes out at Q3Q_3 as 1,0,1,11, 0, 1, 1 after the fourth clock, in the same order as it was entered (the time diagram shows Q0Q_0 delayed by one clock, Q1Q_1 by two, and so on).

4-bit Parallel-In Parallel-Out (PIPO) register

Four D flip-flops with a common clock; each input DiD_i is connected to its own flip-flop and all four outputs are available at once.

 D0   D1   D2   D3        (parallel inputs)
  |    |    |    |
 [FF0][FF1][FF2][FF3] <-- CLK
  |    |    |    |
 Q0   Q1   Q2   Q3        (parallel outputs)

Timing: at the first active clock edge the input word, e.g. D0D1D2D3=1011D_0D_1D_2D_3 = 1011, is loaded, and from that moment Q0Q1Q2Q3=1011Q_0Q_1Q_2Q_3 = 1011 and stays unchanged until the next clock edge. The whole word is loaded and read in one clock pulse, so PIPO is the fastest type, while SISO needs only one data line.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

Design an asynchronous mod 11 up counter using T flip flop.

Answer

A mod-11 counter counts 0,1,2,…,100, 1, 2, \dots, 10 and then returns to 0. It needs nn flip-flops with 2n≥112^n \ge 11, so n=4n = 4.

Design

  • Use four T flip-flops (with T=1T = 1, toggle mode) connected as a ripple (asynchronous) up counter, triggered by the falling edge: the external clock drives FF0FF_0, Q0Q_0 clocks FF1FF_1, Q1Q_1 clocks FF2FF_2 and Q2Q_2 clocks FF3FF_3.
  • A natural 4-bit counter would continue to 11 (1011) and up to 15. To make the count stop at 10, the counter must be cleared when it reaches the first unwanted state, which is 11=101111 = 1011.
  • A 3-input NAND gate with inputs Q3,Q1,Q0Q_3, Q_1, Q_0 detects the state 1011. It is the first state in the count sequence in which Q3=Q1=Q0=1Q_3 = Q_1 = Q_0 = 1. The NAND output goes to the active-low asynchronous CLEAR inputs of all four flip-flops.

CLR‾=(Q3 Q1 Q0)′\overline{CLR} = (Q_3\,Q_1\,Q_0)'

 CLK --> [T0] --Q0--> [T1] --Q1--> [T2] --Q2--> [T3] --Q3
          ^ CLR         ^ CLR         ^ CLR         ^ CLR
          +-------------+-------------+-------------+--- NAND(Q3, Q1, Q0)

All T inputs are tied to logic 1.

Count sequence

ClockQ3Q2Q1Q0Q_3Q_2Q_1Q_0ClockQ3Q2Q1Q0Q_3Q_2Q_1Q_0
0000060110
1000170111
2001081000
3001191001
40100101010
50101111011, momentarily, then cleared to 0000

At the 11th clock pulse the counter momentarily reaches 1011, the NAND output goes low, and all flip-flops are reset to 0000, so the stable states are 00 to 1010. The state 1011 lasts only a very short time (a few nanoseconds) and is not counted as a valid state.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

How race condition in JK flipflop can be resolved? Explain.

Answer

Race-around condition in a JK flip-flop

When J=K=1J = K = 1, a JK flip-flop should toggle once per clock pulse. In a level-triggered JK flip-flop, the output QQ changes during the time the clock is high. If the clock pulse width tpt_p is longer than the propagation delay Δt\Delta t of the flip-flop, the changed output is fed back to the inputs while the clock is still high, and the flip-flop toggles again, and again. The output oscillates between 0 and 1 several times in one pulse, and its final value at the end of the pulse is unpredictable. This is the race-around condition.

It occurs only when J=K=1J = K = 1 and tp>Δtt_p > \Delta t.

Methods to resolve it

  1. Make the clock pulse narrower than the propagation delay: tp<Δt<Tt_p < \Delta t < T (clock period). In practice, this is hard to control and the pulse becomes too short to be reliable.

  2. Edge triggering: use a positive- or negative-edge-triggered JK flip-flop. The inputs are sampled only at the moment of the clock transition, so the output changes once per clock edge and the feedback during the level has no effect.

  3. Master-slave JK flip-flop (standard solution): two flip-flops are cascaded, a master and a slave. The slave clock is the inverse of the master clock (through an inverter).

 J --[Master JK]--Qm--[Slave SR]-- Q
 K --[         ]--Qm'-[        ]-- Q'
        CLK ----------- NOT ----->(slave clock)
  • When CLK = 1: the master is enabled and accepts JJ and KK, while the slave is disabled, so the output QQ does not change.
  • When CLK = 0: the master is disabled, and the slave is enabled and copies the master output to QQ.

The output therefore changes only once, at the falling edge of the clock. The new output cannot reach the master while the master is enabled, because the slave is disconnected at that time. For J=K=1J = K = 1, the flip-flop toggles exactly once per clock pulse and there is no race-around.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

What is decoder circuit? Design 3 to 8 decoder circuit.

Answer

Decoder

A decoder is a combinational circuit that converts an nn-bit binary code on its input lines into a maximum of 2n2^n unique output lines, where only the one output corresponding to the input code is active at a time. A decoder with nn inputs and 2n2^n outputs is called an nn-to-2n2^n decoder. Decoders are used for address decoding, memory chip select, code conversion, and for implementing Boolean functions (each output is a minterm).

Design of a 3-to-8 decoder

Inputs: A,B,CA, B, C (AA = MSB). Outputs: D0D_0 to D7D_7.

Truth table:

AABBCCD0D_0D1D_1D2D_2D3D_3D4D_4D5D_5D6D_6D7D_7
00010000000
00101000000
01000100000
01100010000
10000001000
10100000100
11000000010
11100000001

Each output is a minterm of the inputs:

D0=A′B′C′,D1=A′B′C,D2=A′BC′,D3=A′BCD_0 = A'B'C',\quad D_1 = A'B'C,\quad D_2 = A'BC',\quad D_3 = A'BC

D4=AB′C′,D5=AB′C,D6=ABC′,D7=ABCD_4 = AB'C',\quad D_5 = AB'C,\quad D_6 = ABC',\quad D_7 = ABC

Logic diagram: three inverters produce A′,B′,C′A', B', C', and eight 3-input AND gates, one for each output, are connected to the proper true or complemented inputs.

 A,B,C --> [3 NOT gates] --> A',B',C'
 D0 = AND(A',B',C')   D4 = AND(A ,B',C')
 D1 = AND(A',B',C )   D5 = AND(A ,B',C )
 D2 = AND(A',B ,C')   D6 = AND(A ,B ,C')
 D3 = AND(A',B ,C )   D7 = AND(A ,B ,C )

An enable input EE can be added by making the AND gates 4-input, so that all outputs stay 0 when E=0E = 0. This allows two 3-to-8 decoders to be combined into a 4-to-16 decoder.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2080 · 5 marks

Write short notes on:
  • State Diagram
  • Encoder
  • Parallel Adder

Answer

State diagram

A state diagram is a graphical representation of a sequential circuit. Each state is shown as a circle (labelled with its binary code), and the transitions between the states are shown as directed arrows labelled with the input/output pair that causes the transition. In a Mealy machine the label is x/yx/y (input/output on the arrow), while in a Moore machine the output is written inside the circle.

Example: a 1-bit parity or a 2-bit counter has states 00→01→10→11→0000 \to 01 \to 10 \to 11 \to 00, with each arrow taken on a clock pulse. The state diagram is equivalent to the state table, and is the starting point for sequential circuit design: state diagram, state table, state reduction, state assignment, excitation table, flip-flop input equations, and logic diagram.

Encoder

An encoder is a combinational circuit that does the opposite of a decoder: it has 2n2^n (or fewer) input lines, of which only one is active at a time, and it produces an nn-bit binary code corresponding to the active input.

For an octal-to-binary (8-to-3) encoder:

Y2=D4+D5+D6+D7,Y1=D2+D3+D6+D7,Y0=D1+D3+D5+D7Y_2 = D_4 + D_5 + D_6 + D_7,\quad Y_1 = D_2 + D_3 + D_6 + D_7,\quad Y_0 = D_1 + D_3 + D_5 + D_7

It is implemented with three OR gates. The simple encoder has the problem that two inputs active at once give a wrong output, and D0D_0 gives the same output (000) as no input. A priority encoder solves this by encoding the highest-priority active input and adding a valid output bit (e.g. IC 74148).

Parallel adder

A parallel adder adds two nn-bit binary numbers simultaneously. It is built from nn full adders, one for each bit position; the carry-out of each full adder is connected to the carry-in of the next higher stage (ripple-carry adder).

For a 4-bit adder, A3A2A1A0+B3B2B1B0A_3A_2A_1A_0 + B_3B_2B_1B_0 gives S3S2S1S0S_3S_2S_1S_0 and a final carry C4C_4, with C0C_0 as input carry (0 for addition).

 A0 B0 -> [FA0] -> S0
            | C1
 A1 B1 -> [FA1] -> S1
            | C2
 A2 B2 -> [FA2] -> S2
            | C3
 A3 B3 -> [FA3] -> S3 , C4

Each stage: Si=Ai⊕Bi⊕CiS_i = A_i \oplus B_i \oplus C_i and Ci+1=AiBi+(Ai⊕Bi)CiC_{i+1} = A_iB_i + (A_i \oplus B_i)C_i. The carry must ripple through all stages, so the delay is proportional to nn. To make it faster, a look-ahead carry generator (IC 7483 and 74283) is used, with Ci+1=Gi+PiCiC_{i+1} = G_i + P_iC_i where Gi=AiBiG_i = A_iB_i and Pi=Ai⊕BiP_i = A_i \oplus B_i. With XOR gates on the BB inputs controlled by a mode line MM, the same circuit works as an adder/subtractor.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 10 marks

Differentiate between synchronous and asynchronous counter. Design a 3-bit synchronous binary counter using T Flip Flop. Draw its timing diagram.

Similar questions: Digital Logic: Design a 2 bit asynchronous binary counter (2081)

Answer

Difference between synchronous and asynchronous counters

Synchronous counterAsynchronous (ripple) counter
A common clock is applied to all flip-flops at the same timeThe clock is applied to the first flip-flop only; the output of each stage clocks the next
All flip-flops change state simultaneouslyFlip-flops change state one after another (ripple)
Total delay is that of one flip-flop (plus gates), so it is fasterTotal delay is n tpdn\,t_{pd}, so it is slower
Needs extra logic gates, so the design is complexSimple, with little extra hardware
No glitches in the count; suitable for high speedPossible glitches in intermediate states; limited operating frequency

Design of a 3-bit synchronous binary counter using T flip-flops

A 3-bit counter has 23=82^3 = 8 states, counting 000→001→⋯→111→000000 \to 001 \to \dots \to 111 \to 000. Let the state be Q2Q1Q0Q_2Q_1Q_0 (Q2Q_2 = MSB). With T flip-flops, T=Q⊕Q+T = Q \oplus Q^+.

Present Q2Q1Q0Q_2Q_1Q_0Next Q2+Q1+Q0+Q_2^+Q_1^+Q_0^+T2T_2T1T_1T0T_0
000001001
001010011
010011001
011100111
100101001
101110011
110111001
111000111

From K-maps (or by inspection of the table):

  • T0=1T_0 = 1 in every row: T0=1T_0 = 1.
  • T1=1T_1 = 1 for 001,011,101,111001, 011, 101, 111, i.e. whenever Q0=1Q_0 = 1: T1=Q0T_1 = Q_0.
  • T2=1T_2 = 1 for 011,111011, 111, i.e. whenever Q1=Q0=1Q_1 = Q_0 = 1: T2=Q1Q0T_2 = Q_1Q_0.

T0=1,T1=Q0,T2=Q1Q0T_0 = 1,\quad T_1 = Q_0,\quad T_2 = Q_1Q_0

Circuit

        +------------------+-------------------+
        |                  |                   |
 1 --> [T0 FF0] --Q0--+--> [T1 FF1] --Q1--+--[AND]--> [T2 FF2] --Q2
        ^ CLK         |     ^ CLK         |     ^ CLK
 CLK ---+--------------+-----+-------------+-----+
                      +--------------------(AND of Q1 and Q0)

All three flip-flops receive the same CLK. T0T_0 is tied to 1, T1T_1 is connected to Q0Q_0, and T2T_2 is driven by a 2-input AND gate of Q1Q_1 and Q0Q_0.

Timing diagram (negative edge triggering, one column per clock pulse)

Clock: 1  2  3  4  5  6  7  8  9
Q0   : 1  0  1  0  1  0  1  0  1     (toggles every pulse)
Q1   : 0  1  1  0  0  1  1  0  0     (toggles when Q0 = 1)
Q2   : 0  0  0  1  1  1  1  0  0     (toggles when Q1Q0 = 11)
State: 001 010 011 100 101 110 111 000 001
CLK : _|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|
Q0  : _|‾‾|__|‾‾|__|‾‾|__|‾‾|__|‾‾|_
Q1  : ___|‾‾‾‾‾‾|______|‾‾‾‾‾‾|______
Q2  : ____________|‾‾‾‾‾‾‾‾‾‾‾‾|______

The frequency of Q0Q_0 is f/2f/2, Q1Q_1 is f/4f/4 and Q2Q_2 is f/8f/8. All outputs change at the same instant after each clock edge, with no ripple delay.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 10 marks

Explain De-Morgan’s Law. Simplify the Boolean function F(P,Q,R,S) =Π(0,1,4,5,11,14,15) and d(P,Q,R,S) =Σ(2,3,7,8,9,13) using K-Map in both SOP and POS form.

Answer

De Morgan's law. De Morgan's theorems relate the AND, OR and NOT operations:

A+B‾=A‾⋅B‾\overline{A+B}=\overline{A}\cdot\overline{B}

A⋅B‾=A‾+B‾\overline{A\cdot B}=\overline{A}+\overline{B}

The complement of a sum is the product of the complements, and the complement of a product is the sum of the complements. In general A+B+C+…‾=A‾ B‾ C‾⋯\overline{A+B+C+\dots}=\overline{A}\,\overline{B}\,\overline{C}\cdots and ABC⋯‾=A‾+B‾+C‾+⋯\overline{ABC\cdots}=\overline{A}+\overline{B}+\overline{C}+\cdots. Hence a NOR gate equals a bubbled-input AND gate and a NAND gate equals a bubbled-input OR gate; this is used to convert circuits to NAND-only or NOR-only form.

Simplification. F(P,Q,R,S)=Π(0,1,4,5,11,14,15)F(P,Q,R,S)=\Pi(0,1,4,5,11,14,15) means F=0F=0 for minterms 0, 1, 4, 5, 11, 14, 15. The don't cares are d=Σ(2,3,7,8,9,13)d=\Sigma(2,3,7,8,9,13), so F=1F=1 for the remaining minterms 6, 10 and 12.

K-map (rows PQPQ, columns RSRS):

PQ \ RS00011110
0000XX
0100X1
111X00
10XX01

(a) SOP form (group the 1s, using X where helpful)

  • Quad m2,m3,m6,m7m_2,m_3,m_6,m_7 (P=0,R=1P=0,R=1) gives P′RP'R. It covers m6m_6.
  • Quad m8,m9,m12,m13m_8,m_9,m_{12},m_{13} (P=1,R=0P=1,R=0) gives PR′PR'. It covers m12m_{12}.
  • Pair m2,m10m_2,m_{10} (Q=0,R=1,S=0Q=0,R=1,S=0) gives Q′RS′Q'RS'. It covers m10m_{10}.

F=P′R+PR′+Q′RS′F=P'R+PR'+Q'RS'

(b) POS form (group the 0s, using X where helpful)

  • Quad m0,m1,m4,m5m_0,m_1,m_4,m_5 (P=0,R=0P=0,R=0) gives the sum term (P+R)(P+R).
  • Quad m1,m3,m9,m11m_1,m_3,m_9,m_{11} (Q=0,S=1Q=0,S=1) gives (Q+S′)(Q+S'). It covers m11m_{11}.
  • Pair m14,m15m_{14},m_{15} (P=Q=R=1P=Q=R=1) gives (P′+Q′+R′)(P'+Q'+R'). It covers m14m_{14} and m15m_{15}.

F=(P+R)(Q+S′)(P′+Q′+R′)F=(P+R)(Q+S')(P'+Q'+R')

Check. For m6=0110m_6=0110, m10=1010m_{10}=1010 and m12=1100m_{12}=1100 every factor of the POS is 1, so F=1F=1. For each of the minterms 0, 1, 4, 5, 11, 14, 15 at least one factor is 0, so F=0F=0. The SOP likewise gives 1 only on the required minterms and the chosen don't cares.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

Given A=46 and B=35 represent them in binary and perform A-B using 1’s complement method.

Answer

Binary representation (6 bits are enough for both numbers):

A=46=32+8+4+2=(101110)2A=46=32+8+4+2=(101110)_2

B=35=32+2+1=(100011)2B=35=32+2+1=(100011)_2

A − B by 1's complement

  1. Take the 1's complement of BB (invert every bit): 100011‾=011100\overline{100011}=011100.
  2. Add it to AA:
    1 0 1 1 1 0     (A = 46)
  + 0 1 1 1 0 0     (1's complement of B = 28)
  -------------
  1 0 0 1 0 1 0

The sum is 001010001010 with a carry-out of 1.

  1. A carry-out means the result is positive. Add the end-around carry to the sum:

001010+1=001011001010+1=001011

So A−B=(001011)2=8+2+1=11A-B=(001011)_2=8+2+1=11, which agrees with 46−35=1146-35=11.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

What is Multiplexer. Design 8 to 1 Multiplexer with low level Multiplexers.

Answer

Multiplexer. A multiplexer (MUX or data selector) is a combinational circuit that selects one of 2n2^n data inputs and routes it to a single output. The choice is made by nn select lines. It is a many-to-one switch.

For a 2:1 MUX with select SS:

Y=S‾ I0+S I1Y=\overline{S}\,I_0+S\,I_1

Design of an 8:1 MUX from lower-level MUXes

An 8:1 MUX has 8 data inputs I0I_0 to I7I_7, three select lines S2S1S0S_2S_1S_0 and one output YY:

Y=∑i=07miIiY=\sum_{i=0}^{7} m_i I_i

It can be built from two 4:1 MUXes and one 2:1 MUX:

I0 -|       |
I1 -| 4:1   |--- Y0 --|
I2 -| MUX-1 |          | 2:1
I3 -|       |          | MUX  --- Y
    S1 S0              |
I4 -|       |--- Y1 ---|
I5 -| 4:1   |          S2
I6 -| MUX-2 |
I7 -|       |
    S1 S0
  • S1,S0S_1,S_0 are connected to the select inputs of both 4:1 MUXes. MUX-1 selects among I0I_0 to I3I_3 and MUX-2 selects among I4I_4 to I7I_7.
  • S2S_2 drives the select input of the final 2:1 MUX. S2=0S_2=0 passes Y0Y_0 and S2=1S_2=1 passes Y1Y_1.

Check: for S2S1S0=110S_2S_1S_0=110 MUX-2 outputs I6I_6 and the 2:1 MUX passes it, so Y=I6Y=I_6.

Equivalently, seven 2:1 MUXes can be used: four in the first stage (select S0S_0), two in the second (select S1S_1) and one in the last (select S2S_2).

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

Write about D flip flop with necessary circuit, block diagram, characteristic table and equation.

Answer

D flip-flop. The D (data or delay) flip-flop has one data input DD and a clock input. On the active clock edge it stores the value of DD, so the output follows the input one clock later. It is obtained from an SR flip-flop by connecting S=DS=D and R=D‾R=\overline{D}, which removes the invalid state S=R=1S=R=1.

Block diagram

        +--------+
   D ---| D    Q |--- Q
        |        |
 CLK ---|>      Q'|--- Q'
        +--------+

Circuit (gated NAND form). Inputs DD and CLK feed NAND gate 1 (D⋅CLKD\cdot CLK). D‾\overline{D} and CLK feed NAND gate 2 (D‾⋅CLK\overline{D}\cdot CLK). The outputs of these two gates drive a cross-coupled NAND latch whose outputs are QQ and Q‾\overline{Q}. When CLK = 1 the latch is set or reset according to DD; when CLK = 0 the latch holds. An edge-triggered version uses a master-slave pair of such latches.

Characteristic table

DQ(t)Q(t+1)Operation
000Reset
010Reset
101Set
111Set

Compact form: D=0⇒Q(t+1)=0D=0\Rightarrow Q(t+1)=0 and D=1⇒Q(t+1)=1D=1\Rightarrow Q(t+1)=1.

Characteristic equation

Q(t+1)=DQ(t+1)=D

Excitation: to get a required next state Q(t+1)Q(t+1), apply D=Q(t+1)D=Q(t+1). D flip-flops are used in registers, counters and as one-bit memory cells.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

Simplify F(A, B, C, D) = Σ(1,3,4,6,9,11,12,14) and realize the equation using NOR gates only.

Answer

K-map simplification of F(A,B,C,D)=Σ(1,3,4,6,9,11,12,14)F(A,B,C,D)=\Sigma(1,3,4,6,9,11,12,14) (rows ABAB, columns CDCD):

AB \ CD00011110
000110
011001
111001
100110
  • Quad m1,m3,m9,m11m_1,m_3,m_9,m_{11} (B=0B=0, D=1D=1) gives B′DB'D.
  • Quad m4,m6,m12,m14m_4,m_6,m_{12},m_{14} (B=1B=1, D=0D=0) gives BD′BD'.

F=B′D+BD′=B⊕DF=B'D+BD'=B\oplus D

NOR-only realization. Write FF as a product of sums:

F=(B+D)(B′+D′)F=(B+D)(B'+D')

Complementing twice and applying De Morgan's law:

F=(B+D)‾+(B′+D′)‾‾F=\overline{\overline{(B+D)}+\overline{(B'+D')}}

This needs five 2-input NOR gates:

  1. G1=B+B‾=B′G_1=\overline{B+B}=B' (NOR as inverter).
  2. G2=D+D‾=D′G_2=\overline{D+D}=D'.
  3. G3=B+D‾G_3=\overline{B+D}.
  4. G4=B′+D′‾=BDG_4=\overline{B'+D'}=BD.
  5. F=G3+G4‾=B+D‾+BD‾=(B+D)(B′+D′)=B⊕DF=\overline{G_3+G_4}=\overline{\overline{B+D}+BD}=(B+D)(B'+D')=B\oplus D.

Check: B=1,D=0B=1,D=0 gives G3=0G_3=0, G4=0G_4=0, so F=1F=1. B=D=1B=D=1 gives G3=0G_3=0, G4=1G_4=1, so F=0F=0. B=D=0B=D=0 gives G3=1G_3=1, so F=0F=0.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

Mention different types of shift registers. Explain SIPO with timing diagram.

Answer

Shift register. A shift register is a group of flip-flops, usually D flip-flops sharing one clock, that stores binary data and shifts it one position per clock pulse.

Types of shift registers

  1. Serial-In Serial-Out (SISO)
  2. Serial-In Parallel-Out (SIPO)
  3. Parallel-In Serial-Out (PISO)
  4. Parallel-In Parallel-Out (PIPO)
  5. Bidirectional (left/right) and universal shift registers
  6. Ring counter and Johnson (twisted-ring) counter, which are shift registers with feedback

SIPO (Serial-In Parallel-Out). Data enters bit by bit at the first flip-flop. After nn clock pulses all nn bits are available at the same time at the outputs Q0Q_0 to Qn−1Q_{n-1}. It converts serial data to parallel data (for example, in a receiver).

Structure for 4 bits: the serial input goes to DD of FF0; Q0Q_0 goes to DD of FF1; Q1Q_1 goes to DD of FF2; Q2Q_2 goes to DD of FF3; all flip-flops share the clock, and the outputs Q0Q1Q2Q3Q_0Q_1Q_2Q_3 are read in parallel.

Operation. Let the serial data be 1,0,1,11,0,1,1 (first bit first) and the register start cleared:

ClockSerial inQ0Q_0Q1Q_1Q2Q_2Q3Q_3
initial-0000
111000
200100
311010
411101

After the 4th pulse, Q3Q2Q1Q0=1011Q_3Q_2Q_1Q_0=1011, the data that was applied serially, is available in parallel.

Timing diagram (outputs change on the rising clock edge):

CLK  : _|-|_|-|_|-|_|-|_|-|_
DIN  : ___|‾‾‾|___|‾‾‾‾‾‾‾|__    (1 0 1 1)
Q0   : ____|‾‾‾|___|‾‾‾‾‾‾‾‾‾
Q1   : ________|‾‾‾|___|‾‾‾‾‾‾
Q2   : ____________|‾‾‾|___|‾‾   
Q3   : ________________|‾‾‾‾‾‾

Each output is the previous one delayed by one clock period, so the first bit travels from Q0Q_0 to Q3Q_3 in four clocks.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

What is decoder? Describe the 3 to 8 line decoder circuit.

Answer

Decoder. A decoder is a combinational circuit that converts an nn-bit binary code into up to 2n2^n unique output lines, exactly one of which is active for each input combination. It is used for address decoding, memory selection, and driving displays.

3-to-8 line decoder. It has 3 inputs A,B,CA,B,C (with AA the MSB), 8 outputs D0D_0 to D7D_7, and normally an enable input EE.

Truth table (with E=1E=1):

ABCActive output
000D0D_0
001D1D_1
010D2D_2
011D3D_3
100D4D_4
101D5D_5
110D6D_6
111D7D_7

Each output is a minterm of the inputs:

D0=A′B′C′,  D1=A′B′C,  D2=A′BC′,  D3=A′BCD_0=A'B'C',\; D_1=A'B'C,\; D_2=A'BC',\; D_3=A'BC

D4=AB′C′,  D5=AB′C,  D6=ABC′,  D7=ABCD_4=AB'C',\; D_5=AB'C,\; D_6=ABC',\; D_7=ABC

Circuit. Three NOT gates produce A′,B′,C′A',B',C'. Eight 3-input AND gates, one per output, receive the appropriate true or complemented inputs. With an enable, a fourth input EE is added to each AND gate so that all outputs are 0 when E=0E=0. Using NAND gates gives active-low outputs.

Two 3-to-8 decoders with enable can be combined to form a 4-to-16 decoder.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

Explain state diagram, state table, state reduction and state assignment with suitable example.

Answer

Sequential circuits are described and designed through state diagrams and tables.

State diagram. A graph in which each circle is a state and each directed arc is a transition, labelled with the input value that causes it and the output ("input/output" for a Mealy machine).

State table. The tabular form of the diagram. It lists the present state, the next state for each input and the output for each input.

State reduction. Two states are equivalent if, for every input sequence, they give identical outputs and equivalent next states. An equivalent state can be removed, and its references replaced by the surviving state. This reduces the number of flip-flops and gates.

State assignment. Giving a unique binary code to each state of the reduced table. With mm states we need nn flip-flops where 2n≥m2^n\ge m. The assignment affects the logic complexity.

Example.

PresentNext (x=0)Next (x=1)Output (x=0)Output (x=1)
aab00
bcd00
cad00
def01
eaf01
fgf01
gaf01

Reduction:

  • ee and gg have the same next states (aa, ff) and the same outputs, so they are equivalent. Remove gg and replace it by ee.
  • Then ff has next states (ee, ff) and outputs (0, 1), the same as dd (ee, ff; 0, 1). Remove ff and replace it by dd.

The reduced table has five states:

Presentx=0x=1Output (x=0)Output (x=1)
aab00
bcd00
cad00
ded01
ead01

State assignment (3 flip-flops needed since 23≥52^3\ge5): a=000a=000, b=001b=001, c=010c=010, d=011d=011, e=100e=100. The coded state table is then used with the flip-flop excitation tables to derive the input equations. The states 101, 110 and 111 are unused and can be treated as don't cares.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

Design a 2 bit asynchronous binary counter using T flip flop. Draw its timing diagram.

Similar questions: Digital Logic: Differentiate between synchronous and asynchronous counter. Design (2081)

Answer

2-bit asynchronous (ripple) up counter using T flip-flops

A 2-bit counter has 22=42^2=4 states, counting 00→01→10→11→0000\rightarrow01\rightarrow10\rightarrow11\rightarrow00. It needs two T flip-flops. In an asynchronous counter only the first flip-flop receives the external clock; each later flip-flop is clocked by the output of the previous one.

Design.

  • Both T inputs are tied to logic 1 (T=1T=1), so each flip-flop toggles (Q(t+1)=Q‾Q(t+1)=\overline{Q}) on every active clock edge.
  • FF0 (LSB, output Q0Q_0) is clocked by the external clock CLK.
  • FF1 (MSB, output Q1Q_1) is clocked by Q0Q_0.
  • The flip-flops are negative-edge triggered, so FF1 toggles when Q0Q_0 goes from 1 to 0, which happens exactly when the count goes from 0101 to 1010 and from 1111 to 0000.
        +------+        +------+
 1 -----| T  Q0|---+----| T  Q1|----- Q1
 CLK ---|>o    |   |  +-|>o    |
        +------+   +--+ +------+
        FF0   (Q0 clocks FF1)

Count sequence

Clock pulseQ1Q_1Q0Q_0
000
101
210
311
400

Timing diagram (negative-edge triggered):

CLK : ‾|_|‾|_|‾|_|‾|_|‾|_
Q0  : __|‾‾‾|___|‾‾‾|___       (toggles on every falling CLK edge, f/2)
Q1  : ______|‾‾‾‾‾‾‾|______     (toggles on every falling Q0 edge, f/4)

Q0Q_0 has half the clock frequency and Q1Q_1 one quarter, so the circuit is also a divide-by-4 frequency divider. Because Q1Q_1 changes slightly after Q0Q_0 (propagation delay), the counter is not fully synchronous.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

  • 2081 · 5 marks

Write short notes on:
  • Encoder
  • Error detection codes

Answer

Encoder

An encoder is a combinational circuit with 2n2^n (or fewer) input lines and nn output lines. It converts the active input into its binary code, the inverse of a decoder. Only one input should be active at a time.

Octal-to-binary (8-to-3) encoder: inputs D0D_0 to D7D_7, outputs A2A1A0A_2A_1A_0:

A2=D4+D5+D6+D7A_2=D_4+D_5+D_6+D_7

A1=D2+D3+D6+D7A_1=D_2+D_3+D_6+D_7

A0=D1+D3+D5+D7A_0=D_1+D_3+D_5+D_7

Each output is realized by a 4-input OR gate. The problems are that the output is 000 both for D0D_0 and for "no input", and that the output is wrong when two inputs are active together. A priority encoder solves the second problem by giving priority to the highest-numbered active input and adds a valid output VV to flag "no input active". Applications include keyboard encoding and interrupt controllers.

Error detection codes

Errors can occur when data is transmitted or stored. Redundant bits are added to detect them.

  • Parity bit. One extra bit makes the total number of 1s even (even parity) or odd (odd parity). It detects any single-bit error (any odd number of bit errors) but cannot correct it or detect two errors. Example: data 1011001 has four 1s, so the even-parity bit is 0, giving 10110010.
  • Checksum. The sum of data words is sent with the data; the receiver recomputes it.
  • CRC (cyclic redundancy check). The data is divided by a generator polynomial and the remainder is appended. It detects burst errors.
  • Hamming code. Several parity bits placed at positions 2k2^k allow detection of two-bit errors and correction of a single-bit error. The number of parity bits pp satisfies 2p≥m+p+12^p\ge m+p+1 for mm data bits.

Answer checked by Claude Sonnet · Oct 21, 2026

Test yourself · 2 MCQs

Loading…

Questions from Frequency of each character (Semester 1 · C Programming), Graphics mode initialization (Semester 1 · C Programming), File opening modes (Semester 1 · C Programming), Sort 10 integers descending (Semester 1 · C Programming), Pointers and modularity (Semester 1 · C Programming), Trace the output (Semester 1 · C Programming), Recursion sum of first n (Semester 1 · C Programming), Smallest element of each column (BSc CSIT, Semester 1 · C Programming), Parameters and call by value/reference (Semester 1 · C Programming), TU BSc CSIT 2074 First Semester C Programming (TU IOST board exam, 2074), TU BSc CSIT 2075 First Semester C Programming (TU IOST board exam, 2075), TU BSc CSIT 2077 First Semester C Programming (TU IOST board exam, 2077), TU BSc CSIT 2078 First Semester C Programming (TU IOST board exam, 2078), TU BSc CSIT 2079 First Semester C Programming (TU IOST board exam, 2079), TU BSc CSIT 2080 First Semester C Programming (TU IOST board exam, 2080), TU BSc CSIT 2081 First Semester C Programming (TU IOST board exam, 2081), TU BSc CSIT 2082 First Semester C Programming (TU IOST board exam, 2082), TU BSc CSIT 2074 First Semester Digital Logic (TU IOST board exam, 2074), TU BSc CSIT 2075 First Semester Digital Logic (TU IOST board exam, 2075), TU BSc CSIT 2077 First Semester Digital Logic (TU IOST board exam, 2077), TU BSc CSIT 2078 First Semester Digital Logic (TU IOST board exam, 2078), TU BSc CSIT 2080 First Semester Digital Logic (TU IOST board exam, 2080), TU BSc CSIT 2081 First Semester Digital Logic (TU IOST board exam, 2081), TU BSc CSIT 2074 First Semester Introduction to Information Technology (TU IOST board exam, 2074), TU BSc CSIT 2075 First Semester Introduction to Information Technology (TU IOST board exam, 2075), TU BSc CSIT 2077 First Semester Introduction to Information Technology (TU IOST board exam, 2077), TU BSc CSIT 2078 First Semester Introduction to Information Technology (TU IOST board exam, 2078), TU BSc CSIT 2080 First Semester Introduction to Information Technology (TU IOST board exam, 2080), TU BSc CSIT 2081 First Semester Introduction to Information Technology (TU IOST board exam, 2081), TU BSc CSIT 2074 First Semester Mathematics I (TU IOST board exam, 2074), TU BSc CSIT 2075 First Semester Mathematics I (TU IOST board exam, 2075), TU BSc CSIT 2077 First Semester Mathematics I (TU IOST board exam, 2077), TU BSc CSIT 2078 First Semester Mathematics I (TU IOST board exam, 2078), TU BSc CSIT 2079 First Semester Mathematics I (TU IOST board exam, 2079), TU BSc CSIT 2080 First Semester Mathematics I (TU IOST board exam, 2080), TU BSc CSIT 2081 First Semester Mathematics I (TU IOST board exam, 2081), TU BSc CSIT 2082 First Semester Mathematics I (TU IOST board exam, 2082), TU BSc CSIT 2074 First Semester Physics (TU IOST board exam, 2074), TU BSc CSIT 2075 First Semester Physics (TU IOST board exam, 2075), TU BSc CSIT 2077 First Semester Physics (TU IOST board exam, 2077), TU BSc CSIT 2078 First Semester Physics (TU IOST board exam, 2078), TU BSc CSIT 2079 First Semester Physics (TU IOST board exam, 2079), TU BSc CSIT 2080 First Semester Physics (TU IOST board exam, 2080), TU BSc CSIT 2081 First Semester Physics (TU IOST board exam, 2081) and TU BSc CSIT 2082 First Semester Physics (TU IOST board exam, 2082). Answers are written for this site; check them against your class notes.