Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Perform the following conversions: (i) (375)8 to binary, (ii) (1AF)16 to decimal, (iii) (101101)2 to Gray code, (iv) decimal 89 to BCD.

(i) (375)8(375)_8 to binary

Replace each octal digit by its 3-bit binary equivalent:

Octal375
Binary011111101
(375)8=(011111101)2=(11111101)2(375)_8 = (011\,111\,101)_2 = (11111101)_2

(ii) (1AF)16(1AF)_{16} to decimal

Use positional weights of base 16 (with A=10, F=15A=10,\ F=15):

1×162+10×161+15×160=256+160+15=4311\times16^2 + 10\times16^1 + 15\times16^0 = 256 + 160 + 15 = 431 (1AF)16=(431)10(1AF)_{16} = (431)_{10}

(iii) (101101)2(101101)_2 to Gray code

Keep the MSB; each next Gray bit = XOR of adjacent binary bits (gi=bi+1big_i = b_{i+1}\oplus b_i):

Binary101101
Gray111011
  • g5=1g_5 = 1
  • 10=1, 01=1, 11=0, 10=1, 01=11\oplus0=1,\ 0\oplus1=1,\ 1\oplus1=0,\ 1\oplus0=1,\ 0\oplus1=1
(101101)2=(111011)Gray(101101)_2 = (111011)_{Gray}

(iv) Decimal 89 to BCD

Encode each decimal digit in 4-bit BCD:

Digit89
BCD10001001
(89)10=(10001001)BCD(89)_{10} = (1000\,1001)_{BCD}
number-system
2long10 marks

Reduce the following function using a K-map and draw the logic diagram: F(A,B,C,D) = Sum(0,1,2,3,5,7,8,9,11,14).

Step 1: Plot the K-map

F(A,B,C,D)=m(0,1,2,3,5,7,8,9,11,14)F(A,B,C,D)=\sum m(0,1,2,3,5,7,8,9,11,14). Using rows ABAB and columns CDCD in Gray order (00,01,11,1000,01,11,10):

AB\CD00011110
001 (m0)1 (m1)1 (m3)1 (m2)
010 (m4)1 (m5)1 (m7)0 (m6)
110 (m12)0 (m13)0 (m15)1 (m14)
101 (m8)1 (m9)1 (m11)0 (m10)

Step 2: Group the 1s (largest possible groups)

  1. Quad ABA'B' (top row, m0,m1,m3,m2) AB\Rightarrow A'B'
  2. **Quad CDC'D + ... ** group m1,m3,m5,m7 (where AD=1A'D=1) — cells m1,m3,m7,m5 all have ADADA'D \Rightarrow A'D
  3. Quad BCB'C : m1,m3,m9,m11 BC\Rightarrow B'C
  4. **Quad BDB'D'? ** Use m0,m2,m8,m10? m10 is 0, so instead pair m8,m9 with m0,m1: m0,m1,m8,m9 share BCB'C' BC\Rightarrow B'C'
  5. Single covering m14: m14 (ABCD=1110ABCD'=1110) — pair with m6? (0). Pair with m10?(0). Pair with m12?(0). It is isolated, so cover as the pair m14,m6? not available — take it with the only adjacent 1. Adjacent cells m6,m10,m12,m15 are all 0, so m14 is an essential single term ABCDABCD'.

Minimal cover:

F=AB+AD+BC+ABCDF = A'B' + A'D + B'C + ABCD'

(Note: BCB'C' from group 4 is already covered by ABA'B' and BCB'C, so it is redundant.)

Verification: this SOP reproduces exactly the listed minterms.

Step 3: Simplified expression

F=AB+AD+BC+ABCD\boxed{F = A'B' + A'D + B'C + ABCD'}

Step 4: Logic diagram (described)

  • AND gate 1: inputs AA' (A through inverter) and BB' \rightarrow ABA'B'
  • AND gate 2: inputs AA' and DD \rightarrow ADA'D
  • AND gate 3: inputs BB' and CC \rightarrow BCB'C
  • AND gate 4 (4-input): inputs A,B,C,DA,B,C,D' \rightarrow ABCDABCD'
  • OR gate (4-input): combines the four AND outputs to give FF.
  • Inverters generate A,B,DA',B',D' from A,B,DA,B,D.
k-map
3long10 marks

What is a sequential circuit? Explain the design procedure of a clocked synchronous sequential circuit with an example.

Sequential circuit

A sequential circuit is a digital circuit whose output depends not only on the present inputs but also on the past history of inputs, i.e. on the present internal state stored in memory elements (flip-flops). It is built from a combinational logic block plus memory (flip-flops), with feedback from the state outputs back into the logic. A clocked synchronous sequential circuit changes state only at active clock edges.

Output=f(present input, present state)\text{Output} = f(\text{present input},\ \text{present state})

Design procedure of a clocked synchronous sequential circuit

  1. State diagram / word description — derive the required behaviour as a state diagram.
  2. State table — list present state, input, next state and output.
  3. State assignment — assign binary codes to states; reduce states first if possible.
  4. Choose flip-flop type (D, JK, T) and determine the number of flip-flops (nn flip-flops for up to 2n2^n states).
  5. Excitation table — using the flip-flop excitation table, find the required flip-flop inputs for each state transition.
  6. K-map simplification — derive minimal Boolean expressions for each flip-flop input and for the outputs.
  7. Draw the logic diagram — combinational logic + flip-flops + clock.

Example: 2-bit synchronous up counter (using JK flip-flops)

States: 000110110000\to01\to10\to11\to00. Let state = Q1Q0Q_1Q_0.

Excitation (T-style with JK): For an up counter Q0Q_0 toggles every clock, Q1Q_1 toggles when Q0=1Q_0=1.

  • J0=K0=1J_0=K_0=1
  • J1=K1=Q0J_1=K_1=Q_0

Logic diagram (described): Two JK flip-flops share a common clock. FF0 has J0=K0=1J_0=K_0=1 (toggles each clock). FF1 has J1=K1=Q0J_1=K_1=Q_0. Output Q1Q0Q_1Q_0 counts 00,01,10,1100,01,10,11 repeatedly.

This illustrates every design step: behaviour → state table → flip-flop choice → excitation → simplified inputs → circuit.

sequential
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Explain the excess-3 code and its application.

Excess-3 (XS-3) code

Excess-3 is a non-weighted, self-complementing BCD code in which each decimal digit is represented by its 4-bit binary value plus 3 (i.e. 0011).

XS-3 code=BCD value+3\text{XS-3 code} = \text{BCD value} + 3

Examples: decimal 000110\to0011, 510005\to1000, 911009\to1100.

Self-complementing property: the 1's complement of an XS-3 code equals the XS-3 code of the 9's complement of that digit (e.g. 4=01114 = 0111, complement 1000=5=941000 = 5 = 9-4).

Applications

  • BCD arithmetic / subtraction: the self-complementing property makes 9's-complement subtraction easy, simplifying decimal adders/subtractors.
  • Error detection in older digital systems, since the codes 00000000 and ... are unused/forbidden, helping detect invalid states.
  • Used in some arithmetic units and calculators for simplified decimal addition.
number-system
5short5 marks

Simplify F = (A + B)(A + C) using Boolean theorems.

Simplify F=(A+B)(A+C)F = (A+B)(A+C)

Using the distributive law (X+Y)(X+Z)=X+YZ(X+Y)(X+Z) = X + YZ with X=AX=A:

F=(A+B)(A+C)=A+BCF = (A+B)(A+C) = A + BC

Step-by-step proof (expanding):

F=AA+AC+AB+BC=A+AC+AB+BC(AA=A)=A(1+C+B)+BC=A1+BC(1+C+B=1)=A+BC\begin{aligned}F &= AA + AC + AB + BC \\ &= A + AC + AB + BC && (AA=A)\\ &= A(1 + C + B) + BC \\ &= A\cdot 1 + BC && (1+C+B=1)\\ &= A + BC\end{aligned} F=A+BC\boxed{F = A + BC}
boolean-algebra
6short5 marks

Explain the working of a half subtractor with a truth table.

Half subtractor

A half subtractor is a combinational circuit that subtracts two single-bit binary numbers AA (minuend) and BB (subtrahend), producing a Difference (D) and a Borrow (Bo). It does not consider a borrow from a previous stage.

Truth table

ABDifference (D)Borrow (Bo)
0000
0111
1010
1100

Boolean expressions

D=AB=AB+ABD = A \oplus B = A'B + AB' Bo=ABB_o = A'B

Working / logic

  • The Difference output is the XOR of the two inputs.
  • The Borrow is generated only when A=0A=0 and B=1B=1 (subtracting a larger bit from a smaller one), giving Bo=AˉBB_o = \bar{A}B.

Circuit: one XOR gate produces DD; one AND gate with input AA inverted (i.e. AA') and BB produces BoB_o.

combinational
7short5 marks

Realize the EX-OR gate using NAND gates only.

EX-OR using NAND gates only

The XOR function is Y=AB=ABˉ+AˉBY = A\oplus B = A\bar{B} + \bar{A}B. It can be realized with four 2-input NAND gates.

Construction (4 NAND gates)

  1. NAND 1: inputs A,BA,B \Rightarrow G1=ABG_1 = \overline{AB}
  2. NAND 2: inputs A,G1A, G_1 \Rightarrow G2=AAB=ABˉG_2 = \overline{A\cdot\overline{AB}} = \overline{A\bar{B}}
  3. NAND 3: inputs B,G1B, G_1 \Rightarrow G3=BAB=AˉBG_3 = \overline{B\cdot\overline{AB}} = \overline{\bar{A}B}
  4. NAND 4: inputs G2,G3G_2, G_3 \Rightarrow Y=G2G3Y = \overline{G_2 \cdot G_3}

Proof that Y=ABY = A\oplus B

Y=G2G3=ABˉAˉB=ABˉ+AˉB=ABY = \overline{G_2 G_3} = \overline{\overline{A\bar{B}}\cdot\overline{\bar{A}B}} = A\bar{B} + \bar{A}B = A\oplus B

(by De Morgan's theorem, XˉZˉ=X+Z\overline{\bar X \cdot \bar Z} = X + Z).

Verification: outputs 11 only when ABA\ne B — exactly the XOR truth table.

Diagram (described): AA and BB feed NAND 1; its output G1G_1 feeds back as the second input of NAND 2 (with AA) and NAND 3 (with BB); outputs G2,G3G_2,G_3 feed NAND 4 whose output is YY.

logic-gates
8short5 marks

Explain the working of a 8-to-1 multiplexer.

8-to-1 Multiplexer

A multiplexer (MUX) is a combinational circuit that selects one of several input lines and routes it to a single output line, controlled by select lines. An 8-to-1 MUX has:

  • 8 data inputs: I0I_0 to I7I_7
  • 3 select lines: S2,S1,S0S_2, S_1, S_0 (since 23=82^3 = 8)
  • 1 output: YY
  • (often an Enable input)

Working

The 3-bit binary value on (S2S1S0)(S_2 S_1 S_0) selects exactly one data input to appear at YY. For example, S2S1S0=101S_2S_1S_0 = 101 (decimal 5) connects I5I_5 to YY.

Boolean expression

Y=k=07mkIkY = \sum_{k=0}^{7} m_k \cdot I_k Y=S2ˉS1ˉS0ˉI0+S2ˉS1ˉS0I1+S2ˉS1S0ˉI2+S2ˉS1S0I3+S2S1ˉS0ˉI4+S2S1ˉS0I5+S2S1S0ˉI6+S2S1S0I7Y = \bar{S_2}\bar{S_1}\bar{S_0}I_0 + \bar{S_2}\bar{S_1}S_0 I_1 + \bar{S_2}S_1\bar{S_0}I_2 + \bar{S_2}S_1 S_0 I_3 + S_2\bar{S_1}\bar{S_0}I_4 + S_2\bar{S_1}S_0 I_5 + S_2 S_1\bar{S_0}I_6 + S_2 S_1 S_0 I_7

Selection table

S2S_2S1S_1S0S_0Output YY
000I0I_0
001I1I_1
010I2I_2
011I3I_3
100I4I_4
101I5I_5
110I6I_6
111I7I_7

Structure: eight 4-input AND gates (each gated by a data input and the decoded select combination) feeding one 8-input OR gate. Used for data routing, parallel-to-serial conversion and implementing Boolean functions.

multiplexer
9short5 marks

Differentiate between a register and a counter.

Register vs Counter

FeatureRegisterCounter
FunctionStores / holds binary data (a group of bits)Counts the number of clock pulses, stepping through a fixed sequence of states
Output sequenceHolds whatever value is loaded; no inherent sequenceFollows a defined sequence (e.g. 0,1,2,0,1,2,\dots)
Combinational logicLittle/none between flip-flops (mainly data path)Has feedback/combinational logic that determines the next count
Flip-flops usedMainly D flip-flopsMainly T or JK flip-flops
PurposeTemporary data storage, shifting of dataFrequency division, event/pulse counting, timing
ExampleShift register, storage (buffer) registerRipple counter, ring counter, BCD counter

Summary: A register is a set of flip-flops used to store nn-bit data, whereas a counter is a special register that automatically cycles through a predetermined sequence of states on successive clock pulses.

registers
10short5 marks

Explain the conversion of a JK flip-flop into a D flip-flop.

Conversion of JK flip-flop into D flip-flop

We convert a JK flip-flop so that it behaves like a D flip-flop, where Qnext=DQ_{next} = D.

Step 1: Conversion table

D (input)QQQnextQ_{next}JJKK
0000X
010X1
1011X
111X0

(Required next state Qnext=DQ_{next}=D; J,KJ,K obtained from the JK excitation table.)

Step 2: Derive JJ and KK (K-map / inspection)

From the table:

J=DK=Dˉ=DJ = D \qquad K = \bar{D} = D'

Step 3: Circuit

Connect the external input DD directly to JJ, and connect DD through an inverter (NOT gate) to KK:

J=D,K=DJ = D,\qquad K = \overline{D}

Verification:

  • D=1J=1,K=0Qnext=1D=1 \Rightarrow J=1,K=0 \Rightarrow Q_{next}=1
  • D=0J=0,K=1Qnext=0D=0 \Rightarrow J=0,K=1 \Rightarrow Q_{next}=0

Thus the JK flip-flop with J=D, K=DˉJ=D,\ K=\bar{D} functions exactly as a D flip-flop.

flip-flops
11short5 marks

What is a ring counter? Explain its operation.

Ring counter

A ring counter is a circular shift register in which the output of the last flip-flop is fed back to the input of the first flip-flop, so that a single bit (or pattern) circulates around the ring. With nn flip-flops it has nn distinct states (a mod-nn counter) using a one-hot pattern.

Operation (4-bit example)

Four D flip-flops (Q3Q2Q1Q0Q_3 Q_2 Q_1 Q_0) are connected in series with Q0Q_0 fed back to the input of Q3Q_3. It is preset to a single 1, e.g. 10001000. On each clock pulse the 1 shifts one position:

100001000010000110001000 \to 0100 \to 0010 \to 0001 \to 1000 \to \dots
ClockQ3Q_3Q2Q_2Q1Q_1Q0Q_0
01000
10100
20010
30001
41000

Key points

  • Number of states = number of flip-flops (nn), so it is less efficient than a binary counter but needs no decoding logic (each state already a one-hot output).
  • Applications: sequencing, generating timing/control signals, and as a clock-pulse distributor.
counters
12short5 marks

Write short notes on hazards in combinational circuits.

Hazards in combinational circuits

A hazard is an unwanted, momentary (transient) change in the output of a combinational circuit caused by unequal propagation delays along different signal paths, even though the steady-state output should remain unchanged. Hazards produce glitches that can cause malfunction in circuits driven by these outputs (especially asynchronous logic).

Types of hazards

  1. Static hazard — the output should stay constant but momentarily changes.
    • Static-1 hazard: output should remain 11 but briefly drops to 00 (occurs in SOP / AND-OR circuits).
    • Static-0 hazard: output should remain 00 but briefly rises to 11 (occurs in POS / OR-AND circuits).
  2. Dynamic hazard — the output should change once (010\to1 or 101\to0) but instead changes multiple times (e.g. 01010\to1\to0\to1) before settling. It occurs in multi-level circuits with several paths.

Cause

When a single input changes and it can reach the output through two paths with different delays, the two terms (e.g. adjacent minterm groups in a K-map) momentarily both go inactive.

Elimination

Add redundant (consensus) terms so that adjacent groups in the K-map overlap. Including the consensus term keeps the output covered during the transition, removing the glitch. Other techniques: balancing path delays, using a synchronizing clock (latch the output).

combinational

Frequently asked questions

Where can I find the BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) question paper 2079?
The full BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2079 (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) 2079 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) 2079 paper?
The BSc CSIT (TU) Digital Logic (BSc CSIT, CSC116) 2079 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.