Five units: bus and processor organisation, ALU arithmetic, control and pipelining, memory hierarchy, and I/O transfer. The formula strip in each unit belongs to that unit alone.
1. Introduction
Recall anchor. Functional units of digital system and their interconnections and bus architecture: ALU, registers, control and memory exchange words over address, data and control buses; the address width fixes capacity and the data width fixes transfer size.
Scored points.
- Functional units of digital system and their interconnections: input, processing, storage, output and control are tied together by the system bus and clocked timing signals.
- The address bus is unidirectional; k address lines select 2ᵏ locations. The data bus is bidirectional; w lines move w bits per transfer.
- types of buses and bus arbitration: single, dual and multiplexed buses; daisy chaining, centralized parallel and independent-request arbitration resolve which master drives the bus.
- Register and bus and memory transfer use register-transfer notation: load, store and exchange, e.g. R1←R2 and M[MAR]←MDR.
- Processor organization with general registers organization chooses between accumulator, general-register and stack machines; more registers reduce memory traffic.
- stack organization uses a stack pointer SP for push (SP←SP−1) and pop (SP←SP+1) and supports subroutine nesting and interrupt saving.
- addressing modes—immediate, direct, indirect, register, register-indirect, indexed and relative—determine how the effective address of an operand is formed.
Formula strip.
Micro-example. A 20-bit address bus reaches 2²⁰ = 1,048,576 locations; a 32-bit bus at 100 MHz moves 4 bytes × 10⁸ = 400 MB/s.
Examiner line. For Introduction, identify the bus lines involved, write the register-transfer step, and derive capacity or bandwidth from the stated widths.
2. Arithmetic and logic unit
Recall anchor. Look ahead carries adders and IEEE Standard for Floating Point Numbers: carry lookahead removes the ripple delay by computing generate and propagate signals, while IEEE-754 encodes sign, biased exponent and normalised fraction.
Scored points.
- Look ahead carries adders compute Gᵢ=AᵢBᵢ and Pᵢ=Aᵢ⊕Bᵢ so all carries are formed from the input bits rather than waiting on the previous stage.
- Multiplication: Signed operand multiplication sign-extends operands; Booths algorithm and array multiplier recode runs of 1s or form partial products in parallel.
- Division and logic operations use shift-and-subtract (restoring or non-restoring) and bitwise AND, OR, XOR, NOT and shifts.
- Floating point arithmetic operation aligns exponents, adds or subtracts significands, normalises, rounds and checks overflow/underflow.
- IEEE Standard for Floating Point Numbers: single precision has 1 sign bit, 8 exponent bits with bias 127, and 23 fraction bits with an implicit leading 1.
- Arithmetic & logic unit design selects one function with a multiplexor and raises zero, carry, sign and overflow flags; signed overflow occurs when same-sign operands give an opposite-sign result.
- Booth recoding turns 011…110 into +1 at the first 1 and −1 after the last 1, shortening the partial-product chain.
Formula strip.
Micro-example. For E=130 the true exponent is 130−127 = 3; a fraction giving 1.5 represents X = 1.5×2³ = 12. With A₀=B₀=1 and C₀=0, G₀=1 so C₁=1 immediately.
Examiner line. For the ALU, write the carry or exponent relation before the numeric result and state which flag or rounding step applies.
3. Control Unit
Recall anchor. instruction cycles and sub cycles (fetch and execute etc) and Hardwire and micro programmed control: the control unit issues the timed microoperations of fetch, decode and execute from fixed logic or from a microprogram in control memory.
Scored points.
- Instruction types—data movement, arithmetic, logic, branch and I/O—are encoded in formats with an opcode field, address fields and mode bits.
- instruction cycles and sub cycles (fetch and execute etc): fetch, decode, evaluate address, fetch operands, execute and store result; an interrupt check occurs between instructions.
- micro operations are register transfers, ALU actions and shifts selected by a control word; one clock pulse activates one group of microoperations.
- execution of a complete instruction such as ADD to memory needs address calculation, memory read into the data register, ALU addition and write-back to the accumulator.
- Program Control loads the PC on a branch, call or return; condition codes from the ALU decide conditional jumps.
- Reduced Instruction Set Computer uses fixed-length, simple instructions, a load/store discipline and many registers to make pipelining easier.
- Pipelining overlaps fetch, decode, execute, memory and write-back stages; structural, data and control hazards stall the pipeline. Hardwired control is fast but inflexible; micro programmed control uses micro programme sequencing, with wide horizontal or encoded vertical microinstructions.
Formula strip.
Micro-example. With k=5 pipeline stages and n=100 instructions, ideal speedup = (100×5)/(100+5−1) = 500/104 ≈ 4.81.
Examiner line. For Control Unit answers, list the microoperation sequence in clock order, name the control method, then compute CPI, speedup or clock-time impact.
4. Memory
Recall anchor. Basic concept and hierarchy and Cache memories: concept and design issues & performance: registers, cache, main memory and auxiliary storage form a hierarchy where faster levels are smaller and costlier per bit.
Scored points.
- Basic concept and hierarchy trades access time against capacity and cost; locality of reference makes cache effective.
- semiconductor RAM memories: SRAM stores a bit in a flip-flop and needs no refresh; DRAM stores charge in a capacitor and must be refreshed periodically.
- 2D & 2 1/2D memory organization uses row and column selection (coincident selection) to cut the number of address decoder lines.
- ROM memories include mask ROM, PROM, EPROM, EEPROM and flash; they retain data without power.
- Cache memories: concept and design issues & performance involve block size, cache size, mapping, write-through/write-back and hit rate.
- address mapping and replacement uses direct-mapped, fully associative or set-associative placement; replacement policies include FIFO, LRU and random.
- Auxiliary memories: magnetic disk, magnetic tape and optical disks provide large non-volatile storage; Virtual memory: concept implementation uses pages, a page table and demand paging.
Formula strip.
Micro-example. For h=0.9, T_c=1 ns and T_m=10 ns, T_avg = 0.9×1 + 0.1×10 = 1.9 ns; a 64-set cache maps block 130 to set 130 mod 64 = 2.
Examiner line. For Memory, state the mapping and write policy, show the tag/index split, and report hit, miss or average access time explicitly.
5. Input / Output
Recall anchor. Modes of Data Transfer: Programmed I/O, interrupt initiated I/O and Direct Memory Access: the three modes differ in who checks device readiness and how much of a block transfer the CPU still performs.
Scored points.
- Peripheral devices connect through an I/O interface with data, status and control registers; I/O ports are addressed either memory-mapped or isolated.
- Interrupts: interrupt hardware raises a request line; types of interrupts and exceptions include maskable, non-maskable, software and error traps, serviced through a vector table.
- Programmed I/O polls the status register in a loop, wasting CPU cycles until the device is ready.
- interrupt initiated I/O lets the device signal the CPU; the service routine saves context, transfers a word and returns.
- Direct Memory Access uses a DMA controller to transfer a whole block between device and memory with CPU involvement only at setup and completion.
- I/O channels and processors offload device scheduling to a dedicated processor that executes channel commands.
- Serial Communication: Synchronous & asynchronous communication uses a shared clock or start/stop framing; standard communication interfaces such as RS-232 and USB define signalling and connectors.
Formula strip.
Micro-example. A 1024-byte block at R = 1 MB/s takes 1024/10⁶ = 1.024 ms plus setup; 8N1 framing at 9600 baud carries 9600/10 = 960 data bytes per second.
Examiner line. For Input / Output, say which mode is in use, count the CPU interventions for the given block size, and quote transfer time or effective rate.
Memory map
%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
U1["Introduction"] --> U1a["types of buses and bus arbitration"] --> U1b["stack organization and addressing modes"]
U1b --> U2["Arithmetic and logic unit"] --> U2a["Look ahead carries adders"] --> U2b["IEEE Standard for Floating Point Numbers"]
U2b --> U3["Control Unit"] --> U3a["instruction cycles and sub cycles (fetch and execute etc)"] --> U3b["concept of horizontal and vertical microprogramming"]
U3b --> U4["Memory"] --> U4a["Cache memories: concept and design issues & performance"] --> U4b["address mapping and replacement Auxiliary memories: magnetic disk"]
U4b --> U5["Input / Output"] --> U5a["interrupt initiated I/O and Direct Memory Access"] --> U5b["Serial Communication: Synchronous & asynchronous communication"]
Rapid recall
- U1 Introduction — Functional units of digital system and their interconnections; buses; bus architecture; types of buses and bus arbitration; Register; bus and memory transfer; Processor organization; general registers organization; stack organization and addressing modes.
- U2 Arithmetic and logic unit — Look ahead carries adders; Multiplication: Signed operand multiplication; Booths algorithm and array multiplier; Division and logic operations; Floating point arithmetic operation; Arithmetic & logic unit design; IEEE Standard for Floating Point Numbers.
- U3 Control Unit — Instruction types; formats; instruction cycles and sub cycles (fetch and execute etc); micro operations; execution of a complete instruction; Program Control; Reduced Instruction Set Computer; Pipelining; Hardwire and micro programmed control; horizontal and vertical microprogramming.
- U4 Memory — Basic concept and hierarchy; semiconductor RAM memories; 2D & 2 1/2D memory organization; ROM memories; Cache memories: concept and design issues & performance; address mapping and replacement; magnetic disk, magnetic tape and optical disks; Virtual memory: concept implementation.
- U5 Input / Output — Peripheral devices; I/O interface; I/O ports; Interrupts: interrupt hardware; types of interrupts and exceptions; Programmed I/O; interrupt initiated I/O and Direct Memory Access; I/O channels and processors; Serial Communication: Synchronous & asynchronous communication; standard communication interfaces.
Final-answer checklist (BCS302)
- Start with the block diagram or register-transfer sequence that names the exact functional unit or bus in the question.
- Write the carry, float, tag/index, pipeline or transfer relation before substituting numbers; keep bus widths and biases explicit.
- Distinguish SRAM from DRAM, direct from set-associative, and programmed I/O from DMA rather than mixing their mechanisms.
- Quote units where relevant (MB/s, ns, baud, bytes/s) and show the arithmetic step that produces them.
- End with the requested quantity—carry out, decoded value, speedup, average access time or transfer time—as one clear sentence.