Lec-27 EE-222
Lec-27 EE-222
SYSTEMS
EE-222
CISC RISC
MULT 2:3, 5:2 LOAD A, 2:3
LOAD B, 5:2
PROD A, B
STORE 2:3, A
• CISC:
• Variable size instructions -> Complex instruction decoder -> More transistors
• Multi-cycle instructions
• RISC:
• Simplified instructions -> simple instruction decoder
• Single-cycle instructions (mostly)
CHANGING THE ARCHITECTURE
CISC VS. RISC
• Early trend:
• Add more and more instructions to do
elaborate operations – Complex Instruction Set
Computing (CISC)
–
– difficult to learn and comprehend language
super-complicated (slow?) hardware
• Later on:
• Opposite philosophy later began to dominate:
Reduced Instruction Set Computing (RISC)
– Simpler (and smaller) instruction set makes it
easier to build fast hardware
– Let software do the complicated operations by
composing simpler ones
RISC ARCHITECTURE
7
RISC ARCHITECTURE
• Disadvantage
• Can make the assembly programming more difficult
8
RISC ARCHITECTURE
• Feature 4: Load/Store
LDS R20, 0x200
LDS R21, 0x220
ADD R20, R21
STS 0x230, R20
PROGRAM
Flash ROM ALU
PC: Data
CPU Bus
Instruction dec.
Program
Bus
Interrupt Other
OSC Ports
Unit Peripherals
I/O
PINS
9
RISC ARCHITECTURE
Execute
11
MAINSTREAM ISAS