Computer Architecture - Lecture 03
Computer Architecture - Lecture 03
Architecture
Lecture 03
Instruction
Execution
Instructor: Sultana Jahan Soheli
Assistant Professor, ICE, NSTU
Reference Books
• Computer Organization and
Designing for Performance- William
Architecture:
Stallings
(8th Edition)
– Any later edition is fine
Overview
• At a top level, a computer consists of CPU
(central processing unit), memory, and I/O
components, with one or more modules of each type
• These components are interconnected in some
fashion to achieve the basic function of the computer
• At a top level, we can describe a computer system by
1. Describing the external behavior of each component
— that is, the data and control signals that it
exchanges with other components; and
2. Describing the interconnection and the
controls requiredstructure
to manage the use of
interconnection the
structure
Overview
• Virtually all contemporary computer designs are
based on concepts developed by John von
Neumann at the Institute for Advanced Studies,
Princeton
• Such a design is referred to as the von Neumann
architecture and is based on three key concepts:
– Data and instructions are stored in a single
read–write
memory
– The contents of this memory are addressable by
location, without regard to the type of data contained
there
– Execution occurs in a sequential fashion (unless
explicitly modified) from one instruction to the next
Types of Programming
• Two types:
– Hardwired Programming
– Software Programming
GP Processor
• Figure b indicates two major components of
the system: an instruction interpreter and a
module of general-purpose arithmetic and logic
functions
– These two constitute the CPU
• Several other components are needed to yield
a
functioning computer
• Data and instructions must be put into the system
• and results must
A place be shown in realizable forms
is also for storing the data and
– We need I/O module for that
needed
instructions
• We need Memory for that
GP Processor
GP Processor
• Figure illustrates these top-level components
• CPU exchanges data with memory
• For this purpose, it typically makes use of two internal
(to the CPU) registers: a memory address
register (MAR), which specifies the address in
memory for the next read or write, and a
memory buffer register (MBR), which contains the
data to be written into memory or receives the data
read from memory
• Similarly, an I/O address register (I/OAR)
specifies a
particular I/O device
• An I/O buffer (I/OBR) register is used for the
exchange of data between an I/O module and the CPU
Function of GPP
• The basic function performed by a computer
is execution of a program, which consists of a set
of instructions stored in memory
• In its simplest form, instruction processing consists
of two steps:
• The processor reads (fetches) instructions
from
memory one at a time and executes each instruction
• Program execution consists of repeating the process
of
instruction fetch and instruction execution
• The processing required for a single instruction is
called an instruction cycle
Instruction Fetch and Execute