1 Introduction

Microprocessor · Unit 1 · 4 hrs

Introduction

Exam-focused notes for Introduction (Microprocessor, CSC167): what the TU syllabus asks and how it has actually been tested, with 2 solved past questions from this unit.

Introduction in short

This chapter introduces the microprocessor as the processing core of a computer system: what it is, how its internal building blocks work together, the three buses that carry information between it and the rest of the system, and how a complete microprocessor-based system is organized around those buses.

Introduction: notes

Introduction to Microprocessor

A microprocessor is a single integrated circuit (IC) that packs the complete arithmetic, logic and control functions of a central processing unit onto one semiconductor chip. Built from transistors etched onto silicon, it fetches instructions from memory, decodes them, and carries out the arithmetic and logical operations on data that a program requires. Because the entire CPU logic lives on one chip, microprocessors made computers dramatically smaller, cheaper and more reliable than the multi-cabinet processors that preceded them.

Marcian Edward Hoff, working at Intel, is generally credited as the architect behind the first commercial microprocessor. Intel released the 4004 in 1971: a 4-bit device built from about 2,300 transistors, aimed originally at calculator designs. Intel followed it with the 8-bit 8008 and then the 8080, which became the first widely used 8-bit microprocessor and was quickly cloned and extended by competitors such as Zilog's Z80. Intel's own follow-on, the 8085, was an enhanced, upward-compatible version of the 8080 built to run from a single +5V supply. The next major step was the 16-bit 8086, whose family (extended through the 80286 and 80386) is covered later in this subject, and the same lineage eventually grew into the Pentium family and today's multi-core i3, i5 and i7 processors.

Two broad ways of organizing a processor's memory are worth distinguishing at this stage. In the Von Neumann architecture, instructions and data share a single memory and a single bus, so the control unit, ALU and memory are all connected through one common path. In the Harvard architecture, instructions and data are held in separate memories reached through separate buses. The table below summarizes the practical differences.

PointHarvard architectureVon Neumann architecture
MemoryTwo separate memories for instructions and dataOne shared memory for instructions and data
BusSeparate instruction bus and data busSingle shared bus for instructions and data
DesignMore complex to designSimpler to design
CycleCan complete an instruction cycle in one cycle, since instruction and data access do not compete for the same busNeeds multiple cycles per instruction because instruction fetch and data access share the same bus
PipeliningEasier to pipeline, so higher performance is achievableComparatively lower performance because of the shared-bus bottleneck

What this unit covers

  • Introduction to Microprocessor
  • Components of a Microprocessor: Registers, ALU and control & timing
  • System bus (data, address and control bus)
  • Microprocessor systems with bus organization

System bus

2075 · 5 marks

What is system bus? Explain different types of system bus in detail. [5]

Show solved answer

System Bus

Definition

A system bus is a group of conducting wires (electrical pathways) that connects the CPU, memory, and input/output devices, allowing them to communicate and transfer information with each other. All peripherals are connected to the microprocessor through the bus.

Bus is a group of conducting wires which carries information, and all the peripherals are connected to the microprocessor through the bus.


Types of System Bus

There are three types of system buses:


1. Address Bus

  • A group of conducting wires that carries address information only.
  • It is a unidirectional bus, meaning data flows in one direction only - from the microprocessor to memory or from the microprocessor to Input/Output devices.
  • The length of the address bus determines the amount of memory a system can address.
    • For example, the 8085 microprocessor has a 16-bit address bus, which means it can address 2^16 = 65,536 (64KB) memory locations.
  • The length of the address bus varies with the type of microprocessor.

2. Data Bus

  • A group of conducting wires that carries data to and from memory and I/O devices.
  • It is a bidirectional bus, meaning data can flow in both directions (from CPU to memory and from memory to CPU).
  • The width of the data bus is equal to the word length of the processor.
    • For example, the 8085 microprocessor has an 8-bit data bus.
  • A wider data bus allows more data to be transferred at once, improving system performance.

3. Control Bus

  • A group of conducting wires that carries control signals from the CPU to memory and I/O devices.
  • It coordinates and controls the operations of the system components.
  • It carries signals such as:
    • Read/Write signals - to indicate whether data is being read from or written to memory
    • Interrupt signals - to handle interrupt requests
    • Clock signals - to synchronize operations
  • It can be both unidirectional and bidirectional depending on the specific control line.

Summary Table

FeatureAddress BusData BusControl Bus
PurposeCarries addressesCarries dataCarries control signals
DirectionUnidirectionalBidirectionalBoth
8085 Width16-bit8-bitVarious
FlowCPU to Memory/IOBoth waysCPU to/from components

Bus Organization Diagram (8085)

        +------------------+
        |   Microprocessor |
        |     (8085)       |
        +------------------+
              |    |    |
    Address   | Data| Control
      Bus     | Bus |  Bus
    (16-bit)  |(8-bit)| 
              |    |    |
        +-----+----+----+-----+
        |                     |
     Memory               I/O Devices
     (RAM/ROM)

The three buses together form the system bus, which is the backbone of communication in a microprocessor-based system.

Open this answer on its own page →

2080.1 · 5 marks

Explain different types of system buses and also indicate whether they are unidirectional or bidirectional. [5]

A bus is a group of conducting wires (lines) that connects different components of a computer system (CPU, memory, and I/O devices) and carries information between them. There are three types of system buses: --- - A group of conducting wires that carries memory addresses or I/O port addresses. -...

Open this answer on its own page →