Chapter 2 Computer Architecture
Chapter 2 Computer Architecture
Mathew Abisai
University of Namibia
CHAPTER 2 | COMPUTER ARCHITECTURE
Learning Objectives:
In this course, you will learn about
• What is computer architecture
• The structure of computer architecture
• Types of computer architectures
• Von Neumann Architecture
• The Fetch and Execute Cycle
• The System Bus
COMPUTER ARCHITECTURE
• Computer architecture can be defined as a set of rules and methods that describes the
functionality, management and implementation of computers.
• It is nothing but the rules by which a computer system performs and operates.
• In simple terms, computer architecture is the basis upon which computer systems are to
be developed.
• Computer architecture defines the structure and behavior of a computer system,
including its instruction set architecture (ISA), memory hierarchy, input/output systems,
and networking capabilities.
COMPUTER ARCHITECTURE
• The instruction set architecture (ISA) is a set of instructions that a processor can
execute.
• It defines the programming interface between the hardware and software components
of a computer system.
• The memory hierarchy defines the different levels of memory used in a computer
system, from the fastest and most expensive cache memory to the slower and larger
main memory and secondary storage devices.
• Input/output systems allow the computer system to communicate with external devices
such as keyboards, printers, and disk drives.
• Networking capabilities allow computer systems to connect to each other and share
resources over a network.
COMPUTER ARCHITECTURE
STRUCTURE
• Processor
• Memory
• Peripherals
• All the above parts are connected with the help of system bus, which consist of address
bus, data bus and control bus.
• The following diagram depicts a computer architecture:
COMPUTER ARCHITECTURE
• There are various categories of architecture that exist in our computer systems:
SYSTEM BUS
A system bus is a single computer bus that connects the major components of a computer
system, combining the functions of a data bus to carry information, an address bus to
determine where it should be sent or read from, and a control bus to determine its
operation.
Mathew Abisai |University of Namibia
CHAPTER 2 | COMPUTER ARCHITECTURE
THE CPU
• This is the electronic circuit responsible for executing the instructions of a computer
program
• It is also called the microprocessor or the processor
• Contains the ALU, CU and various registers
• The ALU allows arithmetic and logical operations to be carried out.
• The control unit controls the operations of the computer, ALU, memory and I/O devices,
telling them how to respond to the program instruction it has just read and interpreted
from the main memory.
• It also provides the timing and control signals required by other computer components.
THE REGISTERS
TYPES OF REGISTERS
• Memory Address Register (MAR): Holds the memory location of data that needs to be
accessed
• Memory Data Register (MDR): Holds the data that is being transformed to and from
memory.
• Accumulator (AC): Where intermediate arithmetic and logic results are stored.
• Program Counter (PC): contains the address of the next instruction to be executed.
To see these registers in action, we need to understand the fetch execute cycle in the next
slide.
1. Fetch: The CPU fetches the next instruction from memory. The instruction is located at the address
stored in the program counter (PC) register. The PC is then incremented to point to the next
instruction in memory.
2. Decode: The CPU decodes the instruction that was fetched. The instruction is interpreted to
determine what operation should be performed and what data is needed.
3. Execute: The CPU performs the operation specified by the instruction and updates the program
counter to point to the next instruction.
• This cycle repeats continuously, with the CPU fetching, decoding, and executing
instructions one at a time, in sequence.
• The fetch-execute cycle is fundamental to the operation of a CPU and is what allows a
computer to execute programs and perform computations.
THE BUSES
THE BUSES
•Data Bus:
•The data bus is used to transfer data between the different components of a computer system.
•It is a bidirectional bus that allows data to flow in both directions.
•Address Bus:
•The address bus is used to specify the memory location or input/output port that is being accessed.
•It is a unidirectional bus that carries the address of the memory location or port.
•Control Bus:
•The control bus is used to transmit control signals between the different components of a computer
system.
•It carries signals such as read/write signals, interrupt signals, and clock signals.
I/O UNIT
• An I/O (input/output) unit is a component of a computer system that manages the
communication between the CPU (central processing unit) and external devices such as storage
devices, network devices, and input/output devices.
• The I/O unit contains input/output controllers that are responsible for controlling the flow of data
between the computer system and external devices. It also contains input/output interfaces that
allow external devices to communicate with the computer system.
• When an external device wants to communicate with the computer system, it sends a signal to
the I/O controller, which in turn sends a request to the CPU. The CPU then sends a signal back to
the I/O controller, which manages the transfer of data between the computer system and the
external device.
• The I/O unit is responsible for ensuring that data is transferred between the computer system
and external devices in a timely and efficient manner. It also provides an interface for the user to
interact with the computer system, allowing them to input data and receive output from the
computer.
Mathew Abisai |University of Namibia
THANK YOU