ISA Flashcards

1
Q

what is the difference between GPR and special purpose registers

A

GPR software controlled and accessible in typical collection is register file

special purpose register - has a special role and only accessible by special instructions

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

define address space

A

range of accessible adresses

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

define addressability

A

how many bits do we need to access elements of memory

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

define granularity

A

what does each address refer to
i.e
byte addressible if each element is 8 bits

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

define alignment

A

for an n byte word at address x
x mod n =0

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

define endianness

A

order we store the bytes
little - first stored at lower memory
big - last stored at lower memory

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

define fixed length encoding

A

each instruction has the same length

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

define variable length encoding

A

each instruction has its own length

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

what is an example of an instruction that uses R type encoding and explain it

A

add

bits 0-5 function
6-10 shift
11-15 register destination
16-20 target register
21-25 register source
26-31 opcode (what instruction type i.e R type)

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

what is an example of an instruction that uses I type encoding and explain it

A

Addi
target register <- source + immediate

bits 0-15 - immediate
16-20 - target register
21-25 - register source
26-30 - opcode (again type I type)

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

what is an example of an instruction that uses J type encoding and explain it

A

jump instructions

0-25 - address
26-31 - opcode

32 bits byte addressible

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

what is a memory memory architecture

A

all operands held in memory

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

what is a register memory architecture

A

some operands in memory some in registers

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

what is register register memory aka load store memoyr

A

operands are registers and ISA has instructions to move thinsg into registers or write to memory

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