Computer System Architecture Flashcards

Course Related Flash Cards

1
Q

Define Digital Abstraction

A

Simplifying the design and analysis of digital circuits by focusing on the discrete values of 0 and 1, rather than then continuous voltage levels.

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

Why not 1024 Registers?

A

Following are reasons why we don’t have 1024 registers

  1. Instruction Encoding become complex
  2. Building Cost increases
  3. More transistors and interconnects increasing capacitance.
  4. Decoding complexity increases.
  5. Overall Propagation Delay Increases inturn decreasing performance.
  6. Context Switching in OS is another issue - as register details of process needs to be saved before switching.
  7. Complex Compiler Optimization.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why not Zero Registers?

A

If we have zero registers, the CPU will have to access memory directly every single time which will have high latency.

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

Why do we unsigned variants for LH and LB but not for SH and SB?

A

Unsigned variants are available for LH and LB because we need to identify how we are going to fill the remaining bit values in the register. We don’t need to worry about this while storing values.

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

Moore’s Law

A

The number of transistors per unit cost doubles approximately every two years.

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

Dennard Scaling

A

Power density remains constant as transistors get smaller.

Power = Capacitance x Voltage^2 x Frequency

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

When did Dennard Scaling end and why?

A

Ended in 2006. Due to the fact that the Leakage Current and Heat issues due to transisor miniaturization, making scaling of frequency impractical.

Also due to rise of multi-core systems.

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

Utilization Wall

A

Refers to the fact that even though Moore’s law allows us to add more transistors to a chip, we cannot use all of them at once due to power and thermal constraints.

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

What are the benefits of Digital Systems?

A
  1. They are restorative as Noise is cancelled at each digital components.
  2. Complex design can be constructed on the abstraction of digital behaviour.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the processor digital constraints?

A
  1. Chip Area
  2. Attainable Clock Speed.
  3. Instruction Level Parallelism
  4. Amdahl’s Law
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Limitations of the processor digital constraints?

A
  1. Chip size may be smaller.
  2. Clock speed may be limited.
  3. Work per cycle may be limited.
  4. Benefits of more cores may be limited.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Performance Measures - What is Latency, Throughput?

A

Latency - Delay from when an Input enters the system until it’s associated output is produced.

Throughput - Rate at which Outputs are produced in a given time.

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

What are the two different type of Circuits?

A

Combinational Circuits and Sequential Circuits.

Combinational Circuits:
1. Contains no memory (“no state”).
2. Outputs soley depend on the inputs.

Sequential Circuit
1. Has memory (“state”)
2. Memory is updated by the output of Combinational Circuit.

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

What is Propagation Delay?

A

Maximum time it takes for a change in input to change the output.

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

What is Contamination Delay?

A

Minimum time it takes for a change in input to start changing the output.

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

What is Setup Time?

A

Time before the clock edge the input must be stable.

17
Q

What is Hold Time?

A

Time after the clock edge the input must be stable.

18
Q

What is Additive Delay?

A

The total of all circuit delays. This includes the extra delay from interconnects, buffering, and loading.

19
Q

When can you say a good circuit has low propagation delay?

A

Faster Inputs
Higher Performance

20
Q

What is Synchronous Sequentail Circuit?

A

All operations are aligned to a shared clock signal. In a Synchronous circuit, the clock period must be long enough to allow the signal to propagte through the critical path and for the state to be updated reliably.

All paths must be shorter than the clock spped.

21
Q

Complex ISA can slow down the clock. Why?

A

Instruction length can be very complex with variable length and many different formats.

This will require more complex and time-consuming decoding logic in the CPU.

The more complex, the longer it takes, limiting how fast the CPU can complete the task.

22
Q

Benefits of Pipelining

A

Increased throughput and Improved Hardware utilization.

23
Q

Drawbacks of Pipelining

A

Increased Latency (however increased throughput usaully outweighs the slight increase in latency)

Increased Hardware Complexity.

24
Q

Latency related Formulas

A

Combinational Circuit - Latency = Propagation Delay

K-Stage Pipeline - Latency = K * Clock Period

25
Q

Throughput related Formulas

A

Combinational Circuit - Throughput = 1 / Propagation Delay

K-Stage Pipeline - Throughput = 1 / Clock Period

26
Q

When does pipeline become non-deterministic?

A

The time a stage takes to complete varies. This can happen due to things like memory access or complex combinational logic that takes different amount of time depending on the input.

27
Q

What is Elastic Pipeline?

A

Elastic pipelines are pipelines that dynamically adjustable pipelines that ensures correct results are provided regardless of unknown latency using mechanisms like FIFO registers and maintining equal number of pipeline registers across all stages.

28
Q

Little’s Law?

A

L = lambda * W

L -> No of requests in the system
Lambda - Throughput
W - Latency

29
Q

Von Neumann Model

A

All modern computers are based on the Von Neumann Model.

Components:
Main Memory - Data and Programs are held
Processing Unit - Program Counter and ALU
Storage and I/O - For communication

30
Q

Classic RISC Pipeline

A

Fetch, Decode, Execute, Memory, and Writeback

31
Q

Constraints in designing Microprocessor

A
  1. Circuit Timing
  2. Memory Access Latency
32
Q

What is an Ill-Formed Pipeline?

A

Ill-Formed Pipeline states that there are inconsistency in the total number of registers used in all paths.

33
Q

We have SRA, SRL, and SLL. Why is there no SLA?

A

SRL (Shift Right Logical) - Fills the leftmost bits with 0s, regardless of the original sign bit.

SRA (Shift Right Arithmetic) - Fills the leftmost bits with the Most Significant Bit (MSB) (preserving sign for negative numbers).

SLL is sufficient for left shifts because it already fills the least significant bits with 0s.

If an SLA were introduced, it would try to preserve the sign bit (like SRA), but this is unnecessary in left shifts leading to change of value in the register leading to incorrect results.