Week 1 Flashcards

1
Q

A program is made of a series of what?

A

Instructions

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

A program’s instructions are stored where?

A

In the Program Memory

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

What register specifies the address of the next instruction to be executed?

A

The Program Counter (PC) register

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

What is the purpose of the Control Logic in the CPU block diagram?

A

To decode the instructions and use the resulting information to control other subsystems

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

What is the purpose of the Link Register (LR) ?

A

To store the return address when a branch and link instruction is used

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

What is it called when a CPU starts the next instruction before execution of the current instruction is completed ?
This is done to increase processing speed.

A

Pipelining

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

What four aspects of a processor can Architecture define?

A

1) Programmer’s model
2) Instruction set architecture
3) Exception model
4) Debug architecture

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

Cortex M0+ processors implement what type of architecture?

A

ARMv6-M

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

The ARM programming model uses load/store architecture. What is meant by load/store architecture?

A

Data must be loaded into registers before processing and then optional stored back in memory afterwards. Data cannot be processed from memory directly.

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

What are the two data types native to ARMv6-M?

A

Signed and unsigned 32-bit values.

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

Can a CPU use non-native data types?

A

Yes, but emulating them may require more instructions and take more time.

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

What is the purpose of the Stack Pointer (SP) register?

A

The stack pointer manages a data storage structure called the stack.

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

What is the purpose of the Program Counter (PC) register?

A

To store the address of the next instruction to be executed.

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

What is the purpose of the PRIMASK register?

A

The PRIMASK register will cause the CPU to ignore some types of exceptions if it is set to one.

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

What is the purpose of the CONTROL register?

A

It determines which stack pointer is used if the processor is in thread mode.
It also determines if the processor should run in privileged or unprivileged level when in thread mode.

17
Q

The Program Status Register (PSR) has three ‘views’. What are they and what are their functions?

A

APSR - Shows the condition flag bits.
IPSR - Holds the current exception handler.
EPSR - Shows if the CPU is in Thumb mode.

18
Q

Define byte-addressable

A

When memory addresses specify a particular byte the memory is said to be byte addressable.

19
Q

ARMv6-M architecture has what size address space?

A

32-bit

20
Q

True or False
The address space is divided into various regions for different uses?

A

True

21
Q

In Little-Endian systems is the least or most significant bit stored in at the lowest address?

A

Least

22
Q

In Big-Endian systems is the least or most significant bit stored in at the lowest address?

A

Most

23
Q

In ARMv6-M systems are instructions stored as little or big endian?

A

Little but data can be either. In the Kinetis micro-controllers data is stored little endian.

24
Q

What software tool converts code from high level languages like C into assembly language?

A

A compiler.

25
Q

What is the name for the group of software programs that includes a compiler and and assembler?

A

Program build tool-chain.

26
Q

What does IDE stand for and what does it include (usually)?

A

Integrated Development Environment.
1) Program build tool-chain
2) Programmer
3) Debugger

27
Q

Name the three stages the CPU core performs to execute an instruction.

A

Fetch.
Decode.
Execute.

28
Q

What is the differene between von Neuman and Harvard architecture?

A

von Neuman: memory holds data and instructions so both share a bus
Harvard: Seperate memory for data and instructions, two busses.

Harvard is faster but more complex.

29
Q

Does the Cortext M0+ have harvard or von neuman architecture?

A

von Neuman

30
Q

What is the purpose of NVIC in the core?

A

The Nested Vector Interrupt Controller manages and prioritises incoming interrupts.