Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain different methods of binary subtraction. Subtract 27 from 18 using 8-bit 2's complement representation.

Methods of Binary Subtraction

There are three common methods to subtract one binary number from another:

  1. Direct (borrow) method – subtract bit by bit just like decimal subtraction, generating a borrow of 2 from the next higher column when the minuend bit is smaller than the subtrahend bit. Simple for humans but awkward for hardware.
  2. 1's complement method – take the 1's complement of the subtrahend, add it to the minuend, then add any end-around carry back to the LSB. If a final carry is produced the result is positive; otherwise the result is negative and is itself in 1's complement form.
  3. 2's complement method – take the 2's complement of the subtrahend (1's complement + 1), add it to the minuend, and discard the final carry. If a carry-out is produced the result is positive (in true form); if no carry-out, the result is negative and stored in 2's complement form. This is the method used inside virtually all modern computers because subtraction reuses the same adder hardware used for addition.

Subtract 27 from 18 using 8-bit 2's complement

We compute 1827=918 - 27 = -9.

Step 1 – Represent the numbers in 8-bit binary:

18=000100102,27=00011011218 = 0001\,0010_2, \qquad 27 = 0001\,1011_2

Step 2 – Find the 2's complement of 27 (the subtrahend):

  27        = 0001 1011
  1's comp. = 1110 0100
  + 1       = 0000 0001
  2's comp. = 1110 0101   (= -27)

Step 3 – Add 18 and (-27):

   0001 0010   (+18)
 + 1110 0101   (-27)
 -----------
   1111 0111   (no carry-out)

Step 4 – Interpret the result. There is no final carry-out, so the answer is negative and is in 2's complement form. Take the 2's complement of 1111 0111 to read its magnitude:

  1111 0111
  1's comp. = 0000 1000
  + 1       = 0000 1001  = 9

Result: 111101112=9101111\,0111_2 = -9_{10}, i.e. 1827=918 - 27 = -9.

binary-arithmetic
2long10 marks

Minimize F(A,B,C,D) = Sum(0,2,4,6,8,10,12,14) using a K-map and implement using a multiplexer.

Minimize F(A,B,C,D)=m(0,2,4,6,8,10,12,14)F(A,B,C,D)=\sum m(0,2,4,6,8,10,12,14)

Step 1 – Observe the minterms. Every listed minterm is an even number (0,2,4,6,8,10,12,14). An even minterm always has D=0D=0. Hence the function is 1 exactly when D=0D=0.

Step 2 – K-map. Placing 1's at all eight even cells:

AB\CD00011110
001 (m0)001 (m2)
011 (m4)001 (m6)
111 (m12)001 (m14)
101 (m8)001 (m10)

The 1's form a single group of eight (the two columns where D=0D=0).

Step 3 – Minimized expression:

F=D\boxed{F = \overline{D}}

Implementation using a multiplexer

Treat A,B,CA,B,C as the select lines of an 8-to-1 MUX and let DD be the data variable. For each combination of ABCABC the two minterms differ only in DD; both are 1 when D=0D=0 and 0 when D=1D=1. So every data input equals D\overline{D}:

I0=I1=I2=I3=I4=I5=I6=I7=DI_0 = I_1 = I_2 = I_3 = I_4 = I_5 = I_6 = I_7 = \overline{D}

Thus one 8-to-1 MUX with select lines S2S1S0=ABCS_2S_1S_0 = ABC and every data input tied to D\overline{D} realizes FF.

Even simpler, because F=DF=\overline{D} depends on DD alone, a 2-to-1 MUX with select line DD, I0=1I_0=1 and I1=0I_1=0 gives F=D1+D0=DF = \overline{D}\cdot 1 + D\cdot 0 = \overline{D}.

k-map
3long10 marks

Explain the working of SR, D, JK and T flip-flops with truth tables and excitation tables.

Flip-Flops: Working, Truth Tables and Excitation Tables

A flip-flop is a 1-bit edge/level-triggered memory element with a present state QQ and a next state Q+Q^{+}.

1. SR Flip-Flop

Set–Reset latch built from cross-coupled NOR/NAND gates. S=1S=1 sets the output, R=1R=1 resets it; S=R=1S=R=1 is forbidden (indeterminate).

SRQ+Q^{+}Action
00QQNo change
010Reset
101Set
11XInvalid

Characteristic eq.: Q+=S+RQQ^{+}=S+\overline{R}\,Q (with SR=0SR=0).

2. D Flip-Flop

Obtained by tying R=SR=\overline{S} so the invalid state is removed. Output simply follows the data input on the clock edge.

DQ+Q^{+}
00
11

Characteristic eq.: Q+=DQ^{+}=D.

3. JK Flip-Flop

Refines SR by replacing the forbidden state with a toggle.

JKQ+Q^{+}Action
00QQNo change
010Reset
101Set
11Q\overline{Q}Toggle

Characteristic eq.: Q+=JQ+KQQ^{+}=J\overline{Q}+\overline{K}Q.

4. T Flip-Flop

JK with J=K=TJ=K=T. T=1T=1 toggles, T=0T=0 holds. Useful in counters.

TQ+Q^{+}
0QQ
1Q\overline{Q}

Characteristic eq.: Q+=TQQ^{+}=T\oplus Q.

Excitation Tables

These give the required inputs to cause a transition QQ+Q \rightarrow Q^{+} (X = don't care).

QQQ+Q^{+}S RJ KDT
000 X0 X00
011 01 X11
100 1X 101
11X 0X 010

Excitation tables are the inverse of characteristic tables and are the key tool when designing synchronous counters/sequential circuits.

flip-flops
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Convert (734.25)8 into hexadecimal.

Convert (734.25)8(734.25)_8 to hexadecimal

Step 1 – Octal to binary (each octal digit = 3 bits):

7=111,  3=011,  4=100    1110111007=111,\;3=011,\;4=100 \;\Rightarrow\; 111\,011\,100 2=010,  5=101    .0101012=010,\;5=101 \;\Rightarrow\; .\,010\,101

So (734.25)8=(111011100.010101)2(734.25)_8 = (111011100.010101)_2.

Step 2 – Group into 4-bit nibbles about the binary point (pad with 0's at the outer ends):

Integer part: 1 1101 11000001 1101 1100

Fraction part: 0101 010101 0100

00011  1101D  1100C  .  01015  01004\underbrace{0001}_{1}\;\underbrace{1101}_{D}\;\underbrace{1100}_{C}\;.\;\underbrace{0101}_{5}\;\underbrace{0100}_{4}

Step 3 – Result:

(734.25)8=(1DC.54)16\boxed{(734.25)_8 = (1DC.54)_{16}}
number-system
5short5 marks

State the duality principle of Boolean algebra.

Duality Principle of Boolean Algebra

The duality principle states that every valid Boolean identity remains valid (its dual) if we simultaneously:

  • interchange the operators AND (\cdot) and OR (++), and
  • interchange the identity elements 0 and 1,

leaving the variables and their complements unchanged.

Examples:

A+0=AA1=AA + 0 = A \quad\Longleftrightarrow\quad A \cdot 1 = A A+A=1AA=0A + \overline{A} = 1 \quad\Longleftrightarrow\quad A \cdot \overline{A} = 0 A+(BC)=(A+B)(A+C)A(B+C)=AB+ACA + (B\cdot C) = (A+B)(A+C) \quad\Longleftrightarrow\quad A\cdot(B+C) = AB + AC

This principle is why Boolean theorems naturally come in pairs and is the basis of De Morgan's theorems.

boolean-algebra
6short5 marks

Design a full adder using a decoder.

Full Adder using a Decoder

A full adder has inputs A,B,CinA,B,C_{in} and outputs Sum (SS) and Carry (CoutC_{out}):

S=m(1,2,4,7),Cout=m(3,5,6,7)S = \sum m(1,2,4,7), \qquad C_{out} = \sum m(3,5,6,7)

Truth table:

ABCinC_{in}SSCoutC_{out}
00000
00110
01010
01101
10010
10101
11001
11111

Implementation. Use a 3-to-8 line decoder with A,B,CinA,B,C_{in} as the three select/address inputs. The decoder activates exactly one of its eight outputs D0D7D_0 \dots D_7 for each input combination (one minterm per line).

  • Feed outputs D1,D2,D4,D7D_1, D_2, D_4, D_7 into an OR gate to generate Sum.
  • Feed outputs D3,D5,D6,D7D_3, D_5, D_6, D_7 into another OR gate to generate Carry.
S=D1+D2+D4+D7,Cout=D3+D5+D6+D7S = D_1 + D_2 + D_4 + D_7, \qquad C_{out} = D_3 + D_5 + D_6 + D_7

(If the decoder has active-low outputs, replace the OR gates with NAND gates.) Thus one 3-to-8 decoder plus two OR gates implements a complete full adder.

combinational
7short5 marks

Explain the operation of a 4-to-2 priority encoder.

4-to-2 Priority Encoder

A priority encoder converts 2n2^n inputs into an nn-bit binary code, but unlike an ordinary encoder it resolves the case where several inputs are active simultaneously by giving precedence to the input of highest priority (usually the highest-numbered line, D3D_3).

For a 4-to-2 priority encoder: inputs D3,D2,D1,D0D_3,D_2,D_1,D_0, outputs Y1Y0Y_1Y_0, plus a valid bit VV that is 1 whenever at least one input is active.

Truth table (X = don't care):

D3D_3D2D_2D1D_1D0D_0Y1Y_1Y0Y_0V
0000XX0
0001001
001X011
01XX101
1XXX111

Output equations:

Y1=D3+D2Y_1 = D_3 + D_2 Y0=D3+D1D2Y_0 = D_3 + D_1\overline{D_2} V=D3+D2+D1+D0V = D_3 + D_2 + D_1 + D_0

Because D3D_3 has the highest priority, whenever D3=1D_3=1 the output is 1111 regardless of the lower inputs; lower lines are encoded only when all higher lines are 0. The valid output VV distinguishes the all-zero input from a genuine D0=1D_0=1 encoding.

encoder
8short5 marks

Differentiate between PLA and PAL.

Difference between PLA and PAL

Both are Programmable Logic Devices that realize sum-of-products expressions, but they differ in which array is programmable.

FeaturePLA (Programmable Logic Array)PAL (Programmable Array Logic)
AND arrayProgrammableProgrammable
OR arrayProgrammableFixed
FlexibilityHigher – product terms can be shared among outputsLower – fixed OR limits product terms per output
SpeedSlower (two programmable arrays add delay)Faster
Cost / complexityMore complex, costlierSimpler, cheaper
Product-term sharingYesNo

Key point: In a PLA both the AND and OR planes are programmable, whereas in a PAL only the AND plane is programmable and the OR plane is fixed. This makes PLA more flexible but slower and costlier; PAL is faster, cheaper and more widely used.

pld
9short5 marks

Explain the operation of a PIPO shift register.

PIPO Shift Register (Parallel-In Parallel-Out)

A PIPO register loads all data bits simultaneously in parallel and makes them available simultaneously in parallel at the outputs. It does not shift; it acts purely as a temporary parallel storage / buffer.

Construction. For an nn-bit register, nn flip-flops (usually D flip-flops) share a common clock. Each input DiD_i is wired directly to one flip-flop, and each output QiQ_i is taken from that flip-flop. There are no interconnections between adjacent flip-flops, so no bit-shifting occurs.

Operation.

  • On the active clock edge, every flip-flop captures its corresponding input bit at the same instant: QiDiQ_i \leftarrow D_i.
  • All outputs Q0Qn1Q_0 \dots Q_{n-1} then present the loaded word at once and hold it until the next load.

Characteristics:

  • Fastest mode of data transfer (one clock pulse loads the whole word).
  • No serial path, so it is used mainly as a parallel data buffer/latch between functional blocks, not for serial communication.

For example, a 4-bit PIPO storing 1011: inputs D3D2D1D0=1011D_3D_2D_1D_0 = 1011 appear at outputs Q3Q2Q1Q0=1011Q_3Q_2Q_1Q_0 = 1011 after a single clock pulse.

registers
10short5 marks

Design a mod-10 (decade) counter.

Mod-10 (Decade) Counter Design

A mod-10 counter counts through 10 states (0000 to 1001) and then resets to 0000, ignoring the six unused states 1010–1111. It can be built as an asynchronous (ripple) or synchronous counter; a simple asynchronous design uses four JK flip-flops in toggle mode (all J=K=1J=K=1).

Count sequence: 00000001100100000000 \rightarrow 0001 \rightarrow \dots \rightarrow 1001 \rightarrow 0000.

Design idea (asynchronous reset method):

  1. Use four T/JK flip-flops (Q3Q2Q1Q0Q_3Q_2Q_1Q_0) connected as a 4-bit ripple counter; each flip-flop's output clocks the next.
  2. The counter naturally counts 0–15. To make it stop at 9 we must force a reset on the count 1010 (decimal 10).
  3. State 1010 is the first count where Q3=1Q_3=1 and Q1=1Q_1=1. Feed these into a NAND gate:
CLR=Q3Q1\text{CLR} = \overline{Q_3 \cdot Q_1}
  1. Connect the NAND output to the asynchronous CLEAR of all four flip-flops. The instant the count reaches 1010, Q3Q1=1Q_3Q_1=1 drives CLR low, immediately resetting the counter to 0000.

Result: the counter cycles through 0–9 (BCD) and rolls over, giving a modulus of 10. (A jam-free synchronous version uses the excitation table of JK flip-flops with K-maps for J,KJ,K of each stage, but the asynchronous reset method above is the standard exam answer.)

counters
11short5 marks

Explain the difference between a multiplexer and a demultiplexer.

Multiplexer vs Demultiplexer

FeatureMultiplexer (MUX)Demultiplexer (DEMUX)
FunctionMany-to-one: selects one of several inputs and routes it to a single outputOne-to-many: routes a single input to one of several outputs
Data inputs2n2^n data inputs1 data input
Data outputs1 output2n2^n outputs
Select linesnn select lines choose the inputnn select lines choose the output
OperationData selector / parallel-to-serial conversionData distributor / serial-to-parallel conversion
Example4-to-1 MUX (2 select lines)1-to-4 DEMUX (2 select lines)

Summary: A multiplexer is a data selector that combines many input lines onto one output line under control of select lines, while a demultiplexer is a data distributor that takes one input line and steers it to one of many output lines. They perform complementary (inverse) operations, and a DEMUX is functionally the same as a decoder with an enable input.

multiplexer
12short5 marks

Write short notes on look-ahead carry generator.

Look-Ahead Carry Generator

Problem it solves. In a ripple-carry adder each stage must wait for the carry from the previous stage, so the carry ripples through all nn stages, making the worst-case delay proportional to nn. A carry look-ahead (CLA) generator computes all carries in parallel directly from the input bits, drastically reducing addition delay.

Generate and Propagate signals. For each bit position ii with inputs Ai,BiA_i, B_i:

Gi=AiBi(carry generate)G_i = A_i B_i \quad (\text{carry generate}) Pi=AiBi(carry propagate)P_i = A_i \oplus B_i \quad (\text{carry propagate})

Carry equations. Using Ci+1=Gi+PiCiC_{i+1} = G_i + P_i C_i, each carry can be expanded into a function of only the inputs and C0C_0:

C1=G0+P0C0C_1 = G_0 + P_0 C_0 C2=G1+P1G0+P1P0C0C_2 = G_1 + P_1 G_0 + P_1 P_0 C_0 C3=G2+P2G1+P2P1G0+P2P1P0C0C_3 = G_2 + P_2 G_1 + P_2 P_1 G_0 + P_2 P_1 P_0 C_0 C4=G3+P3G2+P3P2G1+P3P2P1G0+P3P2P1P0C0C_4 = G_3 + P_3 G_2 + P_3 P_2 G_1 + P_3 P_2 P_1 G_0 + P_3 P_2 P_1 P_0 C_0

Since every carry is a two-level (AND-OR) function of the inputs, all carries are available after a constant gate delay, independent of the word length.

Sum: Si=PiCiS_i = P_i \oplus C_i.

Advantages / drawback: Much faster than ripple-carry (speed independent of nn), but the logic grows complex for large nn, so wide adders use block CLA stages.

combinational

Frequently asked questions

Where can I find the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) question paper 2080?
The full BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2080 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
Does the Digital Logic (BSc CSIT, CSC116) 2080 paper come with solutions?
Yes. Every question on this Digital Logic (BSc CSIT, CSC116) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2080 paper?
The BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2080 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
Is practising this Digital Logic (BSc CSIT, CSC116) past paper free?
Yes — reading and attempting this Digital Logic (BSc CSIT, CSC116) past paper on Kekkei is completely free.