Computer Architecture (420563) 2025-26 Second Semester Final Exam

Last updated on June 22, 2026 pm

This article is currently an experimental machine translation and may contain errors. If anything is unclear, please refer to original Chinese version. I am continuously working to improve the translation.

update: I got a "Good" grade 😃

Term Explanations (5*3%)

What is static scheduling of instructions

Pipeline efficiency

Cache conflict misses

Dynamic pipeline

Asynchronous I/O

True/False Questions (15*1%)

Many of the ones marked wrong below had errors in the question statement itself, but I don't remember what the errors were, so for many of them I just give the correct proposition directly.

The multi-level hierarchy of computer systems: L1 microprogram machine level, L2 machine language (conventional machine level), L3 operating system virtual machine, L4 assembly language virtual machine, L5 high-level language virtual machine, L6 application language virtual machine (the question omitted one or two of these and asked whether it was correct)

Amdahl's Law states: after improving some component of a system, the overall system performance improvement that can be obtained is limited by the percentage of that component's execution time in the total execution time

Computer architecture: the attributes of a computer as seen by the programmer, i.e., the conceptual structure and functional characteristics ()

What is the broad definition of computer architecture (three aspects of design): instruction set architecture, organization, and hardware ()

CISC is better than RISC ()

Solving pipeline bottleneck problems: subdividing the bottleneck segment, duplicating the bottleneck segment (one of these two was written incorrectly in the question, and the answer should be F, but I forgot what was written incorrectly)

Fill in the Blanks (1 point per blank, 15*1%)

Three methods to increase parallelism: ( ) ( ) ( )

Five levels of parallelism from the perspective of program execution, from low to high: ( ) ( ) ( ) ( ) ( )

Based on whether feedback loops exist, pipelines can be divided into ( ) and ( )

Dependencies are divided into ( ), ( ), and name dependencies

I/O devices coordinate peripherals and ( )

Major Questions (55%)

1 (10%)

What is Cache coherence in multiprocessors? Explain the directory protocol and the snooping protocol?

2 (10%)

A system has an improvable fraction of 50% and a component speedup of 10. Find the speedup of the system.

3 (10%)

The average memory access time formula for a two-level Cache, and the two factors that need to be balanced when designing a two-level Cache

4 (13%)

A floating-point processor uses the Tomasulo dynamic scheduling algorithm to execute the following 6 floating-point instructions. The instruction sequence is:

I1: L.D    F6, 34(R2)
I2: L.D    F2, 45(R3)
I3: MUL.D  F0, F2, F4
I4: SUB.D  F8, F6, F2
I5: DIV.D  F10, F0, F6
I6: ADD.D  F6, F8, F2

The processor is equipped with the following functional units and reservation stations:

Functional Unit Type Number of Reservation Stations / Buffer Stations
Load buffer stations 2, denoted Load1, Load2
Add/Subtract reservation stations 3, denoted Add1, Add2, Add3
Multiply/Divide reservation stations 2, denoted Mult1, Mult2

The state tables used include:

  1. Instruction status table: records the issue, execute, and write result status of each instruction;
  2. Reservation station status table: records fields such as Busy, Op, Vj, Vk, Qj, Qk, A for each reservation station;
  3. Register status table: records the Qi field of each floating-point register.

(1)

Assume the above instructions are issued in order, with dynamic scheduling using the Tomasulo algorithm.

When the 1st instruction L.D F6, 34(R2) has just completed writing its result, provide the following at that moment:

  • Instruction status table;
  • Reservation station status table;
  • Register status table.

(2)

If the execution times of the various types of functional units are as follows:

Instruction Type Clock Cycles Required for Execution
Load 1 clock cycle
ADD / SUB 2 clock cycles
MUL 10 clock cycles
DIV 40 clock cycles

Under the above conditions, continue executing the instruction sequence using the Tomasulo algorithm.

You are required to draw or fill in the complete:

  • Instruction status table;
  • Reservation station status table;
  • Register status table.

5 (12%)

There is a dynamic multifunctional pipeline composed of 6 functional segments, as shown in the figure.

flowchart LR
    I1(( )) --> S1[S1]
    I2(( )) --> S1

    S1 --> S2[S2]
    S2 --> S3[S3]

    S1 -->|乘法| S4[S4]
    S4 --> S5[S5]
    S5 --> S6[S6]

    S3 -->|加法| S6

    S6 --> O1(( ))
    S6 --> O2(( ))

    classDef stage fill:#f8f3ef,stroke:#8b4a4a,stroke-width:2px,color:#111;
    class S1,S2,S3,S4,S5,S6 stage;

Among them, S1, S4, S5, S6 form the multiplication pipeline, and S1, S2, S3, S6 form the addition pipeline. Each functional segment takes 50 ns. Assume that the output of the pipeline can be fed directly back to the input, and that there are sufficient buffer registers. Use this pipeline in the fastest way to compute: $$ \sum_{i=1}^{5} x_i y_i z_i $$

(1)

Draw the space-time diagram

(2)

Calculate its efficiency, speedup, and throughput


Computer Architecture (420563) 2025-26 Second Semester Final Exam
https://blog.wendain.ing/en/posts/ca-sp26-final/
Author
wendaining
Posted on
June 22, 2026
Updated on
June 22, 2026
Licensed under