11 + 12 Flashcards

1
Q

What is the operation of the cpu?

A

Repeat the fetch cycle, indirect cycle, execute cycle and interrrupt cycle.

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

What does the fetch cycle involve?

A
  1. Copy program counter into memory address register.
  2. Attach memory address register to address bus.
  3. Control unit issues a READ.
  4. Copy the data bus value into the Memory Buffer Register.
  5. Copy the value from Memory bus register to Instruction register.
  6. add 1 to program counter.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What occurs in the indirect cycle?

A

Indirect addresses are converted into direct addresses.

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

What occurs in the execute cycle?

A

This varies based on the instruction.

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

What occurs in the interrupt cycle?

A

Test the IRQ line, pushing PC onto the stack and loading it with the interrupt service routine address if triggered.

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

What is microprogramming?

A

Microprogramming involves 4 cycles: fetch, indirect, execute, and interrupt. There are 4 microinstruction typeS: Register to Register, input, output, and manipulate(occurs in ALU).
Microprogramming is basically the lowest level operations the CPU can perform, everything else is just combinations of these.

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

What is a horizontal microinstruction?

A

One which directly selects the registers, ALU operation, and destination in the instruction. Making it a quite large bit pattern. This is the most common due to how cheap transistors are.

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

What is a vertical microinstruction?

A

All operations sent through demultiplexer to find out location to go to, this takes longer to do but conserves bits.

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

What is instruction pipelining?

A

Fetch unit pre-fetches the next instruction while execute unit performs current, if a branch occurs(making the prepped instruction wrong) it is discarded and loaded with correct instruction.

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

What are the parts of a 6 stage pipeline?

A

Fetch instruction, decode instruction, calculate operands, fetch operands, execute instruction, write operand.

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

What are the main problems with pipelines?

A

Data must be moved through each stage of the pipeline, potentially increasing overall time for each instruction. The extra hardware is also complex.

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

What is CISC?

A

Complex instruction set computers, in order to utilise the extra transistors they add extra instructions, make the PCU do more and have pipelines.

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

What is the semantic gap?

A

New instructions added to CPU, but they were not being used by programmers, or compilers

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

What is RISC?

A

Reduced instruction set computers, these use the extra transistors to increase the number of registers, design the pipeline for conditional branches and make each instruction do less
One instruction is ran per cycle, register to register operations are common, simple address modes and instruction formats.

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

How do RISC register windows work?

A

Large number of registers addressed relative to a start, out registers of one routine are the “in” registers of next, each routine has local registers, upon entry to a routine the start is moved to the next block.
There will be an arbitrary depth of nesting and arbitrary number of registers in each window, requiring writing to memory if more than this are used.

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

Compare RISC and CISC.

A

RISC requires more program instructions then CISC but CISC does more per instruction

17
Q

What is a superpipeline?

A

If the RISC(or micro-coded CISC) instructions are simple enough then we can increase the CPU’s internal clock speed and do each simple operation in less time.

18
Q

What does Superscalar mean and what are some limitations?

A

Have more than one pipeline, known as instruction-level parallelism. Limitations include: True data dependency(Write after read), output dependency(write after write), Antidependency(Read after write),
Procedural dependency and resource conflicts.

19
Q

What is out-of-order execution? How does it work?

A

instructions without dependencies don’t have to be executed in a specific order.
The instructions of a program are fetched with branch prediction. The stream is checked for dependencies, Instructions are re-ordered by their dependencies and then executed based on dependencies and hardware resources. Results are recorded or discarded(if speculative prediction occurs).

20
Q

What is hyperthreading?

A

superscalar architecture with pipelines each with their own part of memory and registers, allowing for multiple programs to execute at once, known as simultaneous multithreading (SMT).

21
Q

How can we reduce CPU heat?

A

Reduce speed of CPU, the CPU can still function fast if we construct the CPU from multiple processors which share buses and level 2 cache.

22
Q

What is SIMD?

A

Single instruction multiple data, uses array registers and performs an instruction on each part, this way the instruction decoding only occurs once