0% found this document useful (0 votes)
25 views

Computer Organization Exercise Answerb

The document discusses computer architecture and performance. It contains examples and questions about topics like CPI, instruction count, clock rate, algorithms, and how different factors can affect performance. Groups provide answers to questions on these topics.

Uploaded by

RD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Computer Organization Exercise Answerb

The document discusses computer architecture and performance. It contains examples and questions about topics like CPI, instruction count, clock rate, algorithms, and how different factors can affect performance. Groups provide answers to questions on these topics.

Uploaded by

RD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Computer Architecture

Fall, 2022
Week 2
2021.09.19

組別:_____ 簽名:________________________________

[group2]
1.

補充(a)的解釋應為 beta requires less CPU time

1/5
[group14]
2.

Implementation based on the same ISA.

[group1]
3.
Please select the correct options.

1. Instruction Count for a program is determined by program, CPI and compiler.


2. Throughput is total work done per unit time.
3. Adding more processors may not only shorten the response time but enhance the throughput.
4. Compiler translates assembly language to binary machine language.
5. Compiler performance depends on Instruction count and CPI.
6. Elapsed time is a total respone time of processing, I/O, OS overhead, and Idle time, which also can
determine the performance of system.
7. Given two computers, computer_A: Cycle Time=250ps, CPI=2.0; and computer_B: Cycle Time=500ps,

2/5
CPI=1.2, we can conclude that A is faster.

Ans:
2, 3, 5, 6
1: Instruction Count for a program is determined by program, ISA and compiler.
4: Should be assembler
7: False, when considering CPU time we have to know three parameters Instruction count, CPI and Clock
cycle time. However, with the leak of instruction count, we can’t determine which computer is faster.

[group5]
4. Which of the following statements is correct? (Single Choice)

a. Suppose that Floating point instructions are improved with speedup = 10. Only 20% of actual
instructions are Floating Point instructions. The overall speedup would be 3.
b. For a given program, its average cycles per instruction (CPI) is affected not only by the instruction
set architecture, but also by the compiler used.
c. By changing the clock frequency of a processor from 1.5 GHz to 2 GHz, and also changing its supply
voltage from 1 Volt to 1.25 Volt, the dynamic power consumption of this processor will theoretically
increase by more than 3 times.
d. According to Amdahl's law, it is theoretically possible to achieve a 6X speedup on executing a
program which is 87% parallelizable, by using a 16-core multiprocessor.

Ans:b

[group11]
5. A common performance figure is GFLOPS (billions of floating-point operations per second),
defined as
No. FP operations
GFLOPS =
CPU time × 109
but this figure has the same problems as MIPS.

By using the table below, calculate the GFLOPS of P1 running a particular program.

processor Instruction count Clock rate


Type of instructions CPI

Load/Store Floating Load/Store Floating


Point Point

P1 1*109 40% 60% 1 2 4GHz

3/5
A:
# of instructions × CPI (40% × 109 × 1) + ( 60% × 109 × 2) 1.6 × 109
CPU Time = = =
𝑐𝑙𝑜𝑐𝑘 𝑟𝑎𝑡𝑒 4 × 109 4 × 109
= 0.4 (𝑠)
No. FP operations 60% × 109
GFLOPS = = ≒ 1.5 𝐺𝐹𝐿𝑂𝑃𝑆
CPU time × 109 0.4 × 109

[group8]
6. What performance factor(s) below may be affected
(1) Instruction count (2) CPI (3) Cycle time

(A) Algorithm :____________(multiple choice)


(B) Program :____________(multiple choice)
(C) Compiler :____________(multiple choice)
(D) Computer organization :____________(multiple choice)

sol =>
(A): 1,2
(B): 1,2
(C): 1,2
(D): 2,3

[group12]
7. The division operation of a certain program requires 8 cycles, and other operations require 4 cycles.
Assuming that 60% of the operations of this program are division and 40% are other operations, CPI=?

A:
CPI=8*0.6+4*0.4=6.4

4/5
[group7]
8.

5/5

You might also like