Chapter 1: Data & Memory Flashcards

1
Q

Each binary digit is a

A

bit

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

A byte is

A

8 bits

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

A nibble is

A

4 bits

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

The PIC microcontroller instruction set information:

A

The PIC microcontroller that you will be using has 14-bit instruction words and 8-bit data words

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

The sequence of instructions executed by a chip is commonly known as a

A

program

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

Where is the program stored?

A

non-volitile memory

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

Data memory is split up into different areas such as

A

the stack, heap and general data area (GDA)

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

How is memory accessed by the instruction set?

A

Each piece of memory has a unique address that an instruction can use to access that byte of data

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

What is a microprocessors memory map?

A
  • The memory map of a microprocessor gives you the addresses of different types of memory.
  • Addresses are usually given in hexadecimal.
  • Even inputs and outputs are shown as it is common to ‘memory map’ them for simplicity, i.e. give them an address to make them look like just another piece of memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What determines the speed at which a processor can execute the instruction set?

A

The speed at which the processor can execute a programme is determined mainly by the speed at which it can access data.

Different types of memory storage can be accessed at different speeds and can vary greatly in cost. Typically the faster memory is also the most costly.

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

Fast Memory speed details:

A
  • Registers are the fastest type of memory and can be directly addressed by processor machine code instructions.
  • The cache is the next fastest and is co-located with the processor and provides fast memory access to locations likely to be needed often.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Issues with main memory speed access?

A

Main memory requires a bus transaction to access. Typical access time is a few cycles. Storage systems (disk, flash etc.) require multiple bus accesses to configure the relevant I/O controller. Typical access time is hundreds of cycles.

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

Explain what a program counter does?

A

A special register called the programme counter marks the address of the current instruction being carried out and increments by one with each instruction.

You can change the linear flow of a programme by adjusting the programme counter.

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

What is needed for the programmers model?

A
  • Description of all instructions: The Instruction Set
  • Memory map
  • Details of the registers
  • Vector information, i.e. places to look for programs and when to execute them (e.g. on power-up/reset, interrupt vector)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How is timing controlled on a microprocessor?

A

The speed at which a microprocessor executes instructions is determined by the clock

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

How does the clock control the timing, how does this work on RISC and CISC architecture?

A
  • Often a simple square wave with a MHz or GHz frequency. The clock synchronises all the individual logic components to act at the correct time.
  • For RISC architectures, each instruction executes in one clock cycle.
  • However for CISC architectures, some instructions execute in many clock cycles.
17
Q

Diagram for Von Neumann architecture?

A
18
Q

The key aspects of Von Neumann architecture?

A

The key aspect is that a single block of memory contains both the programme and the data.

This memory is connected to the CPU by a single bus.

A bus is a digital data highway consisting of a number of parallel wires.

19
Q

Advantages of Von Neumann architecture?

A

The advantages of this architecture are that there is a single address space, i.e. a single memory map describes all instruction and data areas, and that the system can compile its own software.

20
Q

Disadvantages of Von Neumann architecture?

A

The disadvantage is that since there is a single bus, programme instructions and data have to take their turn on it, which leads to congestion.

Since the processor typically operates much faster than it takes to access data from memory, the bus becomes the ‘bottleneck’ that limits the overall speed of the processor.

21
Q

Example of Von Neumann architecture

A

An example of the Von Neumann architecture is the x86 PC.

22
Q

Harvard architecture diagram?

A
23
Q

The key aspects of Harvard architecture?

A

It has separate memory blocks for the programme instructions and the data with separate data and address buses.

24
Q

Advantages of Harvard architecture?

A
  • Since there are separate buses, instructions and data may be accessed at the same time. Therefore Harvard architecture processors can be faster, at the expense of being more complicated.
  • data and address buses can be different sizes, i.e. carry a different number of bits; instructions do not need to have the same number of bits as the data word.
25
Q

The disadvantage of Harvard architecture?

A

A disadvantage is that these processors are not capable of downloading new programmes to itself. An example of the Harvard architecture is the PIC microcontroller.