Questions
4520_COMP_SCI_X_0005 Week 8 Exam
Multiple fill-in-the-blank
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?

View Explanation
Verified Answer
Please login to view
Step-by-Step Analysis
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 explanationLog in for full answers
We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!
More Practical Tools for Students Powered by AI Study Helper
Making Your Study Simpler
Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!