Академический Документы
Профессиональный Документы
Культура Документы
Objectives
●Computer Architecture
●Types of Computer
●Von Neumann Model
●CPU and Memory
●The Microprocessor
●Instruction Set
●Fetch-Execute Cycle
Computing Systems
Computer Architecture
Computer :
device capable of performing
computations and making logical decisions
User
CPU and Instruction Set
High-level
Hardware and Software Components Language Application
Software
– Example Hardware Assembly
Language
• Name some hardware?
OS
– Example Software: Machine
Code
• OS, Application, Language
Hardware
Computing Systems
Types of Computer
●Embedded controllers
●Mainframes/Supercomputers
●Desktop/Laptops/notebooks
●Smart phones
●Client/Server
●Cloud
●Virtual
●...
Computing Systems
Von Neumann Model of a
Computer
Computing Systems
Central Processing Unit (CPU),
● One or more registers:
Fast temporary stores for instructions and data
● Arithmetic and logic unit (ALU):
Performs arithmetic calculations:
addition, subtraction …
and logical operations:
and, or, not, shift …
● Control Unit (CU):
Decodes each machine instruction and sends signals to other
components for carrying out the instruction.
Computing Systems
CPU and Memory
● Buses
– Address
– Control
– Data
● CPU
○ Control Unit (CU) ● Memory
○ Arithmetic and Logic Unit (ALU) ○ RAM/ROM
○ Registers
Computing Systems
CPU
Computing Systems
Instruction Set
●Each processor has defined set of instructions it can
execute eg:
●move (data movement instruction)
●add, subtract (arithmetic instructions)
●and, or, not, xor (logic instructions)
●branch, conditional branch, stop (control)
Computing Systems
Fetch-Execute Cycle
●Program instructions loaded into memory
by OS before execution can start.
1.Fetch: instruction into the IR
(address of instruction in IP)
2.Decoded by Control Unit
3.Execute:
●Run by Clock
●NB Flag register
Computing Systems
CPU/Microprocessor
●What do the
various
components
do?
●How do they
work together?
Computing Systems
Subroutines, Stack and Control Unit
●Subroutines
Branch instructions
Functions/Procedures
– CPU retains return address on stack
●Stack Pointer – address of stack top
●Control Unit
Sends instructions to CPU components e.g.
Increment a register, copy a value from one register to another,
Read/Write to/from memory, perform an ALU operation
Computing Systems
Microprocessor
●Typically an integrated
circuit (IC) that has a full
central processing unit is
called a microprocessor
(μp).
Computing Systems
Microprocessor Development
Computing Systems
Moore’s Law
https://upload.wikimedia.org/wikipedia/commons/6/62/Moore%27s_Law_over_120_Years.png
Questions
Computing Systems