Part 1: Core Concepts (2 Marks)
- Digital Signal: A discrete, quantized signal represented by finite binary voltage states (Logic 0 / Low:
, Logic 1 / High: ), exhibiting superior noise immunity compared to continuous analog waveforms. - 2’s Complement Representation: A binary signed-number representation where a negative number is formed by inverting all bits (1’s complement) and adding 1 to the LSB:
- Gray Code (Reflected Binary Code): An unweighted, non-arithmetic cyclic binary code where consecutive numerical values differ by exactly one single bit, eliminating race conditions in optical shaft encoders.
- Excess-3 Code: An unweighted, self-complementing BCD code obtained by adding
( ) to each decimal digit’s 8421 BCD representation.
Part 2: Structural Frameworks (10 Marks)
Number System Radix Conversion Architecture
- DECIMAL (Base 10)
- / \
- (Successive Division) (Polynomial Expansion)
- / \
- [ BINARY (Base 2) ] <========> [ OCTAL (Base 8) ]
- \ /
- (3-Bit Groups) (4-Bit Groups)
- \ /
- HEXADECIMAL (Base 16)
Part 3: Distinction Tables
| Basis of Comparison | 1’s Complement Subtraction | 2’s Complement Subtraction |
|---|---|---|
| Mathematical Definition | ||
| Representation of Zero | Ambiguous dual zero ( |
Unique unambiguous zero ( |
| End-Around Carry | Required; carry bit must be added back to LSB | Discarded; end carry is ignored (indicates positive result) |
| Hardware Arithmetic | Complex two-stage addition circuitry | Standard single-pass adder hardware used for both +/- |
Part 4: Worked Problems & Exam Traps
Worked Subtraction: 2’s Complement Method
Problem: Subtract
- Binary representations:
- Take 2’s complement of subtrahend (
):
- 1’s complement of
- Add 1:
- Add
: - Interpretation: No end carry generated
Result is negative. Take 2’s complement of result to find magnitude:
- Invert
- Add 1:
TU Exam Trap: In 2’s complement subtraction, an end carry indicates a positive result (discard the carry); the absence of an end carry indicates a negative result in 2’s complement form.