PadhaikoAll subjects

Microprocessors, History, Digital Computer Block Diagram & Microcontrollers

Microprocessors (ENEX 201)

Open in the Padhaiko app

1.1 Introduction to microprocessors

A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic device fabricated on a single integrated circuit (IC) using VLSI (Very Large Scale Integration) technology. It reads binary instructions stored sequentially in memory, accepts binary data as input, processes the data according to the decoded instructions using its Arithmetic and Logic Unit (ALU), and delivers the processed results to output or memory devices.

Definition

Microprocessor Core Functional Attributes

A central processing unit (CPU) integrated onto a single semiconductor substrate possesses four fundamental attributes:

  1. Clock-Driven Synchronous Operation: An internal or external crystal oscillator supplies periodic square-wave clock pulses that synchronize every internal data transfer, bus operation, and instruction execution step.
  2. Register-Based Storage: High-speed internal flip-flop registers hold temporary operands, memory pointers, status flags, and instructions directly inside the execution datapath, minimizing off-chip bus cycles.
  3. Stored-Program Programmability: Machine operation is determined strictly by sequences of binary opcodes stored in primary memory (RAM/ROM) rather than by hardwired physical interconnections. Changing system functionality requires only modifying the software routine.
  4. Multipurpose Datapath: The internal ALU and control logic can execute numerical arithmetic (addition, subtraction), boolean bitwise operations (AND, OR, XOR, NOT), program control branching (conditional jumps, calls), and peripheral I/O communications.

The internal hardware of any standard microprocessor is divided into three primary functional subunits:

Functional Subunits of a MicroprocessorText
+-------------------------------------------------------------+
|                     MICROPROCESSOR (CPU)                    |
|                                                             |
|  +-----------------------+       +-----------------------+  |
|  |     Control Unit      |       |      ALU (8/16-bit)   |  |
|  |  - Instruction Decoder| <---> |  - Binary Adder       |  |
|  |  - Timing & Sequencer |       |  - Logic & Shifter    |  |
|  +-----------------------+       +-----------------------+  |
|              ^                               ^              |
|              |     Internal CPU Data Bus     |              |
|              v                               v              |
|  +-------------------------------------------------------+  |
|  |                    Register Array                     |  |
|  |  - Accumulator (A)         - General Registers (B,C..) |  |
|  |  - Program Counter (PC)    - Stack Pointer (SP)       |  |
|  |  - Flag/Status Register    - Temporary Registers (W,Z)|  |
|  +-------------------------------------------------------+  |
|                              |                              |
+------------------------------|------------------------------+
                               v
                     System Control, Data & Address Buses

1.2 History of microprocessors

The development of the microprocessor represents the culmination of solid-state semiconductor integration, progressing from discrete transistors to Small Scale Integration (SSI: 1–10 gates), Medium Scale Integration (MSI: 10–100 gates), Large Scale Integration (LSI: 100–1,000 gates), Very Large Scale Integration (VLSI: 1,000–100,000 gates), and Ultra Large Scale Integration (ULSI: over 1,000,000 transistors).

In 1971, Intel commercialized the world's first single-chip commercial microprocessor, the Intel 4004, designed by Federico Faggin, Ted Hoff, and Stanley Mazor for the Japanese Busicom 141-PF desktop calculator. Microprocessors are broadly categorized into five evolutionary generations based on their internal word width, clock speed, manufacturing technology, and architectural capabilities.

Evolutionary Generations of Microprocessors
GenerationEpochWord SizeRepresentative ProcessorsTechnologyClock SpeedMax Physical MemoryKey Architectural Advancements
First Generation1971–19734-bitIntel 4004, Intel 4040PMOS108 kHz – 740 kHz4 KBFirst commercial single-chip CPU; BCD arithmetic for desktop calculators.
Second Generation1974–19788-bitIntel 8008, 8080, 8085; Motorola 6800; Zilog Z80NMOS, HMOS2 MHz – 6 MHz64 KB (16-bit address)Single +5 V supply (8085/Z80); on-chip clock generation; vectored hardware interrupts; DMA support.
Third Generation1978–198116-bitIntel 8086, 8088, 80186, 80286; Motorola 68000; Zilog Z8000HMOS, CMOS5 MHz – 12.5 MHz1 MB (8086) to 16 MB (80286)Instruction pipelining (6-byte queue); segmented memory; hardware multiply/divide; protected virtual address mode.
Fourth Generation1985–199232-bitIntel 80386, 80486; Motorola 68020/68030CMOS16 MHz – 100 MHz4 GB (32-bit address)Paged virtual memory; integrated math coprocessor (80486 FPU); on-chip L1 cache (8 KB); 5-stage RISC-like integer execution pipeline.
Fifth Generation & Beyond1993–Present64-bitIntel Pentium family, Core i3/i5/i7/i9, Xeon; AMD Ryzen; ARM Cortex-ASub-micron BiCMOS, FinFET60 MHz – 5+ GHzMulti-Terabytes (48-bit to 52-bit physical)Superscalar dual integer execution pipelines; branch prediction; multicore chips; out-of-order dynamic execution; SIMD vector processing (AVX).

1.3 Basic block diagram of a digital computer

A digital computer is an electronic data processing system that accepts information in digital form (discrete binary 0s and 1s), stores the data and program instructions, executes operations at high speed according to the instructions, and outputs the resulting data.

Every classical digital computer consists of five essential hardware blocks interconnected by the system bus:

  1. Input Unit: Converts human-readable or environmental analog data into digital binary words suitable for CPU processing (keyboards, mice, optical scanners, analog-to-digital converters, temperature sensors).
  2. Memory Unit: Stores programs and active datasets.
    • Primary Memory (RAM/ROM): Fast semiconductor storage accessed directly by the CPU over the memory bus. Random Access Memory (RAM) is volatile read/write working storage; Read Only Memory (ROM) is non-volatile permanent storage for bootstrap code (BIOS/firmware).
    • Secondary Storage: High-capacity, non-volatile auxiliary storage (magnetic hard disk drives, solid-state flash drives, optical discs) accessed indirectly through I/O controllers.
  3. Central Processing Unit (CPU): Comprising the Control Unit (CU) and Arithmetic Logic Unit (ALU), it executes machine instructions, directs bus timing, and coordinates all subsystems.
  4. Output Unit: Translates digital binary words from the CPU into human-interpretable or actuator-controlling formats (monitors, printers, digital-to-analog converters, motor drivers).
  5. System Bus: The parallel highway of physical conductor traces dividing into the Address Bus, Data Bus, and Control Bus.
Functional Block Diagram of a Digital ComputerText
+--------------------------------------------------------------------------+
|                      DIGITAL COMPUTER SYSTEM                             |
|                                                                          |
|   +---------------+            +------------------+            +-----+   |
|   |  INPUT UNIT   |            |  CPU (PROCESSOR) |            | OUT |   |
|   |  - Keyboard   |            |  +------------+  |            | PUT |   |
|   |  - Mouse      | ---------> |  |    ALU     |  | ---------> | -Mon|   |
|   |  - ADC/Sensor |            |  +------------+  |            | -Pri|   |
|   +---------------+            |  |  Registers |  |            | -DAC|   |
|                                |  +------------+  |            +-----+   |
|                                |  |Control Unit|  |                      |
|                                |  +------------+  |                      |
|                                +------------------+                      |
|                                         ^                                |
|                                         | System Bus                     |
|                                         v                                |
|                               +-------------------+                      |
|                               |    MEMORY UNIT    |                      |
|                               |  +-------------+  |                      |
|                               |  | Primary RAM |  |                      |
|                               |  +-------------+  |                      |
|                               |  | Primary ROM |  |                      |
|                               |  +-------------+  |                      |
|                               |  | Secondary   |  |                      |
|                               |  | (Disk/SSD)  |  |                      |
|                               |  +-------------+  |                      |
|                               +-------------------+                      |
+--------------------------------------------------------------------------+

1.4 Microcomputer and microcontroller

A critical distinction in computer engineering is the contrast between a general-purpose microcomputer and a dedicated embedded microcontroller.

Definition

Microcomputer vs. Microcontroller

AspectMicroprocessor / MicrocomputerMicrocontroller (Single-Chip MCU)
System ArchitectureCPU only on chip; memory (RAM/ROM) and I/O peripherals are external.CPU, RAM, ROM/Flash, I/O ports, timers, and ADC integrated on one silicon die.
System Cost & Form FactorHigher overall system cost; larger PCB area required due to external buses and chips.Low cost; compact single-chip solution requiring few external passive components.
Power ConsumptionHigh power consumption; unsuited for battery-powered miniature devices.Ultra-low power; features sleep/power-down modes ideal for battery operation.
Design FlexibilityHigh; RAM and ROM capacity can be expanded easily by adding external memory ICs.Low memory expandability; memory size is fixed by on-chip silicon constraints.
Processing SpeedHigh clock frequencies (GHz range in modern CPUs); complex superscalar pipelines.Moderate clock frequencies (typically 1 MHz to 200 MHz); optimized for deterministic control.
Primary Application DomainGeneral-purpose computing: desktops, servers, laptops, complex operating systems.Dedicated embedded control: washing machines, automotive ABS, quadcopter flight controllers.
Representative ExamplesIntel 8085, Intel 8086, Intel Core i7, AMD Ryzen, Motorola 68000.Intel 8051, Microchip PIC16F877A, Atmel ATmega328P (Arduino), ARM Cortex-M4.

Worked Examples

Example 1

1 (4 marks)

A digital computer uses a microprocessor with N address lines and an 8-bit data bus.

  1. Determine the maximum physical memory capacity in bytes and kilobytes (KB) when N = 16 (as in Intel 8085).
  2. Determine the physical memory capacity in megabytes (MB) when N = 20 (as in Intel 8086).
  3. Specify the starting and ending hexadecimal memory addresses for both systems, assuming memory begins at address 0000H.

Memory Capacity Formula for Byte-Addressable Architecture: In a byte-addressable system with an 8-bit data bus, each unique address points to exactly one byte (8 bits) of storage. With N address lines, the total number of distinct memory locations addressable by the CPU is: Total Locations = 2^N bytes.

Evaluating Capacity for N = 16 Address Lines (Intel 8085): For N = 16: Total Locations = 2^16 = 65,536 bytes. Converting to kilobytes where 1 KB = 1,024 bytes (2^10 bytes): Capacity = 65,536 / 1,024 = 64 KB.

Hexadecimal Address Range:

  • Starting address: 0000H (all 16 address bits set to 0).
  • Ending address: 65,535 in decimal = FFFFH (all 16 address bits set to 1).

Address space spans 0000H to FFFFH.

Evaluating Capacity for N = 20 Address Lines (Intel 8086): For N = 20: Total Locations = 2^20 = 1,048,576 bytes. Converting to megabytes where 1 MB = 1,048,576 bytes (2^20 bytes): Capacity = 1,048,576 / 1,048,576 = 1 MB (or 1,024 KB).

Hexadecimal Address Range:

  • Starting address: 00000H (all 20 address bits set to 0).
  • Ending address: 1,048,575 in decimal = FFFFFH (all 20 address bits set to 1).

Address space spans 00000H to FFFFFH.

Answer:
  1. For N = 16 address lines: Capacity = 65,536 bytes = 64 KB; address range is 0000H to FFFFH.
  2. For N = 20 address lines: Capacity = 1,048,576 bytes = 1 MB; address range is 00000H to FFFFFH.
Example 2

2 (4 marks)

System A uses an 8-bit microprocessor running at an internal clock frequency of 3 MHz, requiring an average of 4 clock cycles (T-states) per bus transfer. System B uses a 16-bit microprocessor running at 5 MHz, also requiring 4 clock cycles per bus transfer. Calculate:

  1. The maximum data transfer rate of the data bus for System A in bytes per second and KB/s.
  2. The maximum data transfer rate of the data bus for System B in bytes per second and MB/s.
  3. The bandwidth ratio between System B and System A.

Bus Transfer Cycle Rate Formula: Clock period T = 1 / f_clock. A bus transfer requiring 4 T-states takes: T_transfer = 4 / f_clock seconds. Number of transfers per second = f_clock / 4. Data transfer rate (Bandwidth) = (Transfers per second) * (Bytes transferred per bus cycle).

Evaluating System A (8-bit bus, 3 MHz): System A transfers 1 byte (8 bits) per bus cycle: Transfers/sec = 3,000,000 / 4 = 750,000 transfers/sec. Bandwidth_A = 750,000 * 1 byte = 750,000 bytes/sec. In KB/s (decimal standard): Bandwidth_A = 750,000 / 1,000 = 750 KB/s (or 732.42 KiB/s).

Evaluating System B (16-bit bus, 5 MHz): System B transfers 2 bytes (16 bits) simultaneously over its wider data bus: Transfers/sec = 5,000,000 / 4 = 1,250,000 transfers/sec. Bandwidth_B = 1,250,000 * 2 bytes = 2,500,000 bytes/sec. In MB/s: Bandwidth_B = 2,500,000 / 1,000,000 = 2.50 MB/s.

Bandwidth Ratio: Ratio = Bandwidth_B / Bandwidth_A = 2,500,000 / 750,000 = 10 / 3 = 3.333. System B achieves more than 3.33 times the data throughput of System A due to both a higher clock frequency and a doubled data bus width.

Answer:
  1. System A bandwidth: 750,000 bytes/s (750 KB/s).
  2. System B bandwidth: 2,500,000 bytes/s (2.50 MB/s).
  3. Bandwidth ratio: System B is 3.33 times faster than System A.
Example 3

3 (6 marks)

(Tribhuvan University Past exam questions Guide) An engineering firm is designing two products: Product X: An automated domestic washing machine controller that reads door and water-level sensors, drives a motor via triacs, displays cycle time on seven-segment LEDs, and costs under 5 USD in volume production. Product Y: A high-resolution medical ultrasound imaging workstation that performs fast Fourier image reconstruction, runs a full multi-window operating system, and renders real-time 3D scans. Which core processing architecture (Microprocessor or Microcontroller) must be chosen for each product? Justify both choices by examining silicon integration, memory requirements, peripheral interfaces, power, and unit production cost.

Product X Selection and Justification (Washing Machine Controller):

  • Selected Core: Microcontroller (MCU) (e.g., Microchip PIC or Atmel AVR / ARM Cortex-M0+).
  • Justification:
    1. Single-Chip Integration: An MCU contains built-in digital I/O pins to read switch contacts directly, PWM outputs to control the motor speed, and on-chip timers to track wash/rinse durations without requiring external glue logic chips.
    2. Memory Requirements: The control program is fixed and deterministic, fitting entirely into 8 KB to 32 KB of on-chip non-volatile Flash ROM; working data requires less than 1 KB of on-chip RAM.
    3. Cost and Space: Integrating CPU, RAM, ROM, and I/O into a single package reduces board area and eliminates external bus routing, allowing the complete control board to hit the target sub-5 USD price point.
    4. Reliability and Power: Low power consumption and immunity to external bus noise make the MCU rugged against motor electrical interference.

Product Y Selection and Justification (Ultrasound Medical Imaging Workstation):

  • Selected Core: Microprocessor (MPU / General-Purpose 64-bit CPU) (e.g., Intel Core i7 / AMD Ryzen with external high-speed DDR4/DDR5 RAM and discrete GPU).
  • Justification:
    1. Heavy Computational Load: Real-time 2D/3D image reconstruction requires floating-point matrix transformations and FFT algorithms running at gigahertz clock rates with advanced superscalar pipelines.
    2. Massive Memory Footprint: Storing volumetric scan frames and running a full multitasking operating system (such as Linux or Windows Embedded) requires gigabytes of high-bandwidth RAM and terabytes of SSD secondary storage—capacities impossible on any microcontroller die.
    3. Rich Peripheral and Display Connectivity: The system requires high-speed PCIe buses for acquisition cards, Gigabit Ethernet, and multi-display 4K HDMI/DisplayPort video outputs managed through an operating system device-driver hierarchy.
    4. Cost Tolerance: Medical equipment has a high selling price, making the higher multi-chip component cost and thermal power budget completely acceptable.
Answer:

Choose a Microcontroller for Product X because of single-chip on-chip I/O and timers, low power, fixed small memory needs, and low unit manufacturing cost. Choose a Microprocessor for Product Y due to the intensive gigahertz computation, multi-gigabyte external RAM and secondary storage needs, and multi-window operating system requirements.


Exercises

Exercises

Question 1

Define a microprocessor. Briefly trace the evolution of microprocessors from the first generation to the fifth generation, highlighting word length, clock frequency, and memory capacity for each generation.

Definition of a Microprocessor: A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic integrated circuit chip that reads binary instructions from memory, accepts digital data as input, processes the data according to the instructions through an Arithmetic and Logic Unit (ALU), and outputs the results.

Five Generations of Microprocessor Evolution:

  1. First Generation (1971–1973): 4-bit word size; PMOS technology; clock speeds 108 kHz to 740 kHz; addressed up to 4 KB of memory (e.g., Intel 4004, 4040).
  2. Second Generation (1974–1978): 8-bit word size; NMOS/HMOS technology with single +5 V supply; clock speeds 2 MHz to 6 MHz; 16-bit address bus addressing 64 KB of memory; hardware vectored interrupts (e.g., Intel 8085, Motorola 6800, Zilog Z80).
  3. Third Generation (1978–1981): 16-bit word size; HMOS technology; clock speeds 5 MHz to 12.5 MHz; 20-bit to 24-bit address buses addressing 1 MB to 16 MB; introduced hardware pipelining with prefetch queues and segmented memory (e.g., Intel 8086, 80286, Motorola 68000).
  4. Fourth Generation (1985–1992): 32-bit word size; high-density CMOS technology; clock speeds 16 MHz to 100 MHz; 32-bit address bus addressing 4 GB; on-chip L1 cache, on-chip floating-point coprocessor (FPU), and paged virtual memory (e.g., Intel 80386, 80486).
  5. Fifth Generation & Beyond (1993–Present): 64-bit word size; sub-micron FinFET technology; clock speeds from 60 MHz to over 5 GHz; superscalar architecture with parallel execution units, dynamic branch prediction, multicore dies, and SIMD vector instructions (e.g., Intel Pentium, Core i3/i5/i7/i9, AMD Ryzen, 64-bit ARM Cortex).
Answer:

A microprocessor is a single-chip programmable VLSI CPU that executes instructions fetched from memory. It evolved from 4-bit processors (Intel 4004, 4 KB memory) through 8-bit (8085, 64 KB memory), 16-bit (8086, 1 MB memory), 32-bit (80386/486, 4 GB memory), to modern 64-bit superscalar multicore processors (Intel Core/AMD Ryzen, multi-terabyte memory).

Question 2

Draw and explain the basic block diagram of a digital computer. Describe the function of each block and how they are interconnected by the system bus.

Five Functional Blocks of a Digital Computer:

  1. Input Unit: Transduces external user commands and sensor readings from electrical/mechanical forms into binary digital codes (keyboards, scanners, ADCs).
  2. Central Processing Unit (CPU): Executes instructions and governs system timing; subdivided into:
    • Control Unit (CU): Fetches, decodes, and sequences micro-operations.
    • Arithmetic and Logic Unit (ALU): Carries out binary additions, subtractions, AND, OR, XOR, and bit-shift calculations.
    • Internal Registers: Ultra-fast temporary storage for data words and memory addresses.
  3. Memory Unit:
    • Primary Memory (RAM/ROM): High-speed memory mapped into the CPU address space; RAM stores active programs/data, while ROM holds startup firmware.
    • Secondary Storage (HDD/SSD): Large-capacity non-volatile storage accessed through I/O controllers.
  4. Output Unit: Transduces binary data processed by the CPU into visual, printed, or physical actuator responses (monitors, printers, DACs).
  5. System Bus: The tripartite electrical connection pathway linking the blocks together:
    • Address Bus: Unidirectional lines driven by the CPU to select a specific memory cell or I/O port.
    • Data Bus: Bidirectional lines carrying data words between the CPU, memory, and I/O devices.
    • Control Bus: Bidirectional lines transmitting timing, read/write strobes, interrupt requests, and acknowledge signals.

Interconnection and Operation: The CPU places the memory address on the address bus, asserts a read/write control strobe on the control bus, and transfers information to or from the target memory or I/O device across the data bus, coordinated synchronously by master clock pulses.

Answer:

A digital computer consists of an Input Unit, CPU (ALU, CU, Registers), Memory Unit (Primary RAM/ROM and Secondary storage), and Output Unit, all interconnected by a three-part System Bus consisting of a unidirectional Address Bus, bidirectional Data Bus, and bidirectional Control Bus.

Question 3

Differentiate between a microprocessor and a microcontroller with respect to internal architecture, memory, I/O interfacing, cost, power consumption, and typical application domains.

Tabular Comparison Between Microprocessor and Microcontroller:

  • Silicon Architecture: A microprocessor contains only the CPU (ALU, Control Unit, registers) on chip; RAM, ROM, timers, and I/O controllers must be connected externally. A microcontroller integrates the CPU, RAM, ROM/Flash, timers, and digital/analog I/O ports onto a single IC chip.
  • Memory Flexibility: A microprocessor system has flexible and easily expandable memory (e.g., adding DIMM modules or memory chips up to gigabytes), whereas a microcontroller has fixed on-chip memory (typically a few KB to a few MB) that is difficult or impossible to expand.
  • I/O Interfacing: Microprocessors require external peripheral interface chips (such as 8255 PPI or USB controllers) to communicate with I/O devices. Microcontrollers feature built-in programmable I/O ports, ADCs, and serial UART/SPI/I2C controllers directly accessible via special function registers.
  • Cost and Board Space: Microprocessor systems require multi-layer PCBs, external memory chips, and power-management circuitry, resulting in high component and board cost. Microcontrollers form a self-contained, compact, low-cost system on a simple PCB.
  • Power Consumption: Microprocessors run at high clock frequencies with high power dissipation (often requiring heatsinks or fans). Microcontrollers consume very low power (milliwatts to microwatts) and support deep-sleep battery modes.
  • Applications: Microprocessors power general-purpose computing platforms (laptops, servers, desktop PCs). Microcontrollers govern dedicated embedded control tasks (appliances, engine control modules, robotics, IoT devices).
Answer:

A microprocessor contains only the CPU core on-chip and relies on external RAM, ROM, and I/O chips for high-performance general-purpose computing, while a microcontroller incorporates CPU, RAM, ROM, timers, and I/O ports onto a single IC for low-cost, low-power dedicated embedded control.

Question 4

A memory subsystem is organized into 16 MB of byte-wide memory.

  1. How many address lines are required to access any location in this memory?
  2. If this memory space is constructed using 16 KB x 8 SRAM chips, how many chips are required in total?
  3. What is the hexadecimal address range for this 16 MB memory system starting from address 000000H?

1. Computing the Number of Address Lines for 16 MB: Memory capacity = 16 MB = 16 * 2^20 bytes = 2^4 * 2^20 bytes = 2^24 bytes. Since the memory is byte-wide (each address location stores 1 byte), the number of distinct addresses is 2^24. Therefore, the number of address lines required is N = 24 lines (A0 to A23).

2. Computing Total 16 KB x 8 Memory Chips Required: Capacity of one chip = 16 KB = 16 * 1,024 bytes = 16,384 bytes = 2^14 bytes. Total system capacity = 16 MB = 16,777,216 bytes. Number of chips = (Total Memory Capacity) / (Capacity per Chip) Number of chips = (16 * 1,024 * 1,024) / (16 * 1,024) = 1,024 chips. (Equivalently: 2^24 / 2^14 = 2^10 = 1,024 chips).

3. Hexadecimal Address Range: Starting address: 000000H (24 bits of 0). Ending address: Total locations - 1 = 16,777,216 - 1 = 16,777,215. In hexadecimal: 16,777,215 = FFFFFFH. Address range = 000000H to FFFFFFH.

Answer:
  1. Number of address lines required: 24 address lines (A0–A23).
  2. Number of 16 KB x 8 chips required: 1,024 chips.
  3. Hexadecimal address range: 000000H to FFFFFFH.
Question 5

Explain the specific functions performed by the Control Unit (CU), Arithmetic Logic Unit (ALU), and Register Array within a microprocessor during the execution of an instruction.

Role of the Control Unit (CU):

  • Coordinates and directs all operations of the CPU and connected peripherals.
  • Manages the instruction cycle: fetches an instruction opcode from memory into the Instruction Register (IR) using the Program Counter (PC).
  • Decodes the opcode using internal combinational logic to determine the required micro-operations.
  • Generates synchronized control signals (such as Memory Read, Memory Write, I/O Read, I/O Write, and internal register transfer gates) to drive the datapath.

Role of the Arithmetic and Logic Unit (ALU):

  • Performs binary arithmetic operations: addition, subtraction, increment, and decrement.
  • Performs bitwise logical operations: AND, OR, XOR, and bit inversion (NOT).
  • Executes bit rotation and shift operations on register contents.
  • Evaluates the mathematical outcome of every operation and updates the status flip-flops in the Flag Register (Zero flag, Sign flag, Carry flag, Parity flag, and Auxiliary Carry flag).

Role of the Register Array:

  • Provides ultra-fast temporary storage for data operands and intermediate computational results directly adjacent to the ALU, avoiding slow off-chip memory bus transactions.
  • Provides specialized memory address pointers:
    • Program Counter (PC): Holds the 16-bit address of the next sequential instruction to be fetched from memory.
    • Stack Pointer (SP): Tracks the top of the LIFO stack in RAM for subroutine calls and interrupt returns.
    • General-Purpose Registers (e.g., B, C, D, E, H, L in 8085): Used individually for 8-bit operands or paired for 16-bit address and data manipulations.
Answer:

The Control Unit fetches, decodes, and sequences micro-operations; the ALU executes arithmetic, logic, and status flag updates; and the Register Array provides high-speed temporary storage for data operands, intermediate results, and memory pointer addresses (PC, SP, HL).

Past exam questions for Microprocessors

Bus Organization, Stored-Program Concept & Processing Cycle →