题目
4520_COMP_SCI_X_0005 Week 8 Exam
多项填空题
Category: ALU The following diagram shows the interface to the Hack ALU and the effect of the six control inputs zx, nx, zy, ny, f and no. Notes: What are the values x1, x2, y1, y2, fout and out when the ALU control inputs have the following values? What values would be output on the zr and ng wires if the values of x and y are as follows?

查看解析
标准答案
Please login to view
思路分析
The problem presents the Hack ALU interface and asks you to determine the values for x1, x2, y1, y2, fout, and out under a given set of control inputs, followed by the values for zr and ng for two specific input pairs. Below I walk through each blank in order and explain why each value is what it is, then I relate those to the provided answers.
- Blank 1 (x1): if zx == 1 then x1 = 0; otherwise x1 = x. In this scenario zx is 1, so x1 is forced to 0. This matches the provided first answer: 0.
- Blank 2 (x2): if nx == 1 then x2 = ~x1 (the bitwise not of x1); otherwise x2 = x1. Since nx ......Login to view full explanation登录即可查看完整答案
我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。
更多留学生实用工具
希望你的学习变得更简单
加入我们,立即解锁 海量真题 与 独家解析,让复习快人一步!