阿摩線上測驗 登入

申論題資訊

試卷:102年 - 102 國立中山大學_碩士班招生考試_資工系(甲、乙組):計算機結構#105879
科目:中山◆資工◆計算機結構
年份:102年
排序:0

題組內容

4. Compare the single-cycle implementation, in which all instructions take 1 clock cycle, with the five-stage (IF, ID, EX, MEM, WB) pipelined implementation using the following eight instructions: load word (Iw), store word (sw), subtract (sub), and (and), or (or), set-less-than (slt) and branch-on-equal (beq). The operation times for the major functional units are 2 ns for memory access, 2 ns for ALU operation, and 1 ns for register file read or write.

申論題內容

4.3 Consider a program consisting of 100 1w instructions and in which each instruction is
dependent upon the instruction before it. What would the actual CPI be if the program were run on the single-cycle implementation and the pipelined implementation with a forwarding unit and a hazard
detection unit? Please copy Table 4-2 to your answer sheet and fill in the blanks with your answers.
61e7cf6c7710b.jpg