Top Banner Ad
BEC302 · 2024-2522 Questions

DIGITAL SYSTEM DESIGN — 2024-25

Section A

2 Marks Each · 7 questions
Q1a2MUnit 3 — Building blocks like S-R
Survival ModePredictedRepeated

What is race around condition in JK flip-flop?

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
Q1b2MUnit 3 — Building blocks like S-R
Core Concept

Distinguish between Latch and Flip Flop.

A latch is level sensitive and changes while its enable input is active. A flip flop is edge triggered and samples inputs only at a clock transition. Flip flops therefore give predictable timing and are preferred in synchronous designs, while latches are simpler but can be transparent.

Key Points

  • Latch is level sensitive
  • Flip flop is edge triggered
  • Flip flops give predictable timing
Q1c2MUnit 1 — Number Systems
Survival ModePredicted

The solution to the quadratic equation k2−11k+22=0k^2 - 11k + 22 = 0 are x=3x=3 and x=6x=6. What is the base of the number system?

The unknown base is eight. Coefficient symbols must be read in that base, so eleven means nine decimal and twenty two means eighteen decimal. The equation becomes k squared minus nine k plus eighteen equals zero, whose roots are three and six. Hence the number system is octal.

Key Points

  • Base is eight
  • Coefficients use that base
  • Roots three and six
Q1d2MUnit 2 — encoder
Core Concept

Differentiate between encoder and decoder.

An encoder converts one active input among many into a binary code, while a decoder converts a binary code into one active output among many. An encoder compresses information; a decoder expands it. Priority encoders handle several simultaneous inputs by choosing the highest priority one.

Key Points

  • Encoder compresses inputs
  • Decoder expands a code
  • Priority resolves multiple inputs
Q1e2MUnit 4 — concept of programmable logic devices such as FPGA
Survival ModePredicted

What is PLD?

A programmable logic device is a chip whose internal logic connections can be configured after manufacture. It implements chosen Boolean functions without a custom integrated circuit. Examples include programmable read only memory, programmable logic arrays and field programmable gate arrays.

Key Points

  • Configurable after manufacture
  • Implements chosen logic
  • Includes PLAs and FPGAs
Q1f2MUnit 4 — CMOS families and their interfacing
Core Concept

Implement 2- input NAND gate by using CMOS inverter.

To make a two input NAND gate from complementary metal oxide semiconductor inverters, first build an AND stage and then invert its output. A complementary metal oxide semiconductor NAND uses parallel p devices and series n devices. Cascading a complementary metal oxide semiconductor inverter gives the required NAND behaviour.

Key Points

  • CMOS NAND uses series and parallel devices
  • Inverter completes negation
  • Gives two input NAND function
Q1g2MUnit 4 — noise margin
Core Concept

Describe figure of merit and noise Immunity of TTL and CMOS.

Figure of merit combines speed and power, often as the delay power product, so lower values are better. Noise immunity is the ability to reject unwanted voltage, measured by noise margin. Complementary metal oxide semiconductor has excellent noise immunity and low power; emitter coupled logic is fast but power hungry.

Key Points

  • Delay power product
  • Noise margin measures immunity
  • CMOS low power, ECL fast

Section B

7 Marks Each · 5 questions
Q2a7MUnit 1 — Number Systems
Predicted

Convert the following in their corresponding base: (i) (ABC)16=()2(ABC)_{16} = ()_2 (ii) (100010100.110101)2=()8(100010100.110101)_2 = ()_8 (iii) (2230)4=()3(2230)_4 = ()_3

Answer: (i) Each hex digit becomes 4 bits: A=1010,B=1011,C=1100A=1010, B=1011, C=1100, so (ABC)16=1010101111002(ABC)_{16} = 101010111100_{2}. (ii) Group binary bits in threes from the binary point: 100 010 100 . 110 101 = 4 2 4 . 6 5, so (100010100.110101)2=424.658(100010100.110101)_{2} = 424.65_{8}. (iii) Convert to decimal: 2×43+2×42+3×4+0=2\times 4^{3} + 2\times 4^{2} + 3\times 4 + 0 = 128+32+12 = 172. Now to base 3:172=2×81+0×27+1×9+0×3+13: 172 = 2\times 81 + 0\times 27 + 1\times 9 + 0\times 3 + 1, so (2230)4=201013(2230)_{4} = 20101_{3}.

Converting between number bases. Positional number systems differ only in their radix, which is the number of distinct digit symbols and the multiplier of each place. Decimal uses powers of ten, binary uses powers of two, octal uses powers of eight and hexadecimal uses powers of sixteen with symbols ten through fifteen written as A through F. To convert an integer from decimal to another base, repeatedly divide by the target radix and record the remainders in reverse order. To convert a fraction, repeatedly multiply the fractional part by the target radix and record the integer parts in forward order until the desired precision is reached. Conversion from binary to octal groups bits in threes from the binary point, and conversion from binary to hexadecimal groups bits in fours, because eight and sixteen are powers of two. The reverse conversion expands each octal digit into three bits or each hexadecimal digit into four bits. Converting between arbitrary bases is most safely done through decimal: expand each digit times its place value, sum the result, then use repeated division in the new base. When a calculation involves an unknown radix, the coefficients themselves must be interpreted in that radix before solving, which is why decimal coefficient values cannot be assumed. A good answer shows each conversion with the place value expansion or the division sequence, states the radix of every intermediate result and gives the final answer with the correct base subscript. Checking by expanding the result back to decimal catches arithmetic slips. Mentioning that negative numbers are handled separately by sign magnitude, ones complement or twos complement shows awareness of the limits of unsigned conversion.

A=1010,B=1011,C=1100A=1010, B=1011, C=1100
(ABC)16=1010101111002(ABC)_{16} = 101010111100_{2}
(100010100.110101)2=424.658(100010100.110101)_{2} = 424.65_{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

  • Hex to binary: one hex digit = four bits.
  • Binary to octal: group bits in threes.
  • (ABC)_16=101010111100_2; 424.65_8; 20101_3.
Q2b7MUnit 2 — multiplexers
Predicted

What is multiplexer? Design 16:1 multiplexer using 4:1 multiplexer.

Answer: A multiplexer selects one of many inputs using select lines. A 16:1 MUX has 16 data inputs D0-D15 and four selects S3,S2,S1,S0. Build it with five 4:1 MUXes: four first-level MUXes each use S1,S0 to select one of four data lines - M0 outputs D0-D3, M1 outputs D4-D7, M2 outputs D8-D11, M3 outputs D12-D15. The fifth MUX uses S3,S2 to select one of these four group outputs. The output is Y=DiY=D_{i} where i=(S3S2S1S0)2i=(S3S2S1S0)_{2}. Enable pins can be tied together or used for expansion.

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.

Y=DiY=D_{i}
i=(S3S2S1S0)2i=(S3S2S1S0)_{2}
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

  • 16:1 MUX needs four select bits.
  • Use four 4:1 MUXes in the first level and one in the second.
  • First level selects S1S0; second level selects S3S2.
Q2c7MUnit 3 — Building blocks like S-R
Predicted

Explain SR, D and JK flip flop in detail.

Answer: SR flip-flop: with S=R=0S=R=0 the state holds; S=1,R=0S=1,R=0 sets Q=1;S=0,R=1Q=1; S=0,R=1 resets Q=0;S=R=1Q=0; S=R=1 is forbidden (indeterminate after inputs return to 0). Characteristic equation Q+ =S+R′QS + R'Q with constraint SR=0.DSR=0. D flip-flop: has one data input D; Q+ = D at the active clock edge, storing the sampled bit. It eliminates the forbidden condition and is used in registers. JK flip-flop: J=K=0J=K=0 hold; J=1,K=0J=1,K=0 set; J=0,K=1J=0,K=1 reset; J=K=1J=K=1 toggle. Its characteristic equation is Q+ =JQ′+K′QJ Q' + K' Q. JK removes the SR forbidden state and is widely used in counters; race-around is avoided by edge triggering. All three are 1-bit storage elements; D and JK are edge triggered in practical synchronous designs.

Storage elements for sequential logic. A flip flop is a bistable circuit that stores one bit of information. Unlike combinational logic, its output depends on both present inputs and past history, which is why it is the basic building block of sequential systems. The S R flip flop has set and reset inputs. Setting makes the output one, resetting makes it zero, and holding both inactive preserves the previous state. The combination that asserts both inputs is forbidden because it forces complementary outputs to the same value and leads to an unpredictable state when the inputs are released. The D flip flop removes this problem by using a single data input. On the active clock edge the output copies the data input, and between edges it holds that value. The J K flip flop behaves like an S R device but defines the previously forbidden combination as a toggle operation. Its characteristic equation expresses the next output as J times the complement of the present output plus the complement of K times the present output. The T flip flop toggles its output whenever its input is one and holds it when the input is zero. Edge triggered devices sample inputs only at a clock transition, which makes timing predictable and avoids the race around problem of level sensitive designs. A good answer describes each device with its truth or excitation table, explains the characteristic behaviour and gives the characteristic equations where appropriate. Mentioning setup and hold time, which specify how long data must be stable around the clock edge, relates the abstract tables to real hardware. A comparison of edge triggered and level triggered operation shows why modern synchronous designs prefer edge triggering.

S=1,R=0S=1,R=0
Q=1;S=0,R=1Q=1; S=0,R=1
Q=0;S=R=1Q=0; S=R=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

  • SR: set/reset with forbidden S=R=1; Q+=S+R'Q.
  • D: Q+=D, no invalid input.
  • JK: toggles for J=K=1; Q+=JQ'+K'Q.
Q2d7MUnit 4 — noise margin
Survival Mode

Write a short notes on: (i) Fan-in (ii) Propagation delay (iii) Noise margin

Answer: (i) Fan-in is the number of input terminals a gate accepts, e.g. a 4-input NAND has fan-in 4. It affects input capacitance and switching speed. (ii) Propagation delay is the time between a 50% transition at an input and the corresponding 50% transition at the output; tpd=(tPHL+tPLH)/2t_{pd} = (t_{PHL} + t_{PLH})/2. It limits maximum clock frequency f_max ≈ 1/(t_pd × number of gate delays in the critical path). (iii) Noise margin is the allowable noise voltage without a logic error: NMH=VOH(min⁡)−VIH(min⁡)NM_{H} = V_{OH}(\min)-V_{IH}(\min) and NML=VIL(max⁡)−VOL(max⁡)NM_{L} = V_{IL}(\max)-V_{OL}(\max). Larger noise margin gives better noise immunity. These three parameters determine speed, loading capability and reliability of a logic family.

Fan in, delay and noise margin. Digital integrated circuits are characterised by parameters that determine whether a design will work reliably at the intended speed and load. Fan in is the number of input terminals a gate provides. A gate with a larger fan in implements a wider function but usually has greater input capacitance and a longer delay, so designers often cascade smaller gates instead. Propagation delay is the time between a fifty percent transition at an input and the corresponding fifty percent transition at the output. It is specified separately for output rising and falling because the pull up and pull down paths can have different strengths. The maximum clock frequency of a sequential circuit is limited by the delay through the combinational logic between registers plus setup time. Noise margin is the tolerance to unwanted voltage excursions. For a high output driving a high input it is the minimum high output voltage minus the minimum high input voltage. For a low output driving a low input it is the maximum low input voltage minus the maximum low output voltage. Larger noise margins give greater immunity to crosstalk and supply ripple. Fan out is the number of standard inputs one output can drive while maintaining valid levels, and it is limited by input and output currents. A good answer defines each term, gives its units or formula where relevant and explains how it affects selection of a logic family. Mentioning that propagation delay and power dissipation are combined in the speed power product shows how families are compared. A note that unused inputs must be tied to a defined level prevents intermittent faults.

tpd=(tPHL+tPLH)/2t_{pd} = (t_{PHL} + t_{PLH})/2
NMH=VOH(min⁡)−VIH(min⁡)NM_{H} = V_{OH}(\min)-V_{IH}(\min)
NML=VIL(max⁡)−VOL(max⁡)NM_{L} = V_{IL}(\max)-V_{OL}(\max)
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

  • Fan-in = number of inputs to a gate.
  • t_pd = average of t_PHL and t_PLH; sets maximum speed.
  • Noise margins are the voltage gaps between output and input logic levels.
Q2e7MUnit 4 — concept of programmable logic devices such as FPGA
Core Concept

Differentiate between PROM, PLA and PAL.

Answer:

Device AND array OR array Use
PROM Fixed (decoder produces all minterms) Programmable Implement functions as sum of minterms; also memory
PLA Programmable Programmable Most flexible; shared product terms, used for complex logic
PAL Programmable Fixed Fast, simple, widely used for glue logic
PROM wastes area because all 2n2^{n} minterms exist; PLA allows arbitrary product terms and their OR combinations; PAL fixes the OR connections, giving predictable speed. All three are programmed by fuses or non-volatile switches.

PROM, PLA and PAL compared. These three programmable logic families differ in which parts of their AND OR structure can be configured. A programmable read only memory contains a fixed AND array that acts as a decoder and generates every possible minterm of the inputs. Its OR array is programmable, so each output can select any subset of minterms. This is very flexible for truth table implementation but wasteful when only a few minterms are needed, because all minterms are generated regardless. A programmable logic array makes both the AND array and the OR array programmable. Product terms are formed only as needed and can be shared by several outputs, which gives efficient implementation of complex functions with many common terms. The cost is extra programmable links in both planes, which increases delay. A programmable array logic device has a programmable AND array but a fixed OR array. Each output is permanently connected to a fixed group of product terms, so it is faster and cheaper than a programmable logic array but less flexible. A good answer compares the three in a table with columns for AND array, OR array, speed, flexibility and typical use, then gives an example function to show how each would realise it. Mentioning that all three are programmed by blowing fuses or using electrically programmable switches connects the architecture to physical implementation. A note that field programmable gate arrays use lookup tables rather than programmable AND OR planes explains how modern programmable logic differs while serving the same purpose.

2n2^{n}
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

  • PROM: fixed AND, programmable OR.
  • PLA: both arrays programmable.
  • PAL: programmable AND, fixed OR.

Section C

7 Marks Each · 10 questions
Q3a7MUnit 1 — Karnaugh maps up to 5 variables
Predicted

Minimize the logic function using K-MAP Method F(A,B,C,D,E)=∑m(8,9,10,11,13,15,16,18,21,24,25,26,27,30,31)F(A,B,C,D,E) = \sum m(8,9,10,11,13,15,16,18,21,24,25,26,27,30,31)

Answer: Use two 4-variable K-maps, one for A=0A=0 (minterms 0-15) and one for A=1A=1 (16-31), with B,C,D,E as map variables. Select these five prime implicants: (1) BC′B C' covers 8,9,10,118,9,10,11 and 24,25,26,2724,25,26,27; (2) A′BEA' B E covers 9,11,13,159,11,13,15; (3) A B D covers 26,27,30,3126,27,30,31; (4) AC′E′A C' E' covers 16,18,24,2616,18,24,26; (5) AB′CD′EA B' C D' E covers the isolated minterm 21. Their union is exactly {8,9,10,11,13,15,16,18,21,24,25,26,27,30,31}.

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.

Result: F=BC′+A′BE+ABD+AC′E′+AB′CD′EF = B C' + A' B E + A B D + A C' E' + A B' C D' E, with A the MSB and E the LSB.

F=BC′+A′BE+ABD+AC′E′+AB′CD′EF = B C' + A' B E + A B D + A C' E' + A B' C D' E
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 two 4-variable maps for the 5-variable function.
  • Groups: BC', A'BE, ABD, AC'E', AB'CD'E.
  • All 15 minterms are covered by five product terms.
Q3b7MUnit 1 — review of Boolean algebra and Demorgans theorem
Predicted

What do you mean by Universal logic gate? Implement XOR gate using minimum number of NAND gate.

Answer: A universal gate can realize any logic function; NAND is universal because it can create NOT, AND and OR. Minimum NAND implementation of XOR uses four 2-input NAND gates: N1 = (A NAND B) =(AB)′;N2=(AB)'; N2 = (A NAND N1); N3 = (B NAND N1); Y = (N2 NAND N3). Algebraically, N2 = A(AB)A(AB)' =A(A′+B′)=AB′A(A'+B') = AB' and N3=B(A′+B′)=A′BN3 = B(A'+B') = A'B, so Y=(AB′+A′B)′′=AB′+A′B=AY = (AB' + A'B)'' = AB' + A'B = A XOR B. No fewer than four NAND gates suffice for a 2-input XOR.

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.

(AB)′;N2=(AB)'; N2 =
A(A′+B′)=AB′A(A'+B') = AB'
N3=B(A′+B′)=A′BN3 = B(A'+B') = 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

  • NAND is universal: NOT, AND, OR derived from it.
  • Four NAND gates give XOR: N1, N2, N3, final NAND.
  • Y = AB' + A'B = A XOR B.
Q4a7MUnit 2 — encoder
Core Concept

Design 4 bit priority Encoder.

Answer: A 4-bit priority encoder has inputs I0-I3 and outputs A1,A0 plus a valid flag V. Highest index has priority. The truth table gives: if I3=1I3=1, output 11; else if I2=1I2=1, output 10; else if I1=1I1=1, output 01; else if I0=1I0=1, output 00; if no input is 1,V=01, V=0. Boolean expressions: A1=I3+I2;A0=I3+I2′I1;V=I3+I2+I1+I0A1 = I3 + I2; A0 = I3 + I2'I1; V = I3 + I2 + I1 + I0. Circuit: one OR gate for A1, one inverter on I2, two ANDs and one OR for A0, and a four-input OR for V. If an enable input is included, all terms are ANDed with it.

Encoding and priority resolution. An encoder performs the reverse operation of a decoder: it takes one active input among many and produces a binary code representing that input. A simple four to two encoder has four inputs and two outputs, so exactly one input is expected to be active at a time. Its outputs are the OR of the input lines whose index has a one in the corresponding bit position. A priority encoder removes the restriction that only one input may be active. If several inputs are asserted, it produces the code of the highest priority input and ignores the rest. A four bit priority encoder has eight inputs, three binary outputs and usually a valid output that indicates whether any input is asserted. Priority can be fixed, with the highest indexed input winning, or programmable. The logic is derived by writing a table in which each row gives the output code for the highest asserted input and then simplifying each output bit as a sum of products. A valid output is the OR of all inputs. Priority encoders are used in interrupt controllers, keyboard scanning, arbitration and any situation where simultaneous requests must be ordered. A good answer defines encoding, contrasts ordinary and priority encoders, builds the truth table for the specified bit width, derives the output equations and explains the role of the valid signal. Mentioning that a decoder with an enable input and a priority encoder often appear together in address decoding and input handling shows the relationship between the two circuits. A note that the output code is binary while the inputs are one hot makes the conversion clear.

1,V=01, V=0
A1=I3+I2;A0=I3+I2′I1;V=I3+I2+I1+I0A1 = I3 + I2; A0 = I3 + I2'I1; V = I3 + I2 + I1 + I0
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

  • Highest-numbered active input wins.
  • A1=I3+I2; A0=I3+I2'I1.
  • V=I3+I2+I1+I0 indicates a valid request.
Q4b7MUnit 2 — MSI devices like comparators
Survival ModePredictedRepeated

What is a comparator? Design and implement a 2-bit comparator.

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.
Q5a7MUnit 3 — Johnson counter
Core Concept

Explain 3-bit Johnson counter with circuit diagram. Also draw its waveform and show that this counter can be used as Multiphase clock generator for controlling the specific light pattern of LED's.

Answer: A 3-bit Johnson (twisted-ring) counter uses three D flip-flops in a shift chain with the complement of the last output fed into the first: Q0+ =Q2′Q2', Q1+ = Q0, Q2+ = Q1. Starting from 000 the sequence is 000 -> 100 -> 110 -> 111 -> 011 -> 001 -> 000, a six-state (mod-6) sequence. Each output is a square wave of frequency fclock/6f_{clock}/6 with 50% duty cycle and the three waveforms are phase-shifted by 60 degrees, giving multiphase clocks. Connecting LEDs to Q0,Q1,Q2 produces a chasing light pattern: one LED on, two on, three on, then progressively off. It uses fewer states than a ring counter and has built-in decoding simplicity.

The Johnson counter and multiphase clocks. A Johnson counter, also called a twisted ring counter, is formed by connecting the complemented output of the last flip flop in a shift register back to the input of the first. All flip flops share a common clock. Starting from all zeros, each clock shifts a one through the chain until all bits are one, then shifts zeros back through until the register returns to all zeros. For an N bit Johnson counter the sequence has two N distinct states, twice the number of a simple ring counter, and each output bit is a square wave with a period of two N clocks. The outputs are phase shifted relative to one another by one clock period, which makes the counter a convenient multiphase clock generator. For a three bit version the six states are zero zero zero, one zero zero, one one zero, one one one, zero one one and zero zero one before repeating. Decoding adjacent state pairs produces six non overlapping timing pulses that can drive a six step LED pattern or a six phase driver. An invalid state outside the normal sequence can be recovered by adding correction logic, because the natural sequence does not include all possible states. A good answer draws the shift register with the feedback from the complement of the last stage, lists the state sequence, sketches the waveforms and explains how the phase shifted outputs control the LED pattern. Mentioning that decoding two consecutive states avoids glitches at state boundaries shows a practical design detail. A note that the counter uses N flip flops but gives two N phases explains why it is efficient.

Q2′Q2'
fclock/6f_{clock}/6
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

  • Q0+=Q2', Q1+=Q0, Q2+=Q1.
  • Six states: 000,100,110,111,011,001.
  • Outputs are 60-degree phase-shifted multiphase clocks for LED chasers.
Q5b7MUnit 3 — Building blocks like S-R
Predicted

Prove that the characteristics equation for the complement output of JK Flip Flop is: Q(t+1)‾=J‾Q‾+K‾Q\overline{Q(t+1)} = \overline{J}\overline{Q} + \overline{K}Q

Answer: The JK characteristic equation is Q+ =JQ′+K′QJ Q' + K' Q. Complement both sides: (Q+)′=(Q+)' = (J Q′+K′Q)′=(J′+Q' + K' Q)' = (J' + Q)(K + Q') by De Morgan. Expanding gives J′K+J′Q′+KQ+QQ′=J′Q′+KQ+J′KJ'K + J'Q' + KQ + QQ' = J'Q' + KQ + J'K. The term J′KJ'K is the consensus of J′Q′J'Q' and KQ, so it is redundant (XY + X'Z + YZ = XY + X'Z) Hence the complement output equation is ∗∗(Q+)′=J′Q′+**(Q+)' = J'Q' + KQ**. Check the JK table: for J=1,K=1,Q=1,Q+=0J=1,K=1,Q=1, Q+=0 and (Q+)′=1(Q+)'=1; the derived expression gives 0 + 1·1 = 1. The printed form J′Q′+K′QJ'Q' + K'Q is inconsistent with this table (for J=K=0J=K=0 it gives 1 instead of Q') so the correct term is KQ.

Deriving the complemented JK output equation. The J K flip flop is specified by a characteristic table that gives the next state for each combination of J and K and the present state. Holding the output when both inputs are zero, resetting when J is zero and K is one, setting when J is one and K is zero, and toggling when both are one fully define the device. To obtain the equation for the complement of the next output, one groups the rows of the truth table in which that complement is one and writes the corresponding sum of products. Those rows are the hold case with J zero, K zero and present output zero, the reset case with J zero, K one and present output zero, and the toggle case with J one, K one and present output zero, plus the appropriate case with present output one. Simplifying the groups gives the complement of the next output as the complement of J times the complement of the present output plus the complement of K times the present output. This is the dual of the familiar characteristic equation for the non complemented output, which is J times the complement of Q plus the complement of K times Q. The pair of equations is consistent because in each input case exactly one output equation evaluates to one. A good answer shows the characteristic table, the grouping, the simplified expression and a verification row by row. Mentioning that the toggle case is what distinguishes J K from S R, because it defines the input combination that S R forbids, makes the derivation meaningful rather than purely algebraic. A note that complementing both sides of the original equation and applying De Morgan's theorem gives the same result provides a quick check.

(Q+)′=(Q+)' =
Q′+K′Q)′=(J′+Q' + K' Q)' = (J' +
J′K+J′Q′+KQ+QQ′=J′Q′+KQ+J′KJ'K + J'Q' + KQ + QQ' = J'Q' + KQ + J'K
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

  • Start from Q+ = JQ' + K'Q.
  • Complement and apply De Morgan: (J'+Q)(K+Q').
  • Correct result is J'Q' + KQ; the printed K'Q form does not match the JK truth table.
Q6a7MUnit 3 — Applications of Flip Flops: ripple and synchronous counters
Core Concept

Differentiate between asynchronous counter and synchronous counter? Explain the working of 4-bit Synchronous counter using suitable circuit diagram and timing diagram.

Answer: Asynchronous (ripple) counter: only the first FF gets the external clock; each later FF is clocked by the previous FF output. It is simple but has accumulated propagation delay and decoding glitches. Synchronous counter: all FFs share the same clock; logic determines which FFs toggle, giving higher speed and glitch-free decoding. For a 4-bit synchronous up-counter with outputs Q3,Q2,Q1,Q0: J0=K0=1;J1=K1=Q0;J2=K2=Q0Q1;J3=K3=Q0Q1Q2J0=K0=1; J1=K1=Q0; J2=K2=Q0Q1; J3=K3=Q0Q1Q2. The timing diagram shows Q0 dividing by 2, Q1 by 4, Q2 by 8 and Q3 by 16, all changing at the same active clock edge. The count sequence is 0000 to 1111.

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;J1=K1=Q0;J2=K2=Q0Q1;J3=K3=Q0Q1Q2J0=K0=1; J1=K1=Q0; J2=K2=Q0Q1; J3=K3=Q0Q1Q2
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

  • Ripple: clock cascades; synchronous: common clock.
  • J0=K0=1; J1=K1=Q0; J2=K2=Q0Q1; J3=K3=Q0Q1Q2.
  • Synchronous counters are faster and produce fewer glitches.
Q6b7MUnit 1 — review of Boolean algebra and Demorgans theorem
Predicted

What do you mean by Hazards? Explain the different method by which hazard can be eliminated.

Answer: A hazard is an unwanted transient pulse at a combinational output caused by unequal propagation delays when inputs change. Static-1 hazard: output should stay 1 but momentarily goes 0. Static-0 hazard: output should stay 0 but momentarily goes 1. Functional hazard: output changes more than once when one input changes. Dynamic hazards occur in multi-level circuits. Removal methods: (1) add redundancy using the consensus term - if F=AB+A′CF = AB + A'C, add BC so overlapping groups bridge the transition; (2) group all adjacent 1s (or 0s) correctly in the K-map, including wrapping, so no single variable change leaves a group; (3) use hazard-free two-level SOP/POSSOP/POS designs; (4) strobe/enable the output after delays settle, or use synchronous edge-triggered capture.

Hazards in combinational logic. A hazard is an unwanted transient change at the output of a combinational circuit caused by unequal propagation delays through different paths. It appears as a brief spike when an input changes, even though the steady state Boolean function says the output should not change. A static hazard occurs when the output should remain at one value but momentarily switches to the other. A dynamic hazard occurs when the output should change once but changes several times before settling. Hazards arise because an input and its complement pass through different numbers of gates, so one arrives before the other, or because two product terms that should cover a transition do not share a common term. Static ones hazards are detected from a Karnaugh map by finding pairs of adjacent ones that are covered by different groups with no common overlap. The cure is to add a redundant consensus term that covers the gap, often called a hazard covering term. Static zero hazards are the dual problem in product of sums realisations and are removed by adding a redundant sum term. Dynamic hazards are avoided by using two level implementations or by ensuring that all paths have similar delays. Another practical remedy is to sample the output only after delays have settled, or to use edge triggered storage so transients do not propagate. A good answer defines each hazard type, explains the delay mechanism, shows how a Karnaugh map reveals the missing cover and states the redundant term remedy. Mentioning that hazards matter mainly for asynchronous inputs and for circuits feeding fast sequential elements, because synchronous designs can be timed around them, adds practical judgement.

F=AB+A′CF = AB + A'C
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

  • Hazard is a momentary glitch due to unequal gate delays.
  • Types: static-1, static-0, functional and dynamic.
  • Eliminate by consensus terms, correct K-map grouping or strobing.
Q7a7MUnit 4 — TTL NAND gate
Predicted

Explain the working of TTL inverter using suitable diagram.

Answer: A standard TTL inverter uses a multi-emitter input transistor Q1, a phase-splitter Q2 and a totem-pole output pair Q3 (pull-up) and Q4 (pull-down). When input A is LOW, the base-emitter junction of Q1 is forward biased, clamping Q2 OFF; Q2's collector drives Q3 ON and Q4 OFF, so output Y is HIGH. When A is HIGH, Q1's base-emitter junction reverse biases and its base-collector junction feeds current to Q2, turning Q2 and Q4 ON and Q3 OFF, so Y is LOW. Thus Y=A′Y = A'. The totem-pole output gives fast rising and falling edges; a series diode prevents simultaneous conduction of Q3 and Q4.

The TTL inverter and its switching action. A transistor transistor logic inverter can be understood as the single input case of the standard TTL gate. Its input stage is a transistor with an emitter acting as the input and a collector driving a phase splitter transistor. When the input is low, current flows from the supply through a resistor into the input emitter, so the input transistor is forward biased and steals base current from the phase splitter. The phase splitter is therefore off, which turns the upper totem pole transistor on and the lower pull down transistor off. The output is pulled high toward the supply. When the input is high, the input emitter base junction is reverse biased, so current flows into the phase splitter. It turns on, drives the lower output transistor into saturation and turns the upper transistor off, pulling the output low. The circuit thus produces the inverse of the input. The resistor values are chosen to give defined threshold voltages and adequate noise margins. A good answer draws the multi emitter input transistor, phase splitter and totem pole output, traces both input states and states the resulting output. It should explain why the totem pole arrangement gives a low output impedance in both logic states and why it cannot have both output transistors conducting heavily at once. Mentioning switching delay and power dissipation in each state connects the circuit to specified parameters. A note that the input draws more current when low than when high explains the asymmetric input current specification of TTL.

Y=A′Y = A'
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

  • Input LOW: Q1 clamps Q2 OFF, output HIGH.
  • Input HIGH: Q2 and Q4 ON, output LOW.
  • Totem-pole output gives low impedance in both logic states.
Q7b7MUnit 4 — CMOS families and their interfacing
Core Concept

What do you mean by CMOS Inverter? Draw and explain the working of CMOS inverter using VTS.

Answer: A CMOS inverter is a complementary MOS pair: a pMOS transistor from VDDV_{DD} to the output and an nMOS transistor from the output to ground, both driven by input VinV_{in}. With Vin=0V_{in}=0, pMOS is ON and nMOS OFF, so Vout=VDDV_{out}=V_{DD}. With Vin=VDDV_{in}=V_{DD}, pMOS OFF and nMOS ON, so Vout=0V_{out}=0. The voltage transfer characteristic (VTC) is an inverse S-curve with five regions: (1) p linear, n cutoff; (2) p linear, n saturation; (3) both saturated (very high gain); (4) p saturation, n linear; (5) p cutoff, n linear. Switching threshold VM≈VDD/2V_{M} \approx V_{DD}/2 when strengths are matched. Noise margins are VM−VILV_{M} - V_{IL} and VIH−VMV_{IH} - V_{M}. In region 3,dVout/dVin3, dV_{out}/dV_{in} is large, giving fast transitions; static power is nearly zero except during switching.

The complementary metal oxide semiconductor inverter. A complementary metal oxide semiconductor inverter uses one n channel transistor and one p channel transistor connected in series between the supply and ground, with their gates tied together as the input and their drains tied together as the output. When the input is low, the n channel device is off and the p channel device is on, so the output is pulled up to the supply. When the input is high, the p channel device is off and the n channel device is on, so the output is pulled down to ground. Only one device conducts in either steady state, which is why static power dissipation is extremely small. The voltage transfer characteristic plots output voltage against input voltage. It has five regions: output high with the n device off, a transition where the n device saturates and the p device is linear, the switching point where both are saturated, a region where the n device is linear and the p device saturates, and output low with the p device off. The switching threshold occurs near half the supply when device strengths are balanced. Noise margins are the differences between the input and output logic levels at the points where the transfer curve has unity gain. A good answer draws the circuit and the transfer characteristic, explains each region and defines noise margin, propagation delay and power. Mentioning that complementary metal oxide semiconductor logic has high input impedance, high packing density and low static power but is sensitive to electrostatic discharge gives a balanced specification. A note that dynamic power grows with switching frequency and load capacitance explains why power is not zero in real operation.

Vin=0V_{in}=0
Vout=VDDV_{out}=V_{DD}
Vin=VDDV_{in}=V_{DD}
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

  • Complementary pMOS pull-up and nMOS pull-down.
  • VTC has five regions; both devices saturate near V_DD/2.
  • High gain in transition, near-zero static power, good noise margins.