Beruflich Dokumente
Kultur Dokumente
of the Computer
Chapter 2
software
instruction set
hardware
Portion of the machine that is visible to the programmer or the compiler writer.
Control
ALU
Program
Data
CSE 313: Computer Architecture
4
Stored Program Concept
Instructions are bits
Programs are stored in memory
— to be read or written just like data
Fetch & Execute Cycle
Instructions are fetched and put into a special register
Bits in the register "control" the subsequent actions
Fetch the “next” instruction and continue
Instruction
Determine required actions and instruction size
Decode
Operand
Locate and obtain operand data
Fetch
Result
Deposit results in storage for later use
Store
Next
Determine successor instruction
Instruction
CSE 313: Computer Architecture
6
Basic ISA Classes
Memory to Memory Machines
Every instruction contains a full memory
address for each operand
Maybe the simplest ISA design
However memory is slow
Memory is big (lots of address bits)
Register Register
Memory to Memory Accumulator Stack (Register-memory) (Load-store)
mov A B load B push B load R1 B Load R1 B
add A C add C push C add R1 C Load R2 C
store A add store A R1 Add R1 R1 R2
pop A Store A R1