Top Banner Ad
BEC302 · 2025-2622 Questions

DIGITAL SYSTEM DESIGN — 2025-26

Section A

2 Marks Each · 7 questions
Q1a2MUnit 1 — Karnaugh maps up to 5 variables
Core Concept

Simplify the following expression using K-map: f(A,B,C)=∑m(0,1,2,3,4,5,6,7)f(A, B, C) = \sum m(0, 1, 2, 3, 4, 5, 6, 7)

Answer: A 3-variable K-map has 8 cells; minterms 0 to 7 cover every cell. Group all eight ones into one octet. The group eliminates A, B and C completely, leaving f = 1. Logic implementation: tie the output to logic 1; no gates are required.

Key Points

  • All eight minterms of a 3-variable function are present.
  • One octet removes all three variables.
  • f(A,B,C)=1 (constant HIGH).
Q1b2MUnit 1 — Number Systems
Core Concept

Determine the value of base xx, if (193)x=(623)8(193)_x = (623)_8

Convert octal six two three to decimal: six times sixty four plus two times eight plus three gives four hundred and three. In base seven, one nine three means one times forty nine plus nine times seven plus three, also four hundred and three. Therefore the unknown base is seven.

Key Points

  • Octal value is 403
  • Base seven gives 403
  • Unknown base is seven
Q1c2MUnit 1 — Binary codes
Core Concept

Define cyclic codes.

Cyclic codes are error detecting codes in which every cyclic shift of a valid code word is also valid. They are generated by a polynomial that divides the code word polynomial. Cyclic redundancy checks use them because shift registers can compute and verify the check bits efficiently.

Key Points

  • Closed under cyclic shifts
  • Generated by a polynomial
  • Used in cyclic redundancy checks
Q1d2MUnit 3 — Building blocks like S-R
Survival ModePredictedRepeated

What is race around condition?

Race around occurs in a level sensitive JK flip flop when both J and K are high and the clock pulse stays active. The output toggles repeatedly because feedback changes the input while the clock is still high. Edge triggered or master slave construction prevents it by allowing one change per clock.

Key Points

  • Occurs with J and K high
  • Caused by long active clock
  • Prevented by edge triggering
Q1e2MUnit 3 — Finite state machines: Mealy and Moore machines
Core Concept

Differentiate between Moore Machine and Mealy Machine.

A Moore machine output depends only on the present state, so it changes at clock edges and is stable during a state. A Mealy machine output depends on both state and inputs, so it can respond within a cycle. Mealy often needs fewer states; Moore is easier to time.

Key Points

  • Moore depends on state only
  • Mealy depends on state and input
  • Tradeoff between states and timing
Q1f2MUnit 4 — noise margin
Core Concept

What do you mean by noise margin?

Noise margin is the voltage gap between what a gate produces and what the next gate requires. High noise margin is minimum high output minus minimum high input. Low noise margin is maximum low input minus maximum low output. Larger margins give better immunity to interference.

Key Points

  • High and low margins defined
  • Compares output and input levels
  • Larger margin means more immunity
Q1g2MUnit 5 — Analog-to-digital converters (ADC): Specifications of ADCs
Survival Mode

Calculate the step size of a 10-bit ADC with 5 V reference.

Answer: Step size (one LSB) = V_ref / 2^n = 5 V / 1024 = 0.0048828 V ≈ 4.88 mV. If full-scale is defined as V_ref × (2^n-1)/2^n, the LSB is 5/1023 ≈ 4.89 mV; the common design value is 4.88 mV. Result: Step size ≈ 4.88 mV per count.

Key Points

  • Step size = V_ref / 2^n.
  • 5/1024 = 4.88 mV.
  • Equivalent percentage resolution = 1/1024 ≈ 0.0977%.

Section B

7 Marks Each · 5 questions
Q2a7MUnit 1 — Karnaugh maps up to 5 variables
Core Concept

Simplify the Boolean function F(w,x,y,z)=∑m(1,3,7,11,15)+d(0,2,5)F(w, x, y, z) = \sum m(1, 3, 7, 11, 15) + d(0, 2, 5). Also implement the minimized function using basic logic gates.

Answer: Plot minterms 1,3,7,11,151,3,7,11,15 and don't cares 0,2,50,2,5 on a 4-variable K-map with variables w,x,y,z. Useful groups: group {1,3,5,7} using don't care 5 gives x′zx'z (w and y vary); group {3,7,11,15} gives yz (w and x vary). Minterm 1 is covered by x′z,3x'z, 3 and 7 by both, 11 and 15 by yz. Don't cares 0 and 2 are unused. Hence F=x′z+F = x'z + yz = z(x' + y). Implementation: invert x to get x′x'; feed x′x' and y into an OR gate; AND its output with z. Alternatively use two AND gates (x'z and yz) feeding one OR gate.

Minimising logic with a Karnaugh map. A Karnaugh map is a grid representation of a truth table arranged so that cells which differ in only one variable are physically adjacent, including the wraparound from the last column to the first and from the last row to the first. A four variable function uses sixteen cells labelled by Gray code, where consecutive labels change in one bit only. Each minterm given in the sum of products is marked with a one, and each don't care term is marked with a dash because it may be used as either zero or one. Groups are then formed of two, four, eight or sixteen adjacent cells, always a power of two and always rectangular. Larger groups eliminate more variables, so the goal is the fewest possible groups and the largest possible size. Don't care cells are used only when they enlarge a group and may be left unused. For each group, variables that take both values within the group cancel, while variables that remain constant appear in the product term, in complemented form when the constant is zero. The sum of these product terms is the minimized function. A practical example with ones at minterms one, two, four, six, nine, ten, eleven, twelve, thirteen, fourteen and fifteen yields a small set of groups whose terms cover every one and no zero. A good answer draws the map, labels rows and columns with Gray code, marks ones and don't cares, circles the groups and writes the resulting Boolean expression. It should then implement that expression with AND, OR and NOT gates or with universal gates. Mentioning that Karnaugh maps are convenient up to about five variables but become unwieldy beyond that explains when the Quine McCluskey method is preferred.

F=x′z+F = x'z +
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • Group {1,3,5,7} -> x'z using don't care 5.
  • Group {3,7,11,15} -> yz.
  • F = z(x'+y); implement with inverter, OR and AND.
Q2b7MUnit 2 — serial and parallel adders
Core Concept

Describe a circuit of 4-bit binary adder-subtractor with overflow detection.

Answer: Use four full adders in cascade. Let M be the mode input: M=0M=0 for addition, M=1M=1 for subtraction. Each BiB_{i} is XORed with M, so for M=1M=1 the 2's complement of B is formed. The carry-in of the least significant adder is M, which adds the required +1. Then Si=AiS_{i} = A_{i} XOR BiB_{i} XOR M XOR CiC_{i} and Ci+1C_{i+1} follows the full-adder carry equation. For signed numbers, overflow V=C3V = C_{3} XOR C4C_{4}, where C3C_{3} is the carry into the sign-bit stage and C4C_{4} is the carry out. V=1V=1 means the result is outside the representable range. Alternatively V = (A_3 XOR S3)(B3S_{3})(B_{3} XOR S_3) Circuit: four XOR gates for BiB_{i}, four full adders and one XOR gate for overflow.

One circuit for addition and subtraction. A binary subtractor computes A minus B by adding A to the twos complement of B. The twos complement is formed by inverting every bit of B and adding one. A single circuit can therefore perform both operations using a control input. Each bit slice contains an exclusive OR gate that either passes B unchanged when the control is zero or complements it when the control is one, followed by a full adder. The control signal is also connected to the carry in of the least significant bit, supplying the extra one needed for twos complement subtraction. When the control is zero the circuit computes A plus B plus zero. When the control is one it computes A plus not B plus one, which is A minus B. Overflow is different from carry out. For signed addition, overflow occurs when the carry into the most significant bit differs from the carry out of that bit, or equivalently when adding two numbers of the same sign produces a result of the opposite sign. For unsigned arithmetic, the final carry out indicates that the true result needs one more bit. A good answer describes the controlled inversion, the carry in connection and the slice diagram, then states the overflow rule and illustrates it with a short numerical example. Mentioning that an arithmetic logic unit uses exactly this idea together with other operations connects the design to a processor. A note that ripple carry delay grows linearly with word length explains why fast designs use carry look ahead or carry select addition.

Si=AiS_{i} = A_{i}
V=C3V = C_{3}
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • XOR each B bit with mode M; set initial carry = M.
  • M=0 adds; M=1 performs A + (2's complement of B).
  • Overflow V = C3 XOR C4 = (A3 XOR S3)(B3 XOR S3).
Q2c7MUnit 3 — Applications of Flip Flops: ripple and synchronous counters
Core Concept

Design a 3-bit synchronous binary counter with neat sketch.

Answer: Use three JK flip-flops sharing one clock. Let the outputs be Q2,Q1,Q0, with Q0 the LSB. For an up-counter: FF0 toggles every clock, so J0=K0=1;FF1J0=K0=1; FF1 toggles when Q0=1Q0=1, so J1=K1=Q0;FF2J1=K1=Q0; FF2 toggles when Q1Q0=1Q1Q0=1, so J2=K2=Q1Q0J2=K2=Q1Q0. The sequence is 000,001,010,011,100,101,110,111000,001,010,011,100,101,110,111 and repeats. State equations: Q0+ =Q0′Q0', Q1+ = Q1 XOR Q0, Q2+ = Q2 XOR (Q1Q0). All flip-flops receive the same clock edge, so there is no cumulative ripple delay. A reset clears all FFs to 000.

Ripple and synchronous counters. A counter is a sequential circuit that advances through a defined sequence of states on each clock pulse. In an asynchronous or ripple counter, only the first flip flop receives the external clock. Each later flip flop is triggered by the output of the previous one, so the changes ripple through the chain. The circuit is simple and uses minimal extra logic, but the accumulated propagation delay means the outputs do not change simultaneously, producing brief incorrect states and limiting the maximum clock frequency. In a synchronous counter, every flip flop receives the same clock edge. Combinational logic derives each flip flop's input from the present state so that all bits change together. For a four bit synchronous binary counter built with J K flip flops, the least significant bit toggles every clock, the next bit toggles when all lower bits are one, the third toggles when the lower two are one, and the most significant toggles when the lower three are one. These conditions are implemented with AND gates feeding the J and K inputs. The timing diagram therefore shows clean transitions at the same instant, apart from small differences in gate delay. A good answer contrasts the two designs, draws or describes the synchronous circuit, derives the toggle conditions and explains the timing diagram. Mentioning that synchronous designs cost more gates but avoid ripple glitches and support higher speeds is the key tradeoff. A note that counters are used in frequency division, timers, address generation and digital clocks connects the theory to applications.

J0=K0=1;FF1J0=K0=1; FF1
J1=K1=Q0;FF2J1=K1=Q0; FF2
Q1Q0=1Q1Q0=1
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • J0=K0=1; J1=K1=Q0; J2=K2=Q1Q0.
  • Sequence 000 to 111 with a common clock.
  • Synchronous design avoids ripple delay.
Q2d7MUnit 4 — ECL
Core Concept

Explain the basic circuit and operation of emitter coupled logic (ECL).

Answer: ECL is a non-saturating logic family based on a differential emitter-coupled pair. One transistor is the input device and the other is tied to a reference voltage (about -1.3 V with a -5.2 V supply). When VinV_{in} is above the reference, the input transistor steals the tail current and its collector falls; the complementary collector rises, producing OR/NOROR/NOR outputs. When VinV_{in} is below the reference, current switches to the reference transistor and outputs reverse. Because transistors never saturate, storage delay is eliminated and ECL achieves sub-nanosecond propagation delay. Disadvantages are high power dissipation, small noise margin (about 0.2 V) and the need for a negative supply and termination. It is used in high-speed clock distribution and telecommunications.

Emitter coupled logic. Emitter coupled logic, often abbreviated ECL, is a high speed bipolar logic family. Unlike transistor transistor logic, it avoids driving transistors into saturation. Instead, its transistors operate in the active region or cutoff, and the switching is controlled by steering a nearly constant tail current between two branches of a differential pair. Because charge is not stored in saturated junctions, transitions are very fast and propagation delays can be extremely small. The basic cell is a differential amplifier followed by emitter followers that translate the small internal voltage swing to the required output levels. The output swing is relatively small, which reduces charging time but also reduces noise margin compared with complementary metal oxide semiconductor logic. ECL inputs and outputs often use negative supply voltages and terminated transmission lines, so careful attention to impedance matching and power is required. The family dissipates substantial static power because current flows continuously even when the gate is not switching. Its principal advantages are very high speed, low switching noise and excellent performance at high fan out into controlled impedance loads. A good answer draws or describes the differential pair and emitter follower output, explains current steering and contrasts unsaturated with saturated operation. It should state typical advantages and disadvantages, including speed, power, noise margin and the need for termination. Mentioning applications in high speed clocks, telecommunications and high frequency measurement equipment shows where the family remains relevant despite its power cost.

VinV_{in}
OR/NOROR/NOR
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • Current-steering differential pair; transistors stay out of saturation.
  • Very fast (sub-ns) but high power and low noise margin.
  • Provides complementary OR/NOR outputs.
Q2e7MUnit 5 — principle of ADC
Core Concept

Assume the following values for the ADC: clock frequency = 1 MHz; VT=0.1V_T = 0.1 mV; DAC has F.S. output = 10.23 V and a 10-bit input. Determine the following values: (i) The digital equivalent obtained for VA=3.728V_A = 3.728 V. (ii) The conversion time. (iii) The resolution of this converter.

Answer: For 10 bits there are 1024 codes and the DAC full-scale output 10.23 V corresponds to code 1023, so one LSB =10.23/1023=10 mV10.23/1023 = 10\ \text{mV}. (i) Digital equivalent for VA=3.728VV_{A} = 3.728 V is 3.728/0.01=372.83.728/0.01 = 372.8, rounded to 373. Binary 373=01011101012373 = 0101110101_{2}. (ii) For a successive-approximation ADC, conversion needs 10 clock periods: T_c = 10 × (1/1 MHz) = 10 us. (iii) Resolution (step size) =10 mV=10.23/1023V10\ \text{mV} = 10.23/1023 V, or 0.0978% of full scale. The comparator threshold VT=0.1 mVV_{T}=0.1\ \text{mV} is 0.01 LSB, much smaller than the step size.

Working from converter specifications. Given a clock frequency, a threshold voltage, a full scale digital to analogue converter output and a word length, the first step is to determine the quantisation step. With a ten bit input there are one thousand and twenty four codes. If the full scale output is ten point two three volts, the step size is ten point two three volts divided by one thousand and twenty four, which is ten millivolts. The digital equivalent of an input voltage is the input divided by the step size, rounded to the nearest integer. For an input of three point seven two eight volts, division by ten millivolts gives three hundred and seventy two point eight, so the nearest code is three hundred and seventy three, provided the converter uses rounding rather than truncation. The corresponding binary word is obtained by converting that integer to ten bits. Conversion time for a successive approximation converter is the number of bits multiplied by the clock period. With a one megahertz clock the period is one microsecond, so ten bits take ten microseconds. Resolution can be reported as the step size in volts, as a percentage of full scale, or as the number of bits. A good answer lists each given value, converts units before calculating, shows the division for the code and the multiplication for the time, and states the final results clearly. Mentioning the assumption about rounding and the difference between the ideal step and the stated threshold voltage avoids ambiguity in the result.

10.23/1023=10 mV10.23/1023 = 10\ \text{mV}
VA=3.728VV_{A} = 3.728 V
3.728/0.01=372.83.728/0.01 = 372.8
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • LSB = 10.23/1023 = 10 mV.
  • 3.728 V -> code 373 = 0101110101₂.
  • Conversion time = 10 clock periods = 10 us; resolution = 10 mV.

Section C

7 Marks Each · 10 questions
Q3a7MUnit 1 — tabulation method
Core Concept

Minimize the following using Quine-McCluskey Method: F(P,Q,R,S)=∑m(0,3,5,6,7,10,12,13)+d(2,9,15)F(P, Q, R, S) = \sum m(0, 3, 5, 6, 7, 10, 12, 13) + d(2, 9, 15).

Answer: Include don't cares 2,9,152,9,15 with the minterms. Group by number of 1s and combine terms differing in one bit: 0-2 →P′Q′S′\rightarrow P'Q'S'; 2-10 →Q′RS′\rightarrow Q'RS'; 3-7 and 6-7 with 2-3,2-6 →P′R\rightarrow P'R; 5-7,13-15 -> QS; 12-13 →PQR′\rightarrow PQR'. The prime-implicant chart requires minterms 0,3,5,6,7,10,12,130,3,5,6,7,10,12,13 to be covered. A minimal cover is P′RP'R (3,6,7), QS (5,7,13), PQR′PQR' (12,13), P′Q′S′P'Q'S' (0) and Q′RS′Q'RS' (10). Hence F=P′R+QS+PQR′+P′Q′S′+Q′RS′F = P'R + QS + PQR' + P'Q'S' + Q'RS', with P the MSB and S the LSB.

The Quine McCluskey tabulation method. The Quine McCluskey method minimises Boolean functions systematically and is useful when a Karnaugh map becomes too large. It works on minterm indices written in binary rather than on a graphical grid. The procedure has three stages. First, minterms with the same number of one bits are grouped, and adjacent pairs that differ in exactly one bit are combined, replacing the differing bit with a dash to form an implicant with one fewer literal. The process is repeated with the newly formed implicants, combining pairs that differ in one bit and have dashes in the same positions, until no further combination is possible. The implicants that cannot be combined are prime implicants. Second, a prime implicant chart is built with prime implicants as rows and the original minterms as columns, placing a mark wherever a prime implicant covers a minterm. Don't care terms may be included for combination but need not be covered in the final chart. Third, essential prime implicants are identified by finding columns with a single mark; each such minterm forces the selection of its only covering implicant. After removing covered columns, the remaining chart is reduced by choosing the smallest set of implicants that covers all remaining minterms, using further domination rules if possible. A good answer explains all three stages, works through the given minterms and don't cares, lists the prime implicants and writes the final minimized expression. Mentioning that the method always produces a minimal sum of products, while a Karnaugh map relies on visual grouping, explains why tabulation is preferred for many variables. A note that the same idea can be dualised for product of sums form shows completeness.

F=P′R+QS+PQR′+P′Q′S′+Q′RS′F = P'R + QS + PQR' + P'Q'S' + Q'RS'
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • Add don't cares to the initial group table.
  • Combine terms differing in one bit to get prime implicants.
  • Minimal cover gives five product terms as above.
Q3b7MUnit 1 — review of Boolean algebra and Demorgans theorem
Core Concept

What do you mean by universal logic gates? Implement all other logic gates using universal logic gates.

Answer: A universal gate can implement any Boolean function by itself; NAND and NOR are universal gates. Using NAND only: NOT A = NAND(A,A); AND: AB = NAND(NAND(A,B),NAND(A,B)); OR: A+B = NAND(NAND(A,A),NAND(B,B)); XOR: N1=NAND(A,B),N2=NAND(A,N1),N3=NAND(B,N1),Y=NAND(N2,N3)N1=NAND(A,B), N2=NAND(A,N1), N3=NAND(B,N1), Y=NAND(N2,N3). Using NOR only: NOT A = NOR(A,A); OR: A+B = NOR(NOR(A,B),NOR(A,B)); AND: AB = NOR(NOR(A,A),NOR(B,B)). Since NOT, AND and OR form a functionally complete set, NAND and NOR can realize any logic function.

NAND and NOR as building blocks. A universal logic gate is one from which every other Boolean function can be constructed without using any other gate type. NAND and NOR have this property because each includes inversion in its basic operation. The NAND gate outputs zero only when all inputs are one; the NOR gate outputs one only when all inputs are zero. To build a NOT gate with NAND, connect both inputs together, so the output is the inverse of that input. An AND gate is a NAND gate followed by a NAND inverter. An OR gate is obtained by inverting each input with a NAND inverter and feeding them to a NAND gate, which by De Morgan's theorem gives the OR function. Exclusive OR is built by generating the complements of both inputs, forming the two product terms A times not B and not A times B with NAND gates, then combining them with another NAND used as an OR. The total gate count is about nine NAND gates in a straightforward implementation, and there are optimised variants using fewer. A NOR based design follows the dual construction, using NOR inverters and De Morgan's theorem to obtain AND and OR. Universal gates are important in fabrication because an integrated circuit family can manufacture one transistor layout extremely well and then build all logic functions from it, reducing cost and improving consistency. A good answer defines universality, derives NOT, AND and OR from a universal gate, proves the conversion with Boolean algebra or a truth table and draws the exclusive OR network. Mentioning that NAND is especially common in complementary metal oxide semiconductor logic and that NOR is common in certain memory and high speed families adds practical depth.

N1=NAND(A,B),N2=NAND(A,N1),N3=NAND(B,N1),Y=NAND(N2,N3)N1=NAND(A,B), N2=NAND(A,N1), N3=NAND(B,N1), Y=NAND(N2,N3)
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • NAND and NOR are universal gates.
  • NOT, AND, OR can be built from NAND alone or NOR alone.
  • XOR needs four NAND gates.
Q4a7MUnit 2 — MSI devices like comparators
Survival ModePredictedRepeated

What is magnitude comparator? Design a two-bit comparator circuit using logic gates.

Answer: A magnitude comparator compares two binary numbers and produces A>B, A=BA=B and A< B outputs. For two-bit numbers A=A1A0A=A1A0 and B=B1B0B=B1B0, let X1 = A1 XNOR B1 and X0 = A0 XNOR B0. Equality: A=B=X1X0A=B = X1 X0. Greater than: A>B =A1B1′+X1A0B0′A1 B1' + X1 A0 B0'. Less than: A< B=A1′B1+X1A0′B0B = A1' B1 + X1 A0' B0. Circuit: generate X1 and X0 with XNOR gates; feed them into AND gates with the appropriate bit comparisons; OR the two product terms for each of the greater and less outputs. These equations come directly from comparing the most significant bit first and using the less significant bit only when the MSBs are equal.

Comparing two bit patterns. A magnitude comparator is a combinational circuit that compares two binary numbers and produces outputs indicating whether one is greater than, equal to or less than the other. It has no memory: the result depends only on the present input values. For a single bit comparison, the greater output is A and not B, the equality output is the exclusive NOR of A and B, and the less output is not A and B. For two bit numbers A one A zero and B one B zero, comparison starts with the most significant bit. If A one is one and B one is zero, A is greater regardless of the lower bits. If A one is zero and B one is one, A is less. Only when the most significant bits are equal does the circuit inspect the least significant bits using the single bit equations. The equality output is one when both corresponding bits are equal, which is the AND of the two exclusive NOR results. The greater output is the OR of the term for a higher most significant bit and the term where the most significant bits are equal but A zero exceeds B zero. The less output is formed symmetrically. Cascading inputs allow several comparator chips to be connected for wider words by passing the result of lower order bits to the next stage. A good answer defines the device, gives the truth relationship for each bit position, derives the three output equations and draws the gate level circuit. Mentioning that comparison is central to sorting, branch decisions in processors and threshold detection shows why the circuit matters. A table of representative input pairs and outputs makes the behaviour immediately clear.

A=A1A0A=A1A0
B=B1B0B=B1B0
A=B=X1X0A=B = X1 X0
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • X1=A1 XNOR B1; X0=A0 XNOR B0.
  • A=B = X1X0.
  • A>B=A1B1'+X1A0B0'; A<B=A1'B1+X1A0'B0.
Q4b7MUnit 2 — circuit realization using Multiplexers and decoders
Core Concept

Implement the following Boolean function using 4:1 MUX: F(A,B,C,D)=∑m(0,1,3,4,7,8,9,11,14,15)F(A, B, C, D) = \sum m(0, 1, 3, 4, 7, 8, 9, 11, 14, 15).

Answer: Choose A and B as the MUX select lines. For each AB combination, list the minterms over C,D: AB=00AB=00 includes m0,m1,m3, so I0=C′+D;AB=01I0 = C' + D; AB=01 includes m4,m7, so I1=CD+C′D′=CI1 = CD + C'D' = C XNOR D;AB=10D; AB=10 includes m8,m9,m11, so I2=C′+D;AB=11I2 = C' + D; AB=11 includes m14,m15, so I3 = C. Thus connect S1=A,S0=BS1=A, S0=B and feed the data inputs with I0=C′+D,I1=CI0=C'+D, I1=C XNOR D,I2=C′+D,I3=CD, I2=C'+D, I3=C. The MUX output is F. Verification: for AB=00AB=00 and CD=10,I0=0CD=10, I0=0 (minterm 2 absent); for AB=11AB=11 and CD=00,I3=0CD=00, I3=0 (minterm 12 absent), matching the given list.

Selecting one of many inputs. A multiplexer, or data selector, is a combinational circuit that connects one of several data inputs to a single output according to the value of select lines. For N data inputs, log⁡\log base two of N select lines are needed. A four to one multiplexer has four inputs D zero to D three, two selects S one and S zero, and one output. Its output equation is a sum of four product terms, each term being one data input multiplied by the appropriate combination of true or complemented selects. A sixteen to one multiplexer needs four select lines. It can be built from five four to one multiplexers: four first level devices each handle four data inputs using the lower two select lines, and a fifth device selects among their four outputs using the upper two select lines. This tree structure generalises to any size. Multiplexers also realise arbitrary Boolean functions. To implement a function of four variables with a four to one multiplexer, choose two variables as selects and express the function in terms of the remaining two variables for each select combination. The data inputs are then constants or simple functions of those remaining variables, obtained from a Shannon expansion or a subdivision of the truth table. A good answer explains the operation with the output equation, shows the hierarchical construction and works through the function implementation by deriving each data input. Mentioning that multiplexers are used in data routing, bus selection and logic implementation, and that they reduce wiring compared with independent gates, gives the engineering context. A note that demultiplexers perform the reverse operation completes the basic vocabulary.

I0=C′+D;AB=01I0 = C' + D; AB=01
I1=CD+C′D′=CI1 = CD + C'D' = C
D;AB=10D; AB=10
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • Use A,B as selects; form truth table of C,D for each AB.
  • I0=C'+D; I1=C XNOR D; I2=C'+D; I3=C.
  • MUX output equals the given minterm set.
Q5a7MUnit 3 — Flip flop conversion
Core Concept

Draw JK flip-flop and write the characteristic table and characteristic equation for it. Explain how will you convert it into T flip-flop.

Answer: Characteristic table of JK FF: J K Q -> Q+ : 0 0 Q -> Q (hold); 0 1 X -> 0 (reset); 1 0 X -> 1 (set); 11Q→Q′1 1 Q \rightarrow Q' (toggle). Characteristic equation: Q+ =JQ′+K′QJ Q' + K' Q. To convert JK to T, connect J = K = T. Then Q+ =TQ′+T′Q=TT Q' + T' Q = T XOR Q, which is the T FF behavior: T=0T=0 holds, T=1T=1 toggles. The excitation table is obtained from the characteristic table: to keep state, J=0,K=XJ=0,K=X (if Q=0) or J=X,K=0J=X,K=0 (if Q=1) to set, J=1,K=XJ=1,K=X; to reset, J=X,K=1J=X,K=1; to toggle, J=1,K=1J=1,K=1. Circuit: tie the T input to both J and K of the JK flip-flop.

Converting a J K flip flop into a T flip flop. A J K flip flop has two control inputs and a characteristic equation that defines the next state. A T flip flop has one control input: when T is zero the output holds, and when T is one the output toggles. To convert J K into T, we compare the two characteristic equations and choose J and K as functions of T so that the J K device reproduces the T behaviour for every present state. The T flip flop equation is the exclusive OR of T and the present output Q, which expands to T times the complement of Q plus the complement of T times Q. The J K equation is J times the complement of Q plus the complement of K times Q. Matching coefficients gives J equal to T and K equal to T. Therefore the conversion is simply to connect the T input to both the J and K inputs of the J K flip flop. When T is zero, J and K are zero, so the device holds. When T is one, J and K are one, so the device toggles. A good answer draws the J K symbol with T tied to both inputs, writes the characteristic table for T and the corresponding J K input combinations, and verifies the four cases. Mentioning that other conversions follow the same method, namely write the target equation, write the source equation and solve for the source inputs, gives a general technique. A note that conversion is useful because a universal flip flop can replace several dedicated types in inventory or in a programmable device shows the practical purpose, while keeping the core answer focused on the derivation.

TQ′+T′Q=TT Q' + T' Q = T
J=0,K=XJ=0,K=X
J=X,K=0J=X,K=0
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • JK table: hold, reset, set, toggle for J,K = 00,01,10,11.
  • Q+ = JQ' + K'Q.
  • T conversion: J=K=T, giving Q+ = T XOR Q.
Q5b7MUnit 3 — Universal shift register
Core Concept

With the help of neat sketch, explain the operation of 4-bit universal shift register.

Answer: A 4-bit universal shift register has four D flip-flops Q3,Q2,Q1,Q0, serial inputs SinS_{in} (shift right) and S_in' (shift left), four parallel inputs P3-P0, and mode inputs S1,S0. A 4-to-1 mux before each FF selects its next input: S1S0=00S1S0=00 hold (Qi);01(Q_{i}); 01 shift right (Q_{i+1} with Q3=S_in); 10 shift left (Q_{i-1} with Q0=S_in_left); 11 parallel load (Pi)(P_{i}). All FFs share one clock, and a clear resets them. It is used for serial-parallel conversion, data buffering and arithmetic shifts. Example loading 1011 and shifting right gives 0101 after one clock (with S_in=0)

The four bit universal shift register. A shift register is a chain of flip flops that moves stored bits from one stage to the next on each clock edge. A universal shift register can shift left, shift right, load data in parallel and hold its contents, which makes it useful for serial to parallel conversion, parallel to serial conversion and temporary storage. A four bit design has four flip flops and two mode inputs that select one of four operations. Four multiplexers, one in front of each flip flop, choose the source of the next bit. In hold mode each multiplexer selects the flip flop's own output, so the stored word is unchanged. In shift right mode each stage takes the output of its left neighbour, the leftmost stage takes the serial input, and the rightmost output becomes the serial output. Shift left mode moves data in the opposite direction. Parallel load mode routes each external data input directly into its corresponding flip flop, so all four bits are captured on the same clock edge. A good answer draws the block diagram with four cells, the shared clock, the mode inputs and the serial and parallel connections, then explains each mode with a short bit pattern example such as shifting one zero one one right. Mentioning that all transfers are synchronous because every flip flop shares the same clock distinguishes this from ripple structures. A note that bidirectional portions and tri state outputs allow several registers to share a bus connects the circuit to processor datapaths.

S1S0=00S1S0=00
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • Four FFs plus a 4-to-1 mux per stage.
  • Modes: hold, shift right, shift left, parallel load.
  • Used for serial-parallel conversion and temporary storage.
Q6a7MUnit 4 — TTL NAND gate
Core Concept

Describe the construction of totem pole TTL NOR gate.

Answer: A totem-pole TTL output uses an upper pull-up transistor and a lower pull-down transistor in series between VCCV_{CC} and ground, so only one conducts at a time, giving low output impedance in both states. To make a TTL NOR gate, the input stage uses multiple transistors connected in parallel (rather than the multi-emitter transistor used in a NAND) so that any HIGH input turns the lower pull-down transistor ON. For NOR, output Y=(A+B)′Y = (A+B)' is LOW if either input is HIGH and HIGH only when all inputs are LOW. The phase-splitter drives the totem-pole pair; a diode prevents both output transistors from conducting simultaneously and limits shoot-through current.

Constructing a TTL NOR gate. A totem pole output uses two transistors between the supply and ground, one as a pull up device and one as a pull down device. Only one is normally active, so the output is actively driven to either logic level. In a complementary metal oxide semiconductor inverter this pairing is natural; in transistor transistor logic the arrangement uses a phase splitter to control the two bipolar output transistors, with a diode to prevent simultaneous conduction and reduce crossover current. To construct a TTL NOR gate, the input stage must detect whether any input is high, because the NOR output is low when at least one input is high. This is achieved with parallel input transistors feeding a common phase splitter node rather than the multi emitter series arrangement used in a NAND gate. If any input is high, current is diverted into the phase splitter, the pull down output transistor turns on and the output goes low. Only when all inputs are low does the phase splitter turn off and the pull up transistor drive the output high. The truth table therefore matches the NOR function. A good answer describes the construction, draws the input and output stages, and traces the output for each input combination. It should mention fan out, noise margin and propagation delay as specifications affected by the output stage, and explain that an active pull up gives faster rising edges than a resistive load. Mentioning that open collector variants omit the upper transistor and need an external pull up resistor shows an alternative when wired logic is required.

Y=(A+B)′Y = (A+B)'
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • Totem pole: active pull-up and pull-down, only one ON at a time.
  • NOR input stage uses parallel transistors; any HIGH input pulls output LOW.
  • Output is HIGH only when all inputs are LOW.
Q6b7MUnit 4 — and logic implementation using programmable devices (Siemens EDA Precision RTL / Cadence Genus / Synopsys Design Compiler)
Core Concept

Design a 3-bit binary to Gray code converter using PLA.

Answer: Let the binary input be B2B1B0 and Gray output G2G1G0. Gray conversion rules are G2=B2,G1=B2G2=B2, G1=B2 XOR B1=B2B1′+B2′B1,G0=B1B1 = B2B1' + B2'B1, G0=B1 XOR B0=B1B0′+B1′B0.PLAB0 = B1B0' + B1'B0. PLA programming: the AND plane generates product terms P1=B2,P2=B2′B1,P3=B2B1′,P4=B1′B0,P5=B1B0′P1=B2, P2=B2'B1, P3=B2B1', P4=B1'B0, P5=B1B0'. The OR plane connects G2=P1,G1=P2+P3G2=P1, G1=P2+P3 and G0=P4+P5G0=P4+P5. The truth table check: 000->000, 001->001, 010->011, 011->010, 110->101, 111->100. Thus only five product terms and three OR sums are needed.

Implementing a converter with a PLA. A programmable logic array is a structured way to implement a set of Boolean functions with shared product terms. It contains a programmable AND plane that forms product terms from the inputs and their complements, and a programmable OR plane that connects selected product terms to each output. A three bit binary to Gray code converter maps an input word to an output word in which adjacent input values differ in only one output bit. The most significant Gray bit equals the most significant binary bit. The next Gray bit is the exclusive OR of the two most significant binary bits. The least significant Gray bit is the exclusive OR of the second and third binary bits. Each exclusive OR expands into two product terms, one with the first input complemented and the second true, and one with the first true and the second complemented. The converter therefore needs only a handful of product terms, and none for the most significant output beyond the direct connection. A programmable logic array implements the converter by programming those product term links in the AND plane and then routing them to the appropriate outputs in the OR plane. A good answer writes the truth table, derives the three output equations, draws the programmable logic array diagram with inputs, product term rows and output columns, and marks the connections. Mentioning that Gray code reduces transition errors in encoders and position sensors because only one bit changes between adjacent codes explains why the converter is useful. A note that the programmable logic array allows all three outputs to share the same product term rows makes the design efficient.

G2=B2,G1=B2G2=B2, G1=B2
B1=B2B1′+B2′B1,G0=B1B1 = B2B1' + B2'B1, G0=B1
B0=B1B0′+B1′B0.PLAB0 = B1B0' + B1'B0. PLA
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • G2=B2, G1=B2 XOR B1, G0=B1 XOR B0.
  • AND plane products: B2, B2'B1, B2B1', B1'B0, B1B0'.
  • OR plane: G2=P1; G1=P2+P3; G0=P4+P5.
Q7a7MUnit 5 — Analog-to-digital converters (ADC): Specifications of ADCs
Core Concept

An 8-bit ADC has a reference voltage of 5 V. (a) Calculate the resolution (b) Determine the quantization error (c) Find the digital output for an input of 2.6 V.

Answer: For an 8-bit ADC, number of levels =28=2562^{8} = 256. (a) Step size =Vref/28=5/256=0.019531V=19.53 mVV_{ref}/2^{8} = 5/256 = 0.019531 V = 19.53\ \text{mV} (0.3906% of full scale). (b) Maximum quantization error =±1/2\pm 1/2 LSB =±9.77 mV\pm 9.77\ \text{mV}. (c) Digital code =Vin/V_{in} / step size =2.6/0.019531=133.122.6/0.019531 = 133.12, so the nearest integer code is 133. Binary 133=100001012133 = 10000101_{2}. (If truncation is used, code 133 also results, with 0.12 LSB error.)

Analogue to digital conversion and resolution. An analogue to digital converter samples a continuous voltage and produces a binary code representing it. For an N bit converter with reference voltage V ref, the number of quantisation levels is two to the N. The resolution, often called the size of one least significant bit, is V ref divided by two to the N. An eight bit converter with a five volt reference therefore has two hundred and fifty six levels and a step of about nineteen point five millivolts. Quantisation error is the difference between the exact input and the represented level; for ideal rounding it lies between minus half a least significant bit and plus half a least significant bit. To find the digital output for an input, divide the input by the step size and round to the nearest integer, then express the integer in binary. For a ten bit converter with a step of ten millivolts, full scale output is the largest code times the step, which is one thousand and twenty three times ten millivolts, or ten point two three volts. Percentage resolution is the step size divided by full scale times one hundred, or equivalently one over two to the N minus one times one hundred. In a successive approximation converter, conversion time equals the number of bits times the clock period, because one comparison is made per bit. A good answer defines resolution, quantisation error and conversion time, performs each calculation with units and states the assumptions about rounding. Mentioning that increasing resolution improves accuracy but slows conversion and increases cost shows the practical tradeoff.

Result: resolution 19.53 mV, error ±9.77 mV\pm 9.77\ \text{mV}, output 10000101₂.

28=2562^{8} = 256
Vref/28=5/256=0.019531V=19.53 mVV_{ref}/2^{8} = 5/256 = 0.019531 V = 19.53\ \text{mV}
2.6/0.019531=133.122.6/0.019531 = 133.12
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • Step size = 5/256 = 19.53 mV.
  • Maximum quantization error = half an LSB = 9.77 mV.
  • 2.6 V gives code 133 = 10000101₂.
Q7b7MUnit 5 — R-2R ladder
Predicted

What is the advantage of R/2R ladder DACs over those that use binary weighted resistors? A 10-bit DAC has a step size of 10 mV. Determine the full-scale output voltage and the percentage resolution.

Answer: Advantages of R-2R ladder: it uses only two resistor values (R and 2R), which are easy to match accurately on an IC; the impedance seen at each node is independent of the digital code; it avoids the huge range of resistor values needed in binary-weighted DACs (e.g. 292^{9} R), improving linearity and monotonicity. Given step size = 10 mV and n=10n=10, full-scale output for code 1023 is 1023 × 10 mV = 10.23 V. Percentage resolution =(1/1023)×100%≈(1/1023)\times 100\% \approx 0.0978% (or 1/1024=1/1024 = 0.0977% if defined relative to 2^n)

The R two R ladder digital to analogue converter. A digital to analogue converter turns a binary word into a proportional analogue voltage or current. The R two R ladder is preferred over a binary weighted resistor network because it uses only two resistor values. The network is built from repeating sections: a series resistor R along the ladder and a shunt resistor two R to ground at each node. Looking into any node toward the termination, the equivalent resistance is two R regardless of position, because the parallel combination of two R with the rest of the ladder repeatedly reduces to R. This self similar property means each bit contributes a current that is exactly half the contribution of the more significant bit. The ladder is terminated at one end by two R, which preserves the ratio. In a voltage mode ladder, switches connect each bit either to the reference voltage or to ground, and the output is taken from the terminated end through a buffer. In a current mode ladder, switches steer the bit currents to the output or to ground, and a transimpedance amplifier converts the summed current to a voltage. The output is proportional to the digital code divided by two to the number of bits times the reference voltage. A good answer explains the ladder structure, shows why the resistance looking in is constant, derives the halving of bit weights and gives the output equation. Mentioning that using only R and two R avoids the huge spread of resistor values needed in binary weighted networks, which improves accuracy and manufacturability, is the central advantage. A note that an output buffer prevents the load from changing the ladder ratios completes the practical discussion.

1/1024=1/1024 =
Tip from Examiner: State the circuit or conversion principle, show the table, equation or calculation with symbols defined, and support the answer with a labelled diagram or waveform where required.

Key Points

  • Only R and 2R are needed; easy to fabricate and match.
  • Constant impedance and good monotonicity.
  • V_FS = 10.23 V; percentage resolution ≈ 0.0978%.