Lecture Quizzes Flashcards

1
Q

Why do we say that a computer is a general-purpose

machine?

A

It can solve different problems by loading and executing different programs.

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

What are the two main phases of instruction execution?

A
  • Fetch: fetch instruction, increment PC, decode.

- Execute: perform the specified operation.

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

How many memory accesses are usually needed for

executing one instruction?

A
  • At least once for fetching the instruction.

- It may need more for accessing the operands.

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

IBM TS1160 Tape Drive (20TB/tape)

  • What type of memory is this?
  • What is it mainly used for?
  • Can it be used as a main memory? Why?
A
  • Secondary memory, external memory, sequential access
  • Backup, archive (secondary memory of archive type)
  • No! It is not a RAM.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the main advantage of the associative

mapping for cache?

A

A memory block can be mapped to several different

cache lines, which increases cache hit ratio.

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

Is fully associative mapping implemented in

practice?

A

No! Comparison of all tags is impossible to be done in

reasonable time.

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

Is it true:

  • The higher associativity level, the better hit ratio?
  • The higher associativity level, the better performance?
A
  • yes

- no

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

What information is specified in an instruction?

A
  • Operation code
  • Source operands and destination operand
  • Next instruction address, if needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does it mean by relative addressing?

A

The effective memory address equals a base address, given in a register, plus an offset.

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

Why is it useful to use relative addressing?

A
  • Program/data can be stored in different MM locations.

- Reduce the number of bits needed for MM addresses.

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

Why do we often
have holes in an
instruction pipeline?

A

We have different
execution patterns for
different instructions!

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

Which pipeline hazard has the largest impact? Why?

A

Control hazard, since branches can dramatically reduce pipeline performance, and we have many branch instructions.

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

Programmed I/O, Interrupt-driven I/O, and/or Direct memory
access (DMA)?

  • Low-speed I/O
    device, e.g., a
    keyboard

-High-speed I/O
device, e.g., a hard
disk

A
  • No, Yes, No

- No, Maybe, Yes

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

Why is data dependency an important issue for

superscalar architecture?

A
  • A superscalar computer will be efficient only if there are sufficient numbers of instructions to be executed
    concurrently.
  • Instructions can be executed concurrently only if there is no data dependency among them.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which data dependencies can be removed?

How?

A
  • Output dependencies and anti-dependencies can be eliminated.
  • It is done by using additional registers, which is called
How well did you know this?
1
Not at all
2
3
4
5
Perfectly