Instruction-Set Variations

Download Report

Transcript Instruction-Set Variations

1
8.1 Complex instructions
Table 8.1 Examples of complex instructions in two popular modern microprocessors (Pentium, PowerPC) and two computer families of historical
significance (System/360–370, VAX).
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
2
8.2 Alternative addressing mode
• Implied : 0-address, stack machine, inc, dec, ...
• Immediate addressing : 運算元(常數)在指令中
• Register addressing : 運算元為reg.
• Base addressing: base + offset
• Relative addressing: PC-relative, the reference
address is implicit.
• Direct addressing:指令中的數字是運算元的地址
• Indexed addressing:用reg.當索引
• Update addressing: reg.自動+1, -1
• Indirect addressing:先去記憶體拿運算元的地址,
再拿一次才是運算元
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
3
Figure 8.1 Schematic representation of more elaborate addressing modes not supported in MiniMIPS.
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
4
8.2 Alternative instruction formats
Figure 8.2 Examples of MiniMIPS instructions with 0 to 3 addresses; shaded fields are unused.
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
5
Figure 8.3 Example 80x86 instructions ranging in width from 1 to 6 bytes; much wider instructions (up to 15 bytes) also exist.
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
6
8.4 instruction set design and evolution
Figure 8.4 Processor design and implementation process.
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
7
Table 8.2 Evolution of the x86 instruction set and architecture in some of the Intel microprocessors, and comparable products from AMD.
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
8
8.5 The RISC/CISC Dichotomy
• RISC:
–
–
–
–
Small instruction set
Load/Store architecture
Limited addressing modes
Simple uniform instruction formats
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
9
8.6 where to Draw the line -URISC
Figure 8.5 Instruction format and hardware structure for URISC.
Computer Architecture
Parhami
Copyright  2005 by Oxford University Press, Inc.
10