Title: CPU Architectures
1CPU Architectures
2The von Neumann Cycle
pc 0 do instruction memorypc
decode(instruction) fetch(operands)
execute() store(results) while
(instruction ! halt)
3Accumulator Architecture
RAM
MAR
ALU
Address Bus
Accumulator
Data Bus
MDR
CPU
4Example of Accumulator Machine
- EDSAC first stored program computer,
Cambridge University, 1949 (Wilkes)
5Stack Architecture
RAM
MAR
ALU
Address Bus
Stack
MDR
Data Bus
CPU
6Examples of Stack Architecture
- HP 15C Calculator
- Java Virtual Machine
7Load/Store Architecture
RAM
MAR
ALU
Address Bus
Data Bus
MDR
CPU
8Examples of Load/Store Architecture
- PC
- SPARC
- IBM Mainframes
- Almost all other types of computers
9Typical SPARC program code
save sp, -96, sp mov 3, l0
mov 11, l1 add l0, l1, l2
mov 7, l3 sub l0, l3, l4 smul
l2, l3, l1 mov 1, l2 add l0,
l2, l2 sdiv l1, l2, o1
! This code evaluates the ! polynomial ! (x
11)(x 7)/(x 1)
10SPARC Architecture
- CPU Instruction Set Architecture (ISA) derived
from a RISC lineage. - Allows for a wide variety of chip and system
implementations. - Designed for optimizing compilers and high
execution rate. - Easily pipelined.
11SPARC Features
- 32-bit address space
- Only three basic instruction formats
- Large windowed register file
- Delayed transfer of control