第一范文网 - 专业文章范例文档资料分享平台

2010计算机组成与体系结构A卷

来源:用户分享 时间:2025/10/1 10:35:45 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

III. 综合题(10 points each)

1 01111 largest positive101010 0 10001 numbers representable in 011011 1. What are the and the smallest positivethis format?Note: Using rounding as the truncation method in the answers. Write the computation process!Solution:

2. A logic circuit is needed to implement the priority network shown like figure 2. The network handles three interrupt request lines. When a request is received on line INTRi, the network generates an acknowledgement on line INTAi. If more than one request is received, only the highest-priority request is acknowledged, where the ordering of priority is: priority of INTR1 > priority of INTR2 > priority of INTR3.

Figure 1 Floating-point format used in Problem 1. 1 bit for sign of number 0 signifies + 1 signifies - 5 bits excess-15 exponent 6 bits fractional mantissa 12bits 《 计算机组成与体系结构 》试卷 第 6 页 共 10 页

INTR1Processo DeviceINTA1 Device

INTRpINTpPriority arbitration

circuit

DeviceDevice(1) Give a truth table for each of the outputs INTA1, INTA2, and INTA3.

(2) Give logic expressions of INTA1, INTA2, INTA3 and a logic circuit for implementing this priority network. Solution:

《 计算机组成与体系结构 》试卷 第 7 页 共 10 页

3. Assume that a computer’s word-length is 16-bit, the capacity of main memory is 64K words. If it employs single-word-length one-address instructions and contains 64 instructions. Design an instruction format with addressing modes of direct, indirect, index, and relative. Solution:

4. The following figure 3 gives part of the microinstruction sequence corresponding to one of the machine instructions of a microprogrammed computer. Microinstruction B is followed by C, E, F, or I, depending on bits b6 and b5 of the machine instruction register. Compare the two possible implementations described below.

A 《 计算机组成与体系结构 》试卷B 第 8 页 共 10 页

b6b5=00

b6b5=01 b6b5=10 b6b5=11 C E F I

(1) Microinstruction sequencing is accomplished by means of a microprogram counter. Branching is achieved by microinstructions of the form: If b6b5 branch to X, where b6b5 is the branch condition and X is the branch address.

(2) Same as (1) except that the branch microinstruction has the form: Branch to X, OR Where X is a base branch address. The branch address is modified by bit-ORing of bits b5 and b6 with the appropriate bits with X. Solution:

《 计算机组成与体系结构 》试卷 第 9 页 共 10 页

5. (10 points)Consider the following piece of code: int x = 0, y = 0;//The compiler puts x in R1 and y in R2. int i;//The compiler puts i in R3. int A[4096];//A is in memory. …

for (i = 0; i < 1024; i ++) { x +=A[i]; }

for (i = 0; i < 1024; i ++) { y +=A[i + 2048]; }

Assume that the system has a 8192-byte, direct-mapped data cache with 16-byte blocks. Solution:

《 计算机组成与体系结构 》试卷 第 10 页 共 10 页

搜索更多关于: 2010计算机组成与体系结构A卷 的文档
2010计算机组成与体系结构A卷.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c6bvfx66zhf2teb88j4i568ub00wtn200644_2.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top