export_week 8 instruction set architectures Flashcards

(31 cards)

1
Q

,

Instruction Set Architectures, what do it do?

A

ISA

ISA determines instruction formats

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

,

– The LMC is a

A

one-address architecture (an accumulator-based machine).–

e.g., the instruction ADD X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

,

other instructions set and why

A

There are other instruction set architectures, all based on the number of

explicit operands .

0-address (stack)

1-address (accumulator)

2-address

3-addres

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

,

0-Address Machines

A

– All operands for binary operations are implicit on the stack. Only push/pop

reference memory.

– e.g., calculating

a = a * b + c – d * e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

,

1-Address Machines

A

Accumulator is a source and

destination. Second source is

explicit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

,

1-Address Machines

A

10 memory

references, not

including

instruction fetch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

,

2-Address Machines

A

https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_245-14A61F370A37A2BD282.png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

,

2-Address Machines

A

https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_246-14A61F45B74229CEDAE.png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

,

2-Address Machines with registers ?

A

https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_247-14A61F50C171EEB8E26.png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

,

3-Address Machines

A

– One destination operand,

two source operands,

all explicit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

,

3-Address Machines eg without registers ?

A

https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_248-14A61F622D5078C6512.png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

,

3-Address Machines without registers?

A

https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_249-14A61F7191F1FB1AE34.png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

,

6 memory accesses;

general purpose

registers make a

substantial

difference.

A

https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_250-14A61F8185A11F9B07D.png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

,

Comparison

– Assume 8 registers (3 bits),

  • 32 op-codes (5 bits), 15-bit addresses,
  • 16-bit integers.

– Which ISA accesses memory the least?

A

https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_251-14A61F9BCDF25EF0299.png

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

,

0-address

A

(stack)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

,

1-address

A

(accumulator)

17
Q

,

2-address

A

(register variant is 11⁄2-address)

18
Q

,

3-address

A

(with register variant

19
Q

,

The instruction set architecture determines

A

the format of instructions (and

therefore the assembly language).

20
Q

,

Four basic types with variations:?

A
  1. 0-address (stack)
  2. 1-address (accumulator)
  3. 2-address (register variant is 11⁄2-address)
  4. 3-address (with register variant
21
Q

,

ISA dramatically affects what ?

A

the number of times memory is accessed.

22
Q

,

CISC

A

Complex Instruction Set Computers

23
Q

,

RISC

A

Reduced Instruction Set Computers

24
Q

,

Motivation for CISC

A

Early computers had very little and very slow memory. Thus, the fewer instructions fetched, the faster the computer could be.

25
# , 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
26
# , 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
27
# , – General characteristics of RISC 
1. Lower number of operations (150+) 2. Compilers have more work to do. 3. Small number of instruction formats 4. All instructions take one cycle. 5. Load/store architecture 6. Smaller number of transistors, lower CPU complexity, therefore lower CPU prices
28
# , RISC vs. CISC
https://s3.amazonaws.com/classconnection/655/flashcards/7082655/png/selection_252-14A6227F56E5A3FFFE5.png
29
# , did you know about transistor 
– CISC processors require more CPU transistors in an effort to maximize code density in memory
30
# , did you know about the Risc processor 
RISC processors use a simpler design in an effort to reduce the number of cycles per instruction
31
# , The only major CISC architecture today is
the Intel x86 and x64. Nearly all else is RISC.