export_week 8 instruction set architectures Flashcards
,
Instruction Set Architectures, what do it do?
ISA
ISA determines instruction formats
,
– The LMC is a
one-address architecture (an accumulator-based machine).–
e.g., the instruction ADD X
,
other instructions set and why
There are other instruction set architectures, all based on the number of
explicit operands .
0-address (stack)
1-address (accumulator)
2-address
3-addres
,
0-Address Machines
– All operands for binary operations are implicit on the stack. Only push/pop
reference memory.
– e.g., calculating
a = a * b + c – d * e
,
1-Address Machines
Accumulator is a source and
destination. Second source is
explicit.
,
1-Address Machines
10 memory
references, not
including
instruction fetch
,
2-Address Machines
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_245-14A61F370A37A2BD282.png
,
2-Address Machines
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_246-14A61F45B74229CEDAE.png
,
2-Address Machines with registers ?
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_247-14A61F50C171EEB8E26.png
,
3-Address Machines
– One destination operand,
two source operands,
all explicit
,
3-Address Machines eg without registers ?
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_248-14A61F622D5078C6512.png
,
3-Address Machines without registers?
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_249-14A61F7191F1FB1AE34.png
,
6 memory accesses;
general purpose
registers make a
substantial
difference.
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_250-14A61F8185A11F9B07D.png
,
Comparison
– Assume 8 registers (3 bits),
- 32 op-codes (5 bits), 15-bit addresses,
- 16-bit integers.
– Which ISA accesses memory the least?
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_251-14A61F9BCDF25EF0299.png
,
0-address
(stack)
,
1-address
(accumulator)
,
2-address
(register variant is 11⁄2-address)
,
3-address
(with register variant
,
The instruction set architecture determines
the format of instructions (and
therefore the assembly language).
,
Four basic types with variations:?
- 0-address (stack)
- 1-address (accumulator)
- 2-address (register variant is 11⁄2-address)
- 3-address (with register variant
,
ISA dramatically affects what ?
the number of times memory is accessed.
,
CISC
Complex Instruction Set Computers
,
RISC
Reduced Instruction Set Computers
,
Motivation for CISC
Early computers had very little and very slow memory. Thus, the fewer instructions fetched, the faster the computer could be.
,
General characteristics: CISC
High number of operations (300+)
Compilers have less work to do to translate HLL into machine code.
Large number of instruction formats
Multi-clock cycle instructions
Fewer registers; more memory access
Large number of transistors, CPU complexity, therefore higher CPU prices
,
Motivation for RISC
As memory capacities grew, there was less need for high code density. Also, pushing clock rates higher on CISC hardware was difficult. A simpler processor could be clocked faster
,
– General characteristics of RISC
- Lower number of operations (150+)
- Compilers have more work to do.
- Small number of instruction formats
- All instructions take one cycle.
- Load/store architecture
- Smaller number of transistors, lower CPU complexity, therefore lower CPU prices
,
RISC vs. CISC
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_252-14A6227F56E5A3FFFE5.png
,
did you know about transistor
– CISC processors require more CPU transistors in an effort to maximize code
density in memory
,
did you know about the Risc processor
RISC processors use a simpler design in an effort to reduce the number of cycles per instruction
,
The only major CISC architecture today is
the Intel x86 and x64. Nearly all else
is RISC.