Digital Electronics (4321102) - Summer 2024 Solution

Solution guide for Digital Electronics (4321102) Summer 2024 exam

Question 1(a) [3 marks]

Convert: (110101)₂ = ( ___ )₁₀ = ( ___ )₈ = ( ___ )₁₆

Answer:

Step-by-step conversion of (110101)₂:

Binary (110101)₂DecimalOctalHexadecimal
1×2⁵ + 1×2⁴ + 0×2³ + 1×2² + 0×2¹ + 1×2⁰32+16+0+4+0+1 = 536×8¹ + 5×8⁰ = 48+5 = 533×16¹ + 5×16⁰ = 48+5 = 35
(110101)₂(53)₁₀(65)₈(35)₁₆

Mnemonic: "Binary Digits Out Here" (BDOH) for Binary→Decimal→Octal→Hexadecimal conversion.

Question 1(b) [4 marks]

Perform: (i) (11101101)₂+(10101000)₂ (ii) (11011)₂(1010)₂*

Answer:

Table for binary addition and multiplication:

(i) Binary Addition(ii) Binary Multiplication
``` 11101101``` 11011
+ 10101000× 1010
-----------------
110010101```00000
11011
00000
11011
--------
11101110```

Decimal verification:

  • (i) (11101101)₂ = 237, (10101000)₂ = 168, Sum = 405 = (110010101)₂
  • (ii) (11011)₂ = 27, (1010)₂ = 10, Product = 270 = (11101110)₂

Mnemonic: "Carry Up Makes Sum" for addition and "Shift Left Add Product" for multiplication.

Question 1(c) [7 marks]

(i) Convert: (48)₁₀ = ( ___ )₂ = ( ___ )₈ = ( ___ )₁₆ (ii) Subtract using 2's Complement method: (1110)₂ – (1000)₂ (iii) Divide (1111101)₂ with (101)₂

Answer:

(i) Conversion Table:

Decimal (48)₁₀BinaryOctalHexadecimal
48÷2 = 24 rem 01100006030
24÷2 = 12 rem 0
12÷2 = 6 rem 0
6÷2 = 3 rem 0
3÷2 = 1 rem 1
1÷2 = 0 rem 1
(48)₁₀(110000)₂(60)₈(30)₁₆

(ii) Subtraction Table:

2's Complement MethodSteps
(1110)₂ – (1000)₂1. Find 2's complement of (1000)₂
1's complement of (1000)₂(0111)₂
2's complement(0111)₂ + 1 = (1000)₂
(1110)₂ + (1000)₂(10110)₂
Discard carry(0110)₂
Result(0110)₂ = 6₁₀

(iii) Division:

Mnemonic: "Division Drops Down Remainders" for long division process.

Question 1(c) OR [7 marks]

Explain Codes: ASCII, BCD, Gray

Answer:

Table of Common Digital Codes:

CodeDescriptionExample
ASCII (American Standard Code for Information Interchange)7-bit code representing 128 characters including alphabets, numbers, and special symbolsA = 65 (1000001)₂
BCD (Binary Coded Decimal)Represents each decimal digit (0-9) using 4 bits42 = 0100 0010
Gray CodeBinary code where adjacent numbers differ by only one bit(0,1,3,2) = (00,01,11,10)

Diagram: Gray Code Generation:

Mnemonic: "Always Binary Generates" - first letter of each code (ASCII, BCD, Gray).

Question 2(a) [3 marks]

Simplify using Boolean Algebra: Y = A B + A' B + A' B' + A B'

Answer:

Step-by-step simplification:

StepExpressionBoolean Law
Y = A B + A' B + A' B' + A B'Initial expression-
Y = A(B + B') + A'(B + B')FactoringDistributive law
Y = A(1) + A'(1)Complement lawB + B' = 1
Y = A + A'Simplification-
Y = 1Complement lawA + A' = 1

Mnemonic: "Factor, Simplify, Finish" for Boolean simplification steps.

Question 2(b) [4 marks]

Simplify the following Boolean function using K-map: f(A,B,C,D) = Σm (0,3,4,6,8,11,12)

Answer:

K-map Solution:

    AB
CD  00 01 11 10
00  1  0  0  1
01  0  0  0  1  
11  0  1  0  0
10  0  0  1  0

Grouping:

  • Group 1: m(0,8) = A'C'D'
  • Group 2: m(4,12) = BD'
  • Group 3: m(3,11) = CD
  • Group 4: m(6) = A'B'CD'

Simplified expression: f(A,B,C,D) = A'C'D' + BD' + CD + A'B'CD'

Mnemonic: "Group Powers Of Two" for K-map grouping strategy.

Question 2(c) [7 marks]

Explain NOR gate as a universal gate with neat diagrams.

Answer:

NOR as Universal Gate:

FunctionImplementation using NORTruth Table
NOT GateNOT using NORA
0
1
AND GateAND using NORA B
0 0
0 1
1 0
1 1
OR GateOR using NORA B
0 0
0 1
1 0
1 1

Diagram: NOR Implementation:

Mnemonic: "NOT AND OR, NOR does more" for remembering NOR gate implementations.

Question 2(a) OR [3 marks]

Draw logic circuit for Boolean expression: Y = (A + B') . (A' + B') . (B + C)

Answer:

Logic Circuit Implementation:

Truth Table Verification:

  • Term 1: (A + B')
  • Term 2: (A' + B')
  • Term 3: (B + C)
  • Output: Y = Term1 • Term2 • Term3

Mnemonic: "Each Term Separately" for breaking complex expressions.

Question 2(b) OR [4 marks]

State De-Morgan's theorems and prove it.

Answer:

De-Morgan's Theorems and Proof:

TheoremStatementProof by Truth Table
Theorem 1(A•B)' = A' + B'A B
0 0
0 1
1 0
1 1
Theorem 2(A+B)' = A'•B'A B
0 0
0 1
1 0
1 1

Diagram: De-Morgan's Law Visualization:

Mnemonic: "Break BAR, Change Operation, Invert Inputs" for applying De-Morgan's law.

Question 2(c) OR [7 marks]

Explain all the Logic Gates with the help of Symbol, Truth table and equation.

Answer:

Logic Gates Summary:

GateSymbolTruth TableEquationDescription
ANDANDA BYY = A•B
0 00
0 10
1 00
1 11
ORORA BYY = A+B
0 00
0 11
1 01
1 11
NOTNOTAYY = A'
01
10
NANDNANDA BYY = (A•B)'
0 01
0 11
1 01
1 10
NORNORA BYY = (A+B)'
0 01
0 10
1 00
1 10
XORXORA BYY = A⊕B
0 00
0 11
1 01
1 10
XNORXNORA BYY = (A⊕B)'
0 01
0 10
1 00
1 11

Mnemonic: "All Operations Need Necessary eXecution" (first letter of each gate - AND, OR, NOT, NAND, NOR, XOR).

Question 3(a) [3 marks]

Briefly explain 4:2 Encoder.

Answer:

4-to-2 Encoder Overview:

FunctionDescriptionTruth Table
4:2 EncoderConverts 4 input lines to 2 output linesI₀ I₁ I₂ I₃
Only one input active at a time1 0 0 0
Input position encoded in binary0 1 0 0
0 0 1 0
0 0 0 1

Diagram: 4:2 Encoder:

Mnemonic: "Input Position Creates Output" for encoder function.

Question 3(b) [4 marks]

Explain 4-bit Parallel adder using full adder blocks.

Answer:

4-bit Parallel Adder:

ComponentFunction
Full AdderAdds 3 bits (A, B, Carry-in) producing Sum and Carry-out
Parallel AdderConnects 4 full adders with carry propagation

Diagram: 4-bit Parallel Adder:

Mnemonic: "Carry Always Passes Right" for the carry propagation in parallel adder.

Question 3(c) [7 marks]

Describe 8:1 Multiplexer with truth table, equation and circuit diagram.

Answer:

8:1 Multiplexer:

ComponentDescriptionFunction
8:1 MUXData selector with 8 inputs, 3 select lines, 1 outputSelects one of 8 inputs based on select lines

Truth Table:

Select LinesOutput
S₂ S₁ S₀Y
0 0 0D₀
0 0 1D₁
0 1 0D₂
0 1 1D₃
1 0 0D₄
1 0 1D₅
1 1 0D₆
1 1 1D₇

Boolean Equation: Y = S₂'·S₁'·S₀'·D₀ + S₂'·S₁'·S₀·D₁ + S₂'·S₁·S₀'·D₂ + S₂'·S₁·S₀·D₃ + S₂·S₁'·S₀'·D₄ + S₂·S₁'·S₀·D₅ + S₂·S₁·S₀'·D₆ + S₂·S₁·S₀·D₇

Diagram: 8:1 MUX:

Mnemonic: "Select Decides Data Output" for multiplexer operation.

Question 3(a) OR [3 marks]

Draw the logic circuit of half Subtractor and explain its working.

Answer:

Half Subtractor:

FunctionDescriptionTruth Table
Half SubtractorSubtracts two bits producing Difference and BorrowA B
0 0
0 1
1 0
1 1

Logic Circuit:

Equations:

  • Difference (D) = A ⊕ B
  • Borrow out (Bout) = A' • B

Mnemonic: "Different Bits Borrow" for half subtractor operation.

Question 3(b) OR [4 marks]

Explain 3:8 Decoder with truth table and circuit diagram.

Answer:

3:8 Decoder:

FunctionDescriptionTruth Table (Partial)
3:8 DecoderConverts 3-bit binary input to 8 output linesA₂ A₁ A₀
Only one output active at a time0 0 0
0 0 1
...
1 1 1

Circuit Diagram:

Equations:

  • Y₀ = A₂' • A₁' • A₀'
  • Y₁ = A₂' • A₁' • A₀
  • ...
  • Y₇ = A₂ • A₁ • A₀

Mnemonic: "Binary Input Activates Output" for decoder operation.

Question 3(c) OR [7 marks]

Explain Gray to Binary code converter with truth table, equation and circuit diagram.

Answer:

Gray to Binary Converter:

FunctionDescriptionTable: Gray to Binary
Gray to BinaryConverts Gray code to Binary codeGray
MSB of binary equals MSB of gray0000
Each binary bit is XOR of current gray bit and previous binary bit0001
0011
0010
0110
...

Circuit Diagram:

Equations:

  • B₃ = G₃
  • B₂ = G₃ ⊕ G₂
  • B₁ = B₂ ⊕ G₁
  • B₀ = B₁ ⊕ G₀

Mnemonic: "MSB Stays, Rest XOR" for Gray to Binary conversion.

Question 4(a) [3 marks]

Explain D flip flop with truth table and circuit diagram.

Answer:

D Flip-Flop:

FunctionDescriptionTruth Table
D Flip-FlopData/Delay flip-flopCLK
Q follows D at clock edge

Circuit Diagram:

Characteristic Equation:

  • Q(next) = D

Mnemonic: "Data Delays one clock" for D flip-flop operation.

Question 4(b) [4 marks]

Explain working of Master Slave JK flip flop.

Answer:

Master-Slave JK Flip-Flop:

ComponentOperationTruth Table
MasterSamples inputs when CLK = 1J K
SlaveTransfers master output when CLK = 00 0
0 1
1 0
1 1

Diagram: Master-Slave JK:

Working:

  • Master stage: Captures input during clock high
  • Slave stage: Updates output during clock low
  • Prevents race condition by separating input capture and output update

Mnemonic: "Master Samples, Slave Transfers" for master-slave operation.

Question 4(c) [7 marks]

Classify Shift Registers with the help of Block diagram and Explain any one of them in detail.

Answer:

Shift Register Classification:

TypeDescriptionFunction
SISOSerial In Serial OutData enters and exits serially, bit by bit
SIPOSerial In Parallel OutData enters serially, exits in parallel
PISOParallel In Serial OutData enters in parallel, exits serially
PIPOParallel In Parallel OutData enters and exits in parallel

SIPO Shift Register in Detail:

Working of SIPO Shift Register:

  • Serial data enters at Data-In pin, one bit per clock cycle
  • Each flip-flop passes its content to the next on clock pulse
  • After 4 clock cycles, 4-bit data is stored in all flip-flops
  • Parallel output available from Q0-Q3 simultaneously

Timing Diagram for SIPO:

goat

Mnemonic: "Serial Inputs Parallel Outputs" for SIPO operation.

Question 4(a) OR [3 marks]

Explain SR flip flop with truth table and circuit diagram.

Answer:

SR Flip-Flop:

FunctionDescriptionTruth Table
SR Flip-FlopSet-Reset flip-flopS R
Basic memory element0 0
0 1
1 0
1 1

Circuit Diagram:

Mnemonic: "Set to 1, Reset to 0" for SR flip-flop operation.

Question 4(b) OR [4 marks]

Describe JK flip flop with truth table and circuit diagram.

Answer:

JK Flip-Flop:

FunctionDescriptionTruth Table
JK Flip-FlopImproved SR flip-flopJ K
Resolves invalid condition0 0
0 1
1 0
1 1

Circuit Diagram:

Characteristic Equation:

  • Q(next) = J•Q' + K'•Q

Mnemonic: "Jump-Keep-Toggle" for JK flip-flop states (J=1 K=0: Jump to 1, J=0 K=0: Keep state, J=1 K=1: Toggle).

Question 4(c) OR [7 marks]

Describe 4-bit Asynchronous UP Counter with truth table and circuit diagram.

Answer:

4-bit Asynchronous UP Counter:

FunctionDescriptionCount Sequence
Asynchronous CounterAlso called ripple counter0000 → 0001 → 0010 → 0011
Clock drives only first FF0100 → 0101 → 0110 → 0111
Each FF triggered by previous FF output1000 → 1001 → 1010 → 1011
1100 → 1101 → 1110 → 1111

Circuit Diagram:

Working:

  • First FF toggles on every clock pulse
  • Second FF toggles when first FF goes from 1 to 0
  • Third FF toggles when second FF goes from 1 to 0
  • Fourth FF toggles when third FF goes from 1 to 0

Mnemonic: "Ripple Carries Propagation Delay" for asynchronous counter operation.

Question 5(a) [3 marks]

Compare following logic families: TTL, CMOS, ECL

Answer:

Logic Families Comparison:

ParameterTTLCMOSECL
TechnologyBipolar transistorsMOSFETsBipolar transistors
Power ConsumptionMediumVery lowHigh
SpeedMediumLow-MediumVery high
Noise ImmunityMediumHighLow
Fan-out1050+25
Supply Voltage5V3-15V-5.2V

Mnemonic: "Technology Controls Many Electrical Characteristics" for comparing logic families.

Question 5(b) [4 marks]

Compare Combinational and Sequential Logic Circuits.

Answer:

Combinational vs Sequential Circuits:

ParameterCombinational CircuitsSequential Circuits
Output depends onCurrent inputs onlyCurrent inputs and previous state
MemoryNo memoryHas memory elements
FeedbackNo feedback pathsContains feedback paths
ExamplesAdders, MUX, DecodersFlip-flops, Counters, Registers
ClockNo clock requiredClock often required
Design approachTruth tables, K-mapsState diagrams, tables

Diagram: Comparison:

Mnemonic: "Current Only vs Memory States" for differentiating combinational and sequential circuits.

Question 5(c) [7 marks]

Define: Fan in, Fan out, Noise margin, Propagation delay, Power dissipation, Figure of merit, RAM

Answer:

Digital Electronics Key Definitions:

TermDefinitionTypical Values
Fan-inMaximum number of inputs a logic gate can handleTTL: 2-8, CMOS: 100+
Fan-outMaximum number of gate inputs that can be driven by a single outputTTL: 10, CMOS: 50
Noise marginMaximum noise voltage that can be added before causing errorTTL: 0.4V, CMOS: 1.5V
Propagation delayTime taken for change in input to cause change in outputTTL: 10ns, CMOS: 20ns
Power dissipationPower consumed by gate during operationTTL: 10mW, CMOS: 0.1mW
Figure of meritProduct of speed and power (lower is better)TTL: 100pJ, CMOS: 2pJ
RAMRandom Access Memory - temporary storage deviceTypes: SRAM, DRAM

Diagram: Digital Parameter Relationships:

Mnemonic: "Fast Power Needs Proper Figure Ratings" for remembering the parameter terms.

Question 5(a) OR [3 marks]

Describe steps and the need of E-waste management of Digital ICs.

Answer:

E-waste Management for Digital ICs:

StepDescriptionImportance
CollectionSeparate collection of electronic wastePrevents improper disposal
SegregationSeparating ICs from other componentsEnables targeted recycling
DismantlingRemoval of hazardous partsReduces environmental harm
RecoveryExtracting valuable materials (gold, silicon)Conserves resources
Safe disposalProper disposal of non-recyclable partsPrevents pollution

Need for E-waste Management:

  • Hazardous Materials: ICs contain lead, mercury, cadmium
  • Resource Conservation: Recovers precious metals and rare materials
  • Environmental Protection: Prevents soil and water contamination
  • Health Safety: Reduces exposure to toxic substances

Mnemonic: "Collection Starts Dismantling Recovery Safely" for e-waste management steps.

Question 5(b) OR [4 marks]

Explain working of Ring Counter with circuit diagram.

Answer:

Ring Counter:

FunctionDescriptionCount Sequence
Ring CounterCircular shift register with single 11000 → 0100 → 0010 → 0001 → 1000
Only one flip-flop is set at any time
N flip-flops for N states

Circuit Diagram:

Working:

  • Initialization: First FF set to 1, others to 0
  • Operation: Single 1 rotates through all flip-flops
  • Applications: Sequencers, controllers, timing circuits

Mnemonic: "One Bit Rotates Only" for ring counter operation.

Question 5(c) OR [7 marks]

Classify: (i) Memories (ii) Different Logic Families

Answer:

(i) Memory Classification:

TypeSubtypesCharacteristics
RAMSRAM- Static RAM
- Fast, expensive
- Uses flip-flops
- No refresh needed
DRAM- Dynamic RAM
- Slower, cheaper
- Uses capacitors
- Needs periodic refresh
ROMPROM- Programmable ROM
- One-time programmable
EPROM- Erasable PROM
- UV light erasable
- Multiple reprogramming
EEPROM- Electrically Erasable PROM
- Electrical erasure
- Byte-level erasure
Flash- EEPROM variant
- Block-level erasure
- Non-volatile

(ii) Logic Families Classification:

TechnologyFamiliesCharacteristics
BipolarTTL- Transistor-Transistor Logic
- Medium speed
- 5V operation
ECL- Emitter-Coupled Logic
- Very high speed
- High power consumption
I²L- Integrated Injection Logic
- High density
MOSNMOS- N-channel MOSFET
- Simpler fabrication
PMOS- P-channel MOSFET
- Lower performance
CMOS- Complementary MOS
- Low power consumption
- High noise immunity
HybridBiCMOS- Combines Bipolar and CMOS
- High speed with low power

Memory Classification Diagram:

Mnemonic: "Remember Simple Division: Programmable Erasable Electrical" for memory types (RAM-SRAM-DRAM, PROM-EPROM-EEPROM).