计算机组成 计算题,计算机组成原理计算题设计题

a7f4a3f590493a1e451dd952a488fd7c.gif 计算机组成原理计算题设计题

(7页)

193593096bc7a73e58a3690dce343711.png

本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦!

9.9 积分

LIEEE 754 format of X is (41360000)what is its decimal value?将十六进制数展开,可得二进制数格式为:0 100 0001 0011 0110 0000 0000 0000 0000指数 c二阶码-127=10000010-01111111=00000011 = (3) 10包括隐藏位 1 的尾数 \.M= 1.011 0110 0000 0000 0000 0000 = 1.011011于是有:X = (-l)s * 1.M * 2e = +(1.011011)2 * 23 = 4- (1011.011)2 =(11.375)102.Let the carry bits of an adder are C4, C3, C2, G? Co is the carry from the low bit. Please give thelogic expressions of C4, C3, C2, Ci in ripple carry mode and carry look ahead mode respectively.(I)串行进位G1 =A1BI ,P1 =A1 ? B1G2 = A2B2 , P2 二 A2 ? B2G3=A3B3,P3=A3 ? B3G4 = A4B4,P4=A4 ? B4Cl =G1 +P1P0C2 = G2 + P2C1C3 二 G3 + P3C2C4 = G4 + P4C3(2)并行进位Cl =G1 +P1C0C2 = G2 + P2G1 + P2P ICOC3 二 G3 + P3G2 + P3P2G1 + P3P2P1C0G4 = G4 + P4G3 + P4G3G2 + P4P3P2G1 + P4P3P2P1C03.Suppose a computer with a clock frequency of 100 MHz as four types of instructions, and the frequency of usage and the CPI for each of them are given in table.Instruction operationFrequency of usageCycles per instructionArithmetic-logic40%2Load/store30%4compare8%2.5branch22%3(1) Find the MIPS of the computer and the T (CPU time) required to run a program of 107 instructions.(2) Combining comparing and branch instructions together so that compare instructions can be replaced and removed. Suppose each compare instruction was originally used with one branch instruction, and now each branch instruction is changed to a compare&branch instruction. Also suppose that the new proposal would decrease the clock frequency by 5%, because the new compare&branch instruction needs more time to execute. Find the new CPIave, MIPS, and T.第I页第I页CPIave = (0?4*2+0.*4+0.22*3)/0.92 = 2.9MIPS = f(MHz)/CPIave = (100*0.95)/2.9 = 32.76T = IC * CPIave/f(Hz) = (0.92* 10000000) *2.9/ (0.95*100* 1000000) = 0.28s4 CPU has 16 address bus lines (Ai5-A0), 8 data bus lines (D7-D0), R/W (high level represents Read, while low level represents Write), MREQ control line for accessing memory (low level represents accessible).Memory space allocation: The minimal 8K are used for system program, which is composed of Read Only Memory chip; the following 24K are used for user program; the last 2K are used for system working.Now we have: EPROM 8K * 8 (contains CS control line only);SRAM 16K*1,2K*8, 4K*8, 8K迫;Decoder 74LS13 &and other logic gatesQuesti ons:(1) Select appropriate chips to form the required memory space? Which chips are needed? How many chips are needed? Descript the corresponding data bus length, address bus length and control bus line.(2) Descript the address distribution of memory.(3) Descript select chip logic functions (片选逻辑函数)of each chip.(4) Descript the connection way among CPU, memory chips and 74LS138.解:(i>根据给定条件,选用EPROM: 8Kx8位芯片1片,其地址线13根,数据线8根,片选控制信号CS,无读写控制信号。SRAM: 8Kx8位芯片3片,地址线13根,数据线8根,片选控制线号CS,读写控制线号R/W; 2Kx8位芯片1片,地址 线11根,数据线8根,片选控制线号CS,读写控制线号R/Wo(2) A15A14A13A12A11 A10A9A8A7A6A5A4A3A2A1 A0CS00 关 键 词: 计算机 组成 原理 算题 设计

4d91c43bfc72ca913299809b07b4968f.gif  天天文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值