Академический Документы
Профессиональный Документы
Культура Документы
INPUT OUTPUT
Keyboard Monitor
Mouse PROCESSING UNIT Printer
Scanner LED
Disk ALU TEMP Disk
CONTROL UNIT
PC IR
Functional Units
• ALU = Arithmetic and Logic Unit
• Have many functional units.
some of them special-purpose
(multiply, square root, …)
• Performs ADD, SUB, AND, NOT
Word Size
• number of bits normally processed by ALU in one
instruction (8/16/32/64)
Registers: Small, temporary storage
• Working Register: Serve as “scratch pad” for the
instruction Interpreter and for function unit
• General Register: Operands and results of functional
units
• Used by programmer
• Have n registers (R0, …, Rn)
Decode instruction
Evaluate address
Execute operation
Store result
A computer’s instructions and their formats is known as its Instruction Set Architecture (ISA).
EA
Examples:
• add offset to base register (as in LDR)
OP
• add offset to PC (or to part of PC)
• add offset to zero
EX
EA
Examples:
• load data from memory (LDR)
OP
• read data from register file (ADD)
EX
EA
Examples:
• send operands to ALU and assert ADD signal
OP
• do nothing (e.g., for loads and stores)
EX
EA
Examples:
• result of ADD is placed in destination register
OP
• result of memory load is placed in destination register
• for store instruction, data is stored to memory
• write address to MAR, data to MDR EX
• assert WRITE signal to memory
S
INPUT OUTPUT
Keyboard Monitor
Mouse PROCESSING UNIT Printer
Scanner LED
Disk ALU TEMP Disk
CONTROL UNIT
PC IR