Module 5 Flashcards

1
Q

What is RISC and CISC and explain memory differences

A

Reduced Instruction Set Computer
- Has fewer instructions available than CISC
- Carries out more, simpler instructions - needs more software as a result
- Works only in registers
- More useful in ES setting

Complex Instruction Set Computer
- More instructions that have highly specialised tasks built in
- Can manipulate operands directly in memory and registers

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

Why is RISC preferred to CISC for ES?

A

RISC is more cost effective and easier to implement because it often requires less storage too. They are also more power efficient and have smaller physical footprints.

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

What is the ARM Cortex 3-Stage pipeline?

A

That thing you got wrong in the test look at the memo

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

What is Thumb and why use Thumb

A

Thumb instructions are half the size of ARM. The system can then load two instructions at the same time, however, this often makes design more complex - fewer instructions to choose from.

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

What is AArch32

A

32-bit architecture that supports operations on bytes (8), half-words (16), and words (32)

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

What are the modes of operation of the ARM processors?

A

User mode
- Limitations on register access
IRQ mode
- Low priority interrupt is signaled.
Supervisor mode
- IDk

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

What are the ARM registers?

A

1 Program Counter
1 Current Program Status Register (CPSR)
5 Saved Program Status Register (SPSR)
30 General Purpose Registers r0 to r14

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

What is the ARM exception vector

A

32 bytes that go from 0x00000000 to 0xFFFF0000 where each entry has some abort or interrupt instruction.

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

What is Port Mapped IO? ADV and DIS

A

A special IO address space used to get to devices. There are specific CPU instructions used to access this space.

+ Peripherals can have simpler memory address decoding logic

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

Memory Mapped IO? ADV and DIS

A

+ No special techniques needed
- Some address space then used for peripherals.
- Uses RAM too

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

How is the volatile keyword useful for memory mapped IO

A

Volatile tells the compiler to explicitly access memory locations for a variable.

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

How are struct functions used and why are they useful?

A

typedef struct {
uint8_t item1;
uint8_t item2;

} NAME; //NAME is for the overall structure

volatile NAME* varName = (NAME*) ADDRESS; //varName is the name of this specific structure type.

varName -> item1 = 1; //write to a thing

x = varName ->item2; //read from a thing

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