电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

计算机组成与设计第四章答案(第三版第四版通用)

68页
  • 卖家[上传人]:油条
  • 文档编号:101088651
  • 上传时间:2019-09-26
  • 文档格式:PDF
  • 文档大小:517KB
  • / 68 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • 1、 4 Solutions Solution 4.1 4.1.1 The values of the signals are as follows: RegWriteMemReadALUMuxMemWriteALUOpRegMuxBranch a.100 (Reg)0Add1 (ALU)0 b.111 (Imm)0Add1 (Mem)0 ALUMux is the control signal that controls the Mux at the ALU input, 0 (Reg) selects the output of the register fi le and 1 (Imm) selects the immediate from the instruction word as the second input to the ALU. RegMux is the control signal that controls the Mux at the Data input to the regis- ter fi le, 0 (ALU) selects the output

      2、of the ALU and 1 (Mem) selects the output of memory. A value of X is a “dont care” (does not matter if signal is 0 or 1) 4.1.2 Resources performing a useful function for this instruction are: a.All except Data Memory and branch Add unit b.All except branch Add unit and second read port of the Registers 4.1.3 Outputs that are not usedNo outputs a. Branch AddData Memory b. Branch Add, second read port of RegistersNone (all units produce outputs) 4.1.4 One long path for and instruction is to read t

      3、he instruction, read the reg- isters, go through the ALUMux, perform the ALU operation, and go through the Mux that controls the write data for Registers (I-Mem, Regs, Mux, ALU, and Mux). The other long path is similar, but goes through Control while registers are read (I- Mem, Control, Mux, ALU, Mux). There are other paths but they are shorter, such as the PC increment path (only Add and then Mux), the path to prevent branching (I-Mem, Control, Mux uses Branch signal to select the PC + 4 input

      4、as the new value for PC), the path that prevents a memory write (only I-Mem and then Control, etc). S110 Chapter 4 Solutions a.Control is faster than registers, so the critical path is I-Mem, Regs, Mux, ALU, Mux. b.Control is faster than registers, so the critical path is I-Mem, Regs, Mux, ALU, Mux. 4.1.5 One long path is to read instruction, read registers, use the Mux to select the immediate as the second ALU input, use ALU (compute address), access D-Mem, and use the Mux to select that as reg

      5、ister data input, so we have I-Mem, Regs, Mux, ALU, D-Mem, Mux. The other long path is similar, but goes through Control instead of Regs (to generate the control signal for the ALU MUX). Other paths are shorter, and are similar to shorter paths described for 4.1.4. a.Control is faster than registers, so the critical path is I-Mem, Regs, Mux, ALU, D-Mem, Mux. b.Control is faster than registers, so the critical path is I-Mem, Regs, Mux, ALU, Mux. 4.1.6 This instruction has two kinds of long paths,

      6、 those that determine the branch condition and those that compute the new PC. To determine the branch condition, we read the instruction, read registers or use the Control unit, then use the ALU Mux and then the ALU to compare the two values, then use the Zero out- put of the ALU to control the Mux that selects the new PC. As in 4.1.4 and 4.1.5: a. The fi rst path (through Regs) is longer. b. The fi rst path (through Regs) is longer. To compute the PC, one path is to increment it by 4 (Add), add

      7、 the offset (Add), and select that value as the new PC (Mux). The other path for computing the PC is to Read the instruction (to get the offset), use the branch Add unit and Mux. Both of the compute-PC paths are shorter than the critical path that determines the branch condition, because I-Mem is slower than the PC + 4 Add unit, and because ALU is slower than the branch Add. Solution 4.2 4.2.1 Existing blocks that can be used for this instruction are: a.This instruction uses instruction memory,

      8、both existing read ports of Registers, the ALU, and the write port of Registers. b.This instruction uses the instruction memory, one of the existing register read ports, the path that passed the immediate to the ALU, and the register write port. 4.2.2 New functional blocks needed for this instruction are: a.Another read port in Registers (to read Rx) and either a second ALU (to add Rx to Rs + Rt) or a third input to the existing ALU. b.We need to extend the existing ALU to also do shifts (adds a

      9、 SLL ALU operation). Chapter 4 Solutions S111 4.2.3 The new control signals are: a.We need a control signal that tells the new ALU what to do, or if we extended the existing ALU we need to add a new ADD3 operation. b.We need to change the ALU Operation control signals to support the added SLL operation in the ALU. 4.2.4 Clock cycle time is determined by the critical path, which for the given latencies happens to be to get the data value for the load instruction: I-Mem (read instruction), Regs (takes longer than Control), Mux (select ALU input), ALU, Data Memory, and Mux (select value from memory to be written into Registers). The latency of this path is 400ps + 200ps + 30ps + 120ps + 350ps + 30ps = 1130ps. New clock cycle time a. 1130ps (No change, Add units are not on the critical path). b. 1230 (1130ps + 100ps, Regs are on the critical path) 4.2.5 The speed-up comes from changes in clock cycle time and changes to the number of clock cycles we need for the program: Benefi t a. Speed-

      《计算机组成与设计第四章答案(第三版第四版通用)》由会员油条分享,可在线阅读,更多相关《计算机组成与设计第四章答案(第三版第四版通用)》请在金锄头文库上搜索。

      点击阅读更多内容
    最新标签
    监控施工 信息化课堂中的合作学习结业作业七年级语文 发车时刻表 长途客运 入党志愿书填写模板精品 庆祝建党101周年多体裁诗歌朗诵素材汇编10篇唯一微庆祝 智能家居系统本科论文 心得感悟 雁楠中学 20230513224122 2022 公安主题党日 部编版四年级第三单元综合性学习课件 机关事务中心2022年全面依法治区工作总结及来年工作安排 入党积极分子自我推荐 世界水日ppt 关于构建更高水平的全民健身公共服务体系的意见 空气单元分析 哈里德课件 2022年乡村振兴驻村工作计划 空气教材分析 五年级下册科学教材分析 退役军人事务局季度工作总结 集装箱房合同 2021年财务报表 2022年继续教育公需课 2022年公需课 2022年日历每月一张 名词性从句在写作中的应用 局域网技术与局域网组建 施工网格 薪资体系 运维实施方案 硫酸安全技术 柔韧训练 既有居住建筑节能改造技术规程 建筑工地疫情防控 大型工程技术风险 磷酸二氢钾 2022年小学三年级语文下册教学总结例文 少儿美术-小花 2022年环保倡议书模板六篇 2022年监理辞职报告精选 2022年畅想未来记叙文精品 企业信息化建设与管理课程实验指导书范本 草房子读后感-第1篇 小数乘整数教学PPT课件人教版五年级数学上册 2022年教师个人工作计划范本-工作计划 国学小名士经典诵读电视大赛观后感诵读经典传承美德 医疗质量管理制度 2
     
    收藏店铺
    关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
    手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
    ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.