電機題解

111 成功大學 計算機組織 考古題解答

題目(共 10 題)

110 分

Which of the following statement about program execution is/are TRUE? (10pts, no partial point, no penalty)

(a) CPI stands for Clock Period/Instruction.

(b) IPC stands for Instruction per Cycle.

(c) CPU time is the overall time that CPU spends on computing for a specific task with operation system and other task running.

(d) Assuming computer A runs a program in 10 seconds, and computer B spend 50% less time than computer A running the same program. Computer B is 1.5 times faster than computer A.

購買後顯示這題的詳解
210 分

Compile the following C code to RISC-V or MIPS instructions. (10pts)

\(f=a+(b+(c+d))\)

Please specify your assumption and write down comments on each instructions.

購買後顯示這題的詳解
310 分

During a procedure call, which of the following is/are preserved? (10pts, no partial point, no penalty)

(a) Saved registers

(b) Temporary registers

(c) Stacks below the stack pointer

(d) Stack above the stack pointer

(e) Stack pointer

購買後顯示這題的詳解
410 分

About IEEE754 standard floating-point, which of the following is/are TRUE? (10pts, no partial point, no penalty)

(a) Floating point representation consist of only three part, sign, exponent and fraction.

(b) Use 2’s complement on both exponent and fraction representation

(c) IEEE754 preserve encodings for” Infinity”, “NaN”. However, it fails to represent “denormalized numbers“.

(d) The precision of floating-point is relative precision depending on the exponent part of floating-point.

購買後顯示這題的詳解
510 分

Pipeline is an implementation technique in which multiple instructions are overlapped in execution. Which of the following is/are TRUE? (10pts, no partial point, no penalty)

(a) Pipeline can speed up overall performance due to latency of each instruction is improved

(b) Pipeline bubble reduces overall speedup

(c) For an N stage ideal pipeline, the best throughput is N IPC.

(d) Pipeline speed is limited by the fastest stage.

購買後顯示這題的詳解
610 分

Different cache design in memory hierarchies may come with positive and negative effect. Which of the following is/are TRUE? (10pts, no partial point, no penalty)

(a) Increase cache size may decrease capacity misses.

(b) Increase associativity may increase miss rate due to conflict misses.

(c) Assuming cache size is fixed, very large block size could increase miss rate.

(d) Assuming cache size is fixed, very large block size could decrease miss rate.

購買後顯示這題的詳解
710 分

There are three different type of pipeline hazard. Write down their name and cause. (10pts)

購買後顯示這題的詳解
810 分

Dynamic branch prediction is a technique to predict branch taken or not at runtime. Assuming a processor use simple 1-bit prediction scheme on each branch while executing the following instructions. Please write down when and why mispredictions happen. (10pts)

Outer: ... ... inner ... ... beq ..., ..., innter ... beq, ..., ..., outer
購買後顯示這題的詳解
910 分

Assuming a direct-mapped cache is accessed by the following bits of address. (10pts)

31 … 109 … 43 … 0
TagIndexOffset
22 bits6 bits4 bits

What is the cache block size (in words)?

How many blocks does the cache have?

購買後顯示這題的詳解
1010 分

Describe the difference, pros and cons of “Fine-grained multithreading” and “Coarse-grained multithreading”. (10pts)

購買後顯示這題的詳解

成大計算機組織其他年度

115114113112110109108107106

111 學年度成大其他科目

工程數學控制系統電力工程電子學電路學

成大電機所全部考古題 →