所屬科目:交大◆資工◆計算機組織
1. Consider a computer running a program with CPU times shown in the following table: (A) If the time for FP instructions is reduced by 40%, the total execution time of the program reduced in percentage is 20%. (B) If the time for L/S instructions is reduced by 80%, the speedup of the program is 1.25. (C) If the speed of the INT instructions is improved to 3 times faster, this program may run 1.25 times faster. (D) This program may run 1.8 times faster by improving the speed of FP instructions.
3. Given the IEEE-754 single precision floating-point operand format as follows, (A) The decimal number -13.5 is represented as 1 10000011 11011000000000000000000 (B) The largest positive normalized number is (C) The smallest positive denormalized number is (D) Exponents with all 1's are reserved for ±∞ and NaN (Not a Number).
8. With single-cycle CPU, what control signal(s) below will be set to 1 when the code runs to the cycle? (A) RegDst (B) ALUSrc (C) MemToReg (D) Mem Write
9. With the pipelined CPU, what control signal(s) below will be set to 1 when the code runs to the cycle? (A) RegDst (B) ALUSrc (C) MemToReg (D) Mem Write
10. With the pipelined CPU, what control signal below will be set to 1 when the code runs to the cycle? (A) RegDst (B) ALUSrc (C) MemToReg (D) Mem Write
4. (8%) Assume the system workload consists of repeated reads of 64KB block at random disk locations. For the following system setup, (A) what is the IOPS (I/Os per second) for CPU, memory bus, and disk drive,respectively? (B) what (CPU, memory bus, or disk) is the bottleneck in the system?
●The user program uses 2 million cycles to process each I/O operation.●The operating system requires 1 million cycles of overhead for each I/O operation.●The clock rate is 3GHz.●The maximum sustained transfer rate of the memory bus is 640MB/sec●One disk drive which rotates at 7200RPM, has an average seek time of 8ms, and has a transfer rate of 64MB/sec. The disk controller overhead is 2ms.Express your answer as the following table
5. (8%) A processor and two options for improving its hardware and compiler design are described as follows:
6.(6%) Given the block diagrams of a 32-bit ALU, the typical 1-bit ALU, and the 1-bit ALU for the mostsignificant bit (MSB), determine the values of control and carryin signals to perform each of the following operations:NOR: Result = (A OR B)'SUB: Result = A - BSLT: If A <B. Result = 1; else Result = O
(3)Give a series of byte references in hexadecimal as shown in the following table.4-way set-associative cache, determine the tag and index of each reference in hexadecimal and label each reference as a hit or a miss. Assume that the cache is empty initially and LRU replacement is adopted. Express your answer as the following table.