1.
a) Explain why the Memory Hierarchy is required in a computer.
a)解释为什么计算机中需要内存层次结构。
[6 marks]
【6分】
b) In addition to the IEEE 754 floating point system, as shown in the table below, IBM established a different representation system.
B)除了IEEE 754浮点系统外,如下表所示,IBM还建立了一个不同的表示系统。
Discuss the ranges of values that can be represented in each of the two formats, in terms of the precision and the magnitude.
根据精度和大小,讨论两种格式中可以表示的值的范围。
[8 marks]
【8分】
Describe how to convert one format to the other and explain if the original precision is kept or not.
描述如何将一种格式转换为另一种格式,并说明是否保持原始精度。
[6 marks]
【6分】
IEEE 754-1985 | IBM | |
precision | double | double |
total word-length | 64-bit | 64-bit |
exponent | 11-bit, base: 2, bias: 1023 | 7-bit, base: 16, bias: 64 |
fraction | 52-bit | 56-bit |
Table Q1
表Q1