IT 236

Microprocessor and Computer Architecture

TU BIM · Semester 3 · BIM curriculum effective from 2021

Requirement
required
Credits
3
Study Guide
8 units available

Chapter notes

Authoritative study guide across 8 syllabus units

Open a unit to read its study notes.

Unit 1: Introduction to Microprocessor· 6 LHs· ~7 marks

Pass path: Define microprocessor, state the three system buses (Address, Data, Control), and explain the SAP-1 architecture. Top path: Differentiate bus width vs memory addressability, analyze tri-state buffer operation, and trace the SAP-1 fetch-execute instruction cycle.

Part 1: Core Concepts (2 Marks)

  • ★ Microprocessor: A programmable, multipurpose, clock-driven, semiconductor integrated circuit (IC) that fetches binary instructions from memory, decodes them, and executes arithmetic and logic operations.
  • ★ System Buses:
    • Address Bus: Unidirectional bus carrying physical memory addresses from CPU to memory/IO; width determines maximum addressable memory (2k2^k).
    • Data Bus: Bidirectional bus transferring actual data and instructions between CPU, memory, and peripheral controllers.
    • Control Bus: Collection of unidirectional and bidirectional lines transmitting timing, read/write, and status control strobes.
  • ★ Tri-State Buffer: A logic circuit with three operational states: Logic High (1), Logic Low (0), and High-Impedance (ZZ, float/disconnected). Allows multiple devices to share common system buses without bus contention.

Part 2: Structural Frameworks (10 Marks)

1. Architecture and Operation of Simple-As-Possible (SAP-1) Computer

When asked to evaluate the fundamental architectural blocks of SAP-1:

  1. Program Counter (PC): 4-bit register that generates memory addresses of instructions to fetch; counts sequentially from 0000 to 1111.
  2. Memory Address Register (MAR): Latches 4-bit address from system bus during fetch state.
  3. RAM (16 x 8): 16 bytes of memory storing instructions (upper nibble opcode, lower nibble operand) and data.
  4. Instruction Register (IR): 8-bit register holding fetched instruction; splits opcode to Controller-Sequencer and operand to bus.
  5. Controller-Sequencer: Generates micro-timing control words (CONCON) during T-states (T1T_1 to T6T_6) to coordinate register transfers.
  6. Accumulator & B-Register: 8-bit registers buffering inputs to the Adder-Subtractor.
  7. Instruction Cycle Mechanics:
    • T1T_1: Address state (PC→MARPC \rightarrow MAR).
    • T2T_2: Increment state (PC=PC+1PC = PC + 1).
    • T3T_3: Memory state (RAM→IRRAM \rightarrow IR).
    • T4−T6T_4 - T_6: Execution states (e.g., LDA,ADD,SUB,OUT,HLTLDA, ADD, SUB, OUT, HLT).

Part 3: Distinction Tables

SAP-1 vs. SAP-2 Architecture Comparison

Dimension SAP-1 SAP-2
Bus Width 8-bit data, 4-bit address 8-bit data, 16-bit address
Memory Capacity 16 bytes RAM (242^4) 64 KB memory space (2162^{16})
Instruction Set 5 rudimentary instructions (LDA,ADD,SUB,OUT,HLTLDA, ADD, SUB, OUT, HLT) 42 instructions including logic, jump, call/ret
Flags Zero flags Sign Flag (SS) and Zero Flag (ZZ)
Registers Accumulator, B-Register A, B, C registers + Stack Pointer

Part 4: Worked Problems & Exam Traps

Problem 1 (Standard): Memory Address Space Calculation

A microprocessor has a 16-bit address bus and an 8-bit data bus. Calculate the maximum physical memory capacity in bytes and kilobytes.

  • Calculation:
    Total Addressable Locations=216=65,536 memory words\text{Total Addressable Locations} = 2^{16} = 65{,}536 \text{ memory words}
    Since the data bus is 8-bit (1 byte per word):
    Total Capacity=65,536×1 byte=65,536 Bytes\text{Total Capacity} = 65{,}536 \times 1 \text{ byte} = 65{,}536 \text{ Bytes}
    Capacity in KB=65,5361024=64 KB\text{Capacity in KB} = \frac{65{,}536}{1024} = 64 \text{ KB}

Students lose marks here because they state that the address bus is bidirectional. The address bus is strictly unidirectional (CPU drives addresses outward to memory and peripherals).