Lecture 2 Flashcards

1
Q

What is a microprocessor?

A

It is a processor that is built from a large amount of IC’s and is packaged onto a single IC chip.

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

What is a microcomputer?

A

A minor computer that uses a microprocessor. It will have memory and other peripherals.

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

What is a micro controller?

A

It is a microcomputer that contains all of the peripherals along with the CPU on the one chip.

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

In the ALU, what is the function of the Opcode and Status inputs and outputs?

A

The opcode will tell the ALU what type of operation it is performing. The status output will tell the controller as to the state of the output.

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

What is the role of the command unit?

A

It is the commander of the CPU, it fetches instructions and decodes them to tell it what signals to send to other units.

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

What is the Program Counter?

A

It contains the address of the next instruction to be read from memory during the fetch cycle.

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

How does a CPU read instructions?

A
  1. Fetch the instruction from memory.
  2. Decode the instruction into code signals.
  3. Execute the instruction.
  4. Access and read any memory that is needed.
  5. Write back to memory if needed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is CPU pipelining?

A

It is the process of running multiple events at once. If we sequentially ran the process for the CPU to fetch instructions then it would take a long time because we would have to wait for it to finish writing to memory before we can fetch the next instruction. Pipelining will start fetching the next instruction along with working with the current one.

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

How is information stored in memory?

A

As words, and the length of the word will depend on the processor. The words will contain multiple bytes of 8 bits. Each word has a specific address in memory.

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

How many data lines connect the memory to the CPU?

A

3

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

What are the 3 data lines connecting memory to CPU?

A
  1. Address bus that determines the location of the memory to access.
  2. Data bus to carry data to or from the memory.
  3. Read / Write. Logic 1 on this line will mean read while a 0 means write.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the Van Neumann architecture?

A

It is a computer architecture that contains only one memory for instructions and data. This creates a performance bottleneck because it can’t read or write to the memory at the same time.

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

What is Harvard Architecture?

A

It is a more complex architecture that has seperate memory for both instructions and data. This means that read and write can occur at the same time.

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

What is the equation that governs how many items can be stored at an N bit memory address?

A

n = 2^k

Where K = log(n) / log base 2

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

How do we read memory?

A
  1. Issue a read command

2. Place the address of the word that we want to read on the address bus.

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

Why do we have to wait 1 access time before reading or writing to memory?

A

Because memory cannot respond instantly.

17
Q

What is the condition to read from memory?

A

The reading process must be non destructive.

18
Q

How do we write to memory?

A
  1. Place the address to be written to on memory.

2. Place the data to be written on the address bus.

19
Q

What is the cycle time?

A

It is the time that the write command must be active to allow the memory to write.

20
Q

Is writing memory destructive?

21
Q

What is RAM?

A

Random Access Memory.

22
Q

What is Static Ram?

A

It is faster than dynamic RAM but this makes it more expensive. It does not require a refresh. Caches.

23
Q

What is Dynamic RAM?

A

It is cheaper than Static RAM but it requires a constant refresh otherwise the data is gone.

24
Q

What is ROM and what are its properties?

A

Read Only Memory.
It is non volatile and is programmed during manufacturing.
It has slower write speeds that are at fixed write cycles.

25
Q

What is Masked ROM?

A

It is is programmed at manufacturing using an expensive mask to program the proper bit patterns. Something like photolithography etch that uses a laser.

26
Q

Programmable ROM? (PROM)

A

ROM that to re program it we need high voltage to blow up the fuses.

27
Q

What is Erasable PROM? (EPROM)

A

We use a special device called a PROM programmer to write to the ROM by over voltaging certain inputs. Can also use UV light.

28
Q

Electrically EPROM?

A

The data can be erased and rewritten without removing them from their sockets.

29
Q

What is the heirachy of memory?

A

We place the fastest memory closest to the processor.

30
Q

What is locality of reference? (LOR)

A

It is the concept of accessing a value or related storage frequently.

31
Q

What is temporal LOR?

A

It tells us whether memory locations in a programme are likely to be accessed again in a short period of time.

32
Q

What is special LOR?

A

This is the concept that if we have already accessed one storage, what is the probability that we need to access another storage close to it.

33
Q

What is the difference between memory mapped I/O and port mapped I/O?

A

Memory mapped will map I/O to the same memory address space as the program while Port will map it to a dedicated address space.