Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain different types of number systems. Convert (2AF.C)16 into decimal, binary and octal.

Types of Number Systems

A number system defines how numeric values are represented using a fixed set of symbols and a base (radix).

SystemBaseDigits used
Decimal100–9
Binary20, 1
Octal80–7
Hexadecimal160–9, A–F
  • Decimal: the everyday system used by humans.
  • Binary: used internally by digital systems since transistors have two stable states.
  • Octal and Hexadecimal: compact shorthand for long binary strings (1 octal digit = 3 bits, 1 hex digit = 4 bits).

Conversion of (2AF.C)16(2AF.C)_{16}

(a) Hexadecimal → Decimal

Multiply each digit by its positional weight (powers of 16):

2×162+A×161+F×160+C×1612\times16^2 + A\times16^1 + F\times16^0 + C\times16^{-1} =2(256)+10(16)+15(1)+12(0.0625)= 2(256) + 10(16) + 15(1) + 12(0.0625) =512+160+15+0.75=(687.75)10= 512 + 160 + 15 + 0.75 = (687.75)_{10}

(b) Hexadecimal → Binary

Replace each hex digit by its 4-bit binary equivalent:

  • 2=00102 = 0010, A=1010A = 1010, F=1111F = 1111, C=1100C = 1100
(2AF.C)16=(0010 1010 1111.1100)2=(1010101111.11)2(2AF.C)_{16} = (0010\ 1010\ 1111\,.\,1100)_2 = (1010101111.11)_2

(c) Hexadecimal → Octal

Easiest via the binary result. Group the binary into 3-bit sets from the binary point:

Integer part 1010101111001 010 101 111 = 1257

Fraction part 11110 = 6

(2AF.C)16=(1257.6)8(2AF.C)_{16} = (1257.6)_8

Final Results

(2AF.C)16=(687.75)10=(1010101111.11)2=(1257.6)8(2AF.C)_{16} = (687.75)_{10} = (1010101111.11)_2 = (1257.6)_8
number-system
2long10 marks

Simplify the following Boolean function using the K-map method and implement using NAND gates: F(A,B,C,D) = Sum(0,1,2,4,5,6,8,9,12,13,14).

Simplifying F(A,B,C,D)=(0,1,2,4,5,6,8,9,12,13,14)F(A,B,C,D)=\sum(0,1,2,4,5,6,8,9,12,13,14)

Step 1 — Plot the K-map

A 4-variable K-map (rows = AB, columns = CD in Gray order 00,01,11,10):

AB\CD00011110
001 (0)1 (1)0 (3)1 (2)
011 (4)1 (5)0 (7)1 (6)
111 (12)1 (13)0 (15)1 (14)
101 (8)1 (9)0 (11)0 (10)

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

  • Group 1 (column CD=00, all four rows = 8 cells with CD=01 too): cells where C=0C=0. Minterms 0,1,4,5,8,9,12,13 form an octet → CC'.
  • Group 2 (quad): minterms 0,2,4,6 (A=0,D=0A=0, D=0) extends with 12,14 → 4,6,12,14 and 0,2... The quad 0,4,12,8 (CD=00, i.e. CDC'D')... use a clean quad: minterms 2,6,14 and 4,... Choose quad {4,6,12,14} = BDBD'.
  • Group 3 (quad): minterms {0,2,8,...}: cells A=0,D=0A=0,D=0 → {0,2,4,6} = ADA'D'.

Step 3 — Minimal cover

The simplest valid cover is:

F=C+AD+BD\boxed{F = C' + A'D' + BD'}

Check: CC' covers 0,1,4,5,8,9,12,13. Remaining 1s are 2,6,14 (all have D=0,C=1D=0,C=1). ADA'D' covers 2,6; BDBD' covers 6,14. Together with overlap they cover 2,6,14. All eleven minterms covered, no extra terms.

Step 4 — NAND implementation

Apply DeMorgan's theorem to the SOP. Each product term becomes a NAND, and the final OR becomes a NAND of the term-NANDs (two-level NAND–NAND):

F=C+AD+BD=CADBDF = C' + A'D' + BD' = \overline{\overline{C'}\cdot\overline{A'D'}\cdot\overline{BD'}}

Circuit (two-level NAND–NAND):

  • NAND-1 input: CC (acts as inverter giving CC').
  • NAND-2 inputs: A,DA', D' → output AD\overline{A'D'}.
  • NAND-3 inputs: B,DB, D' → output BD\overline{BD'}.
  • Final NAND combines the three outputs to give FF.

Inverters (A,DA', D') are themselves built from single-input NAND gates, so the whole function is realised using NAND gates only.

k-map
3long10 marks

Design a synchronous mod-8 up counter using JK flip-flops. Draw the circuit and timing diagram.

Synchronous Mod-8 Up Counter using JK Flip-Flops

A mod-8 counter has 23=82^3 = 8 states (000 → 111), so three JK flip-flops (FF0=LSB, FF1, FF2=MSB) are needed. In a synchronous counter all flip-flops receive the same clock simultaneously.

Step 1 — Excitation logic

A JK flip-flop toggles when J=K=1J=K=1 and holds when J=K=0J=K=0. Each bit toggles when all lower-order bits are 1:

FFToggle conditionJ = K
FF0 (Q0)always togglesJ0=K0=1J_0=K_0=1
FF1 (Q1)when Q0 = 1J1=K1=Q0J_1=K_1=Q_0
FF2 (Q2)when Q0·Q1 = 1J2=K2=Q0Q1J_2=K_2=Q_0\cdot Q_1

Step 2 — Circuit description

  • All three flip-flops wired in toggle mode, with a common clock line.
  • J0=K0J_0=K_0 tied to logic 1.
  • J1=K1J_1=K_1 connected to Q0Q_0.
  • J2=K2J_2=K_2 connected to the output of an AND gate fed by Q0Q_0 and Q1Q_1.
  • Outputs Q2Q1Q0Q_2Q_1Q_0 give the count.

Step 3 — Count sequence

000001010011100101110111000000 \to 001 \to 010 \to 011 \to 100 \to 101 \to 110 \to 111 \to 000 \dots

Step 4 — Timing diagram (described)

All flip-flops change on the same active clock edge.

  • Q0 toggles on every clock pulse — highest frequency, fclk/2f_{clk}/2.
  • Q1 toggles once for every two Q0 toggles — fclk/4f_{clk}/4.
  • Q2 toggles once for every four Q0 toggles — fclk/8f_{clk}/8.
CLK : _|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_
Q0  : __|‾‾|__|‾‾|__|‾‾|__|‾‾|__   (÷2)
Q1  : ____|‾‾‾‾|____|‾‾‾‾|____    (÷4)
Q2  : ________|‾‾‾‾‾‾‾‾|________  (÷8)

This confirms the counter advances 0→7 and rolls over to 0, i.e. a mod-8 synchronous up counter.

counters
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

Explain 1's complement and 2's complement representations.

1's and 2's Complement Representations

1's Complement

The 1's complement of a binary number is obtained by inverting every bit (0→1, 1→0).

Example: 1's complement of 01010101 is 10101010.

In signed 1's complement representation the MSB is the sign bit (0 = positive, 1 = negative). A drawback is that it has two representations of zero (00000000 = +0 and 11111111 = −0).

2's Complement

The 2's complement is obtained by taking the 1's complement and adding 1 to the LSB:

2’s complement=1’s complement+1\text{2's complement} = \text{1's complement} + 1

Example: 2's complement of 01010101 = 1010+1=10111010 + 1 = 1011.

Advantages of 2's complement:

  • Unique representation of zero.
  • Subtraction is performed by addition, so the same adder hardware works for both.
  • It is the standard representation of signed integers in computers.

Comparison

Feature1's complement2's complement
MethodInvert all bitsInvert all bits + 1
ZeroTwo (+0, −0)One
End-around carryRequired in additionNot required
Common useRareStandard in CPUs
binary-arithmetic
5short5 marks

State the postulates of Boolean algebra.

Postulates of Boolean Algebra (Huntington Postulates)

Boolean algebra is defined over the set B={0,1}B=\{0,1\} with operations OR (++), AND (\cdot) and NOT ('):

  1. Closure — For any A,BBA,B\in B, both A+BA+B and ABA\cdot B belong to BB.
  2. Identity elementsA+0=AA+0 = A (0 is identity for OR); A1=AA\cdot 1 = A (1 is identity for AND).
  3. Commutative lawA+B=B+AA+B = B+A and AB=BAA\cdot B = B\cdot A.
  4. Distributive lawA(B+C)=AB+ACA\cdot(B+C) = A\cdot B + A\cdot C and A+(BC)=(A+B)(A+C)A+(B\cdot C) = (A+B)\cdot(A+C).
  5. Complement (inverse) — For every AA there exists AA' such that A+A=1A+A' = 1 and AA=0A\cdot A' = 0.

From these, basic identities follow: A+A=AA+A=A, AA=AA\cdot A=A, A+1=1A+1=1, A0=0A\cdot0=0, and De Morgan's theorems (A+B)=AB(A+B)'=A'B', (AB)=A+B(A\cdot B)'=A'+B'.

boolean-algebra
6short5 marks

Explain the working of a 1-to-4 demultiplexer.

1-to-4 Demultiplexer (DEMUX)

A demultiplexer is a combinational circuit that takes a single data input and routes it to one of several outputs, selected by control (select) lines. It performs the reverse function of a multiplexer.

A 1-to-4 DEMUX has:

  • 1 data input DD
  • 2 select lines S1,S0S_1, S_0 (22=42^2 = 4 outputs)
  • 4 outputs Y0,Y1,Y2,Y3Y_0, Y_1, Y_2, Y_3

Working

The select lines decide which output the input DD is connected to; all other outputs stay at 0.

S1S_1S0S_0Active output
00Y0=DY_0 = D
01Y1=DY_1 = D
10Y2=DY_2 = D
11Y3=DY_3 = D

Boolean expressions

Y0=DS1S0,Y1=DS1S0,Y2=DS1S0,Y3=DS1S0Y_0 = D\,S_1'S_0' ,\quad Y_1 = D\,S_1'S_0 ,\quad Y_2 = D\,S_1S_0' ,\quad Y_3 = D\,S_1S_0

Circuit: four 3-input AND gates; each AND gate receives the data DD and the proper combination of select lines (true/complemented). A DEMUX is widely used for data distribution and as a decoder (when D=1D=1).

demultiplexer
7short5 marks

What is an encoder? Explain a priority encoder.

Encoder and Priority Encoder

Encoder

An encoder is a combinational circuit that converts an active input line (one of 2n2^n) into an nn-bit binary code. It is the reverse of a decoder. For example, an 8-to-3 encoder has 8 inputs and 3 output lines.

A limitation of an ordinary encoder is that if two or more inputs are active at the same time, the output is invalid/ambiguous.

Priority Encoder

A priority encoder solves this problem by assigning a priority to each input. If multiple inputs are active simultaneously, it outputs the binary code of the highest-priority (usually highest-numbered) active input and ignores the others.

Example — 4-to-2 priority encoder (input D3D_3 has highest priority):

D3D_3D2D_2D1D_1D0D_0A1A_1A0A_0V
0000xx0
0001001
001x011
01xx101
1xxx111

Here xx = don't care and V is a valid output bit (1 when at least one input is high). Output equations:

A1=D3+D2,A0=D3+D1D2,V=D0+D1+D2+D3A_1 = D_3 + D_2,\quad A_0 = D_3 + D_1 D_2',\quad V = D_0+D_1+D_2+D_3
encoder
8short5 marks

Differentiate between SOP and POS forms.

SOP vs POS

SOP (Sum of Products): a Boolean expression written as the OR (sum) of AND (product) terms. Each product term (minterm) corresponds to a row where the output is 1.

  • Example: F=AB+AB+ABF = A'B + AB' + AB

POS (Product of Sums): a Boolean expression written as the AND (product) of OR (sum) terms. Each sum term (maxterm) corresponds to a row where the output is 0.

  • Example: F=(A+B)(A+B)F = (A+B)(A+B')

Differences

FeatureSOPPOS
FormSum of productsProduct of sums
Built fromMinterms (output = 1)Maxterms (output = 0)
OperatorsAND terms ORedOR terms ANDed
NotationF=m()F=\sum m(\dots)F=M()F=\prod M(\dots)
Literal in mintermvariable as is if 1variable as is if 0

Both represent the same function; one is the dual/complement-derived form of the other and either can be obtained from the truth table.

boolean-algebra
9short5 marks

Explain the working of a JK flip-flop and the race-around condition.

JK Flip-Flop and Race-Around Condition

Working of a JK Flip-Flop

The JK flip-flop is a refinement of the SR flip-flop that removes the forbidden (S=R=1S=R=1) state. It has inputs J and K, a clock, and outputs QQ and QQ'. Characteristic behaviour on the active clock edge:

JKQn+1Q_{n+1}Operation
00QnQ_nNo change (hold)
010Reset
101Set
11QnQ_n'Toggle

Characteristic equation: Qn+1=JQn+KQnQ_{n+1} = J\,Q_n' + K'\,Q_n.

The key advantage: the previously invalid state now produces a useful toggle action.

Race-Around Condition

In a level-triggered JK flip-flop, when J=K=1J=K=1 and the clock pulse width is larger than the propagation delay of the flip-flop, the output keeps toggling repeatedly (QQQQ\to Q'\to Q\dots) for as long as the clock stays high. This uncontrolled multiple toggling within one clock pulse is the race-around condition, and the final output state becomes uncertain.

Remedies

  • Make the clock pulse width smaller than the propagation delay (impractical).
  • Use edge-triggering, or a Master–Slave JK flip-flop, where the master accepts data while the clock is high and the slave updates the output only on the falling edge — so the output changes only once per clock pulse, eliminating the race-around condition.
flip-flops
10short5 marks

What is a magnitude comparator? Explain a 1-bit comparator.

Magnitude Comparator and 1-Bit Comparator

Magnitude Comparator

A magnitude comparator is a combinational circuit that compares two binary numbers AA and BB and produces three outputs indicating whether A>BA>B, A=BA=B, or A<BA<B.

1-Bit Comparator

For two single-bit inputs AA and BB, the truth table is:

ABA>BA>BA=BA=BA<BA<B
00010
01001
10100
11010

Output equations

A>B:  G=ABA>B:\; G = A\,B' A<B:  L=ABA<B:\; L = A'\,B A=B:  E=AB+AB=AB  (XNOR)A=B:\; E = A'B' + AB = \overline{A\oplus B}\;(\text{XNOR})

Circuit: the A=BA=B output is an XNOR gate, the A>BA>B output is an AND gate with BB inverted, and the A<BA<B output is an AND gate with AA inverted. These outputs are mutually exclusive (exactly one is 1 at a time).

combinational
11short5 marks

Explain the difference between latch and flip-flop.

Latch vs Flip-Flop

Both are 1-bit memory (bistable) elements, but they differ in how/when they respond to inputs.

  • A latch is level-triggered — its output follows the input as long as the enable/control signal is at its active level (it is transparent during that level).
  • A flip-flop is edge-triggered — its output changes only at the rising or falling edge of the clock, regardless of how long the clock stays high.

Comparison

FeatureLatchFlip-Flop
TriggeringLevel (enable level)Clock edge
ClockUsually no clock / enableClock required
TransparencyTransparent when enabledNever transparent
Speed/powerFaster, less hardwareSlower, more hardware
UseTemporary storage, transparent buffersRegisters, counters, synchronous systems

In short, a flip-flop can be built from latches (e.g. master–slave or two latches in series); edge-triggering makes flip-flops better suited to synchronous sequential circuits.

flip-flops
12short5 marks

Write short notes on tri-state logic.

Tri-State Logic

Tri-state (three-state) logic is a type of digital output that can take three states instead of the usual two:

  1. Logic 0 (low)
  2. Logic 1 (high)
  3. High-impedance (Hi-Z) — the output is effectively disconnected from the bus, presenting very high impedance and neither driving high nor low.

Control

A tri-state buffer has a data input, an output, and an enable (E) control line:

  • When E = 1 (active): output = input (normal buffer, logic 0 or 1).
  • When E = 0 (disabled): output = high-impedance (Hi-Z).
EnableInputOutput
0xHi-Z
100
111

Applications

  • Bus systems: many devices share a common data bus; only one is enabled at a time while others are in Hi-Z, preventing conflicts.
  • Used in microprocessors, memory chips, and bidirectional I/O ports.
  • Allows wired bus sharing without additional multiplexing logic.
logic-gates

Frequently asked questions

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