Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Definitions:
Processor: ALU + Controller
Computer: processor + memory + I/O
Computer architecture: interconnections of computer
modules
Instruction register: holds a fetched instruction while
processor executes this instruction
Program counter: pointer to next instruction in
memory to get
Condition code register: set of flags that control
processor operations (e.g., conditional branch
execution)
Harvard Architecture
ALU
I/O
data bus
read/write
data address bus
Controller
instruction bus
instruction
address bus
Data
RAM
Instruction
RAM
Instruction Set
Group of valid instructions that a processor can
execute (depends on processor)
Can be further divided into subgroups:
Arithmetic operations
add, subtract, multiply, divide, 2s complement op.
Logical operations
AND, OR, XOR, Complement
Load/Store operations:
Input/Output operations:
move data from I/O into processor or vice versa
Input: I/O
processor
Output: processor
I/O
Instruction Set
Can be further divided into subgroups:
Branch
Change the order of instruction execution (jump to different
program section)
How? By changing contents of PC
Unconditional branches/jumps
Branch always taken
Conditional branch
Branch taken depending on condition code register flags
Stack operations
To implement dynamic data storage
Can push registers onto the stack and pull them back off
Subroutine operations
To implement function/procedure calls/returns