Jan 15 (clock, pipeline) Flashcards

1
Q

What is clock?

A

Anything that can be turned on and off(e.g. CPU)

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

List 5 things how to speed up instruction execution(“wish list”)

A
  1. All instructions should be directly executed by hardware (but complex and expensive)
  2. Issue instructions as fast as possible (but complex and expensive)
  3. Instructions should be easy to decode.
  4. Only LOAD and STORE instructions should reference main memory(RAM)
  5. Provide lots of registers (but expensive)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does RISC stand for?

A

Reduce Instruction Set Computer: fewer and simpler instructions (e.g. 3+3+3+3+3 = 15)

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

What does CISC stand for?

A

Complex Instruction Set Computer: more, and more complex instructions (e.g. 3 * 5 = 15)

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

True or false?

“Our computer is a mix; mostly CISC with some RISC.”

A

False. Our computer is a mix; mostly RISC with some CISC.

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

What is the principle of spatial locality and how do we make use of it?

A

Spatial locality means that if you use a piece of data, you’ll probably need the data next to it soon. To make things faster, cache systems don’t just get the data you asked for; they also grab the nearby data and keep it ready.

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

What is the principle of temporal locality and how do we make use of it?

A

Temporal locality is when a word is requested by the CPU, it is probable that the same word will be requested again. We make use of it by keeping that word available in cache memory for fast access.

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

What is the difference between spatial and temporal locality?

A

Spatial locality is when a word is requested by the CPU, it is probable that the surrounding words will be requested by the CPU soon.
Temporal locality is when a word is requested by the CPU, it is probable that the same word will be requested again by the CPU soon.
(They both are relevant to what words end up in cache)

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

What is a pipeline? Also, what is its purpose?

A

A pipeline is a set of multiple hardware devices working together to maximize improving instructional bandwidth. It utilizes the principles of FDE. It works in parallel and in series. Its purpose is to process instructions by fetching, decoding, and executing.

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

Describe what happens when a CPU fetches a word from memory

A

First, the cache checks if it already has that data. If it does, the cache quicly gives the data to CPU. If cache doesn’t have the data, it asks the main memory for the data. But instead of getting just that word, the cache gets a block containing the word and store them in the cache. After that, the cache sends the requested data to the CPU. This process helps make everything faster.

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

latecyの単位

A

〇〇 時間 / instruction

〇〇:同じ時間単位に直してそれを全部足す

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

bandwithの単位

A

1 instruction / 〇〇 時間(e.g min)

〇〇に入るのは同じ時間単位に直した時の一番大きい数字

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