9 Microprocessors program counter Flashcards

1
Q

The basic design of a microprocessors is based on the following architectures

A

von Neumann architecture

Harvard architecture

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

Von Neumann Structure?

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

Advantages of Von Neumann?

A
  • Single memory
  • Data and instructions store in the same memory
  • Single bus for data and instructions
  • Memory and devices controlled by CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Disadvantages of Von Neumann?

A
  • One bus is a bottleneck
  • Data and instructions can be overwritten by an error in the program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Harvard architecture?

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

Advantages of Harvard architecture?

A
  • Two memories
  • Data and instructions are stored in separate memories
  • Two busses to access data and memory separately
  • No conflict when using data and instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Disadvantages of Harvard architecture?

A
  • More complex control than von Neumann
  • Production is more expensive (more busses and complex control)
  • Free space in data memory can’t be used for instructions and vice versa
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are stored program computers?

A

von Neumann and Harvard architectures are stored-program computers, where the program to be executed is stored in and access from the memory.

Earlier computers such as ENIAC employed the program-controlled model, where the programming process was based on connecting wires and configuring switches.

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

The stored program concept?

A

The concept of stored-program computer was introduced by John von Neumann in 1947

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

Main components of a computer?

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

The main components of a bus?

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

Example of a bus in system verilog?

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

The main components of memory?

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

Example of memory in system verilog?

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

The main components of the CPU?

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

A generic microprocessor overview?

A
17
Q

Advantages of the generic microprocessor layout?

A

Our generic CPU example uses a Harvard architecture to keep the data and program memory separate.

This means that we don’t have to manage the issue of the same bus handling everything.

18
Q

The stages of the fetch-execute cycle in practice?

A
  • Get the instruction from memory
  • Decode the instruction
  • Decide what to do and do it (getting any data along the way)
  • Deal with the resulting data
  • Increment the program counter to get the location for the next instruction
19
Q

FEC: Stage 1?

A

Stage 1: The PC contains the address of the memory location that has the next instruction that has to be fetched.

Suppose the PC initialised to 0, then PC = 0.

20
Q

FEC Stage 2?

A

Stage 2: The address sent through the instruction bus is used to fetch the instruction from the program memory.

21
Q

FEC Stage 3?

A

Stage 3: Increment the program counter to fetch the next instruction.

This means that PC = PC + 1

22
Q

FEC Stage 4?

A
23
Q

The execute stage is dependant on the following?

A

It could be

  • Get Data from memory
  • Carry out an ALU function
  • Store data in a register
  • Store data in memory
24
Q

FEC: Stage 5?

A

Stage 5: Execute the instruction

25
Q

How does the program counter operate?

A