GATE 2027 EC, Section 5
Digital circuits
Number representation, Boolean algebra and K-maps, combinational and sequential circuits, timing, data converters, memories and computer organisation.
- 35 formulas
- 6 topics
The PDF is A4 portrait, ready to print or keep on your phone.
5.1Number representation
- n-bit ranges
- Unsigned 0 to 2ⁿ − 1; two’s complement −2ⁿ⁻¹ to 2ⁿ⁻¹ − 1; sign-magnitude, one’s complement ±(2ⁿ⁻¹ − 1)
- (5.1.1)
- Two’s complement
- −x = invert all bits + 1
- (5.1.2)
- IEEE 754 single
- (−1)ˢ × 1.M × 2E − 127; 1 sign, 8 exponent, 23 mantissa bits
- (5.1.3)
- IEEE 754 double
- Bias 1023; 1 sign, 11 exponent, 52 mantissa bits
- (5.1.4)
- Gray code
- gMSB = bMSB; gᵢ = bᵢ ⊕ bᵢ₊₁
- (5.1.5)
- BCD, excess-3
- BCD: 4 bits per decimal digit; excess-3 = BCD + 0011
- (5.1.6)
5.2Boolean algebra
- De Morgan
- (AB)′ = A′ + B′; (A + B)′ = A′B′
- (5.2.1)
- Absorption
- A + AB = A; A(A + B) = A; A + A′B = A + B
- (5.2.2)
- Consensus
- AB + A′C + BC = AB + A′C
- (5.2.3)
- XOR / XNOR
- A ⊕ B = A′B + AB′; (A ⊕ B)′ = AB + A′B′
- (5.2.4)
- Number of functions
- n variables → 22ⁿ Boolean functions
- (5.2.5)
- K-map
- Group 1, 2, 4, 8… adjacent 1s (edges wrap); each group of 2ᵏ removes k variables
- (5.2.6)
- Universal gates
- NAND alone or NOR alone can build any function
- (5.2.7)
5.3Combinational circuits
- Half adder
- S = A ⊕ B; C = AB
- (5.3.1)
- Full adder
- S = A ⊕ B ⊕ Cᵢₙ; Cout = AB + Cᵢₙ(A ⊕ B)
- (5.3.2)
- Carry look-ahead
- Gᵢ = AᵢBᵢ; Pᵢ = Aᵢ ⊕ Bᵢ; Cᵢ₊₁ = Gᵢ + PᵢCᵢ
- (5.3.3)
- Multiplexer / decoder
- 2ⁿ:1 MUX needs n select lines; n-to-2ⁿ decoder; any n-variable function fits a 2ⁿ:1 MUX
- (5.3.4)
- Static CMOS gate
- Pull-up (PMOS) network is the dual of pull-down (NMOS); NAND = parallel PMOS + series NMOS
- (5.3.5)
5.4Sequential circuits
- Flip-flop equations
- SR: Q⁺ = S + R′Q (SR = 0); JK: Q⁺ = JQ′ + K′Q; D: Q⁺ = D; T: Q⁺ = T ⊕ Q
- (5.4.1)
- Counters
- Mod-N needs ⌈log₂N⌉ flip-flops; ring counter N states with N FFs; Johnson 2N states
- (5.4.2)
- Ripple counter speed
- fmax ≈ 1/(n·tpd)
- (5.4.3)
- Setup constraint
- Tclk ≥ tclk→q + tlogic,max + tsetup (− clock skew if capture clock is later)
- (5.4.4)
- Hold constraint
- tclk→q + tlogic,min ≥ thold (+ clock skew)
- (5.4.5)
- Maximum frequency
- fmax = 1/Tclk,min, set by the critical path
- (5.4.6)
5.5Data converters
- Resolution
- LSB = VFS/2ⁿ
- (5.5.1)
- Quantisation
- Error ±½ LSB; SQNR ≈ 6.02n + 1.76 dB (full-scale sine)
- (5.5.2)
- DAC output
- Vo = Vref × (code)/2ⁿ (binary-weighted or R-2R)
- (5.5.3)
- ADC speed
- Flash: 1 step, 2ⁿ − 1 comparators; SAR: n steps; counter/dual-slope: up to 2ⁿ steps
- (5.5.4)
- Sample and hold
- Acquisition time, droop rate = Ileak/Chold
- (5.5.5)
5.6Memories and computer organisation
- Memory size
- n address lines → 2ⁿ locations; capacity = 2ⁿ × word length
- (5.6.1)
- Cells
- SRAM: 6T, no refresh; DRAM: 1T1C, needs refresh; ROM: non-volatile
- (5.6.2)
- CPU time
- Time = instruction count × CPI × clock period
- (5.6.3)
- Pipeline speedup
- k stages, n instructions: S = nk/(k + n − 1) → k as n → ∞
- (5.6.4)
- Average memory access
- T = h·tcache + (1 − h)·tmiss path
- (5.6.5)
- Addressing modes
- Immediate, direct, indirect, register, register indirect, indexed, relative
- (5.6.6)
SignalPath: free ECE roadmaps, tools and formula sheets at signalpath.pages.dev