hw_2_solution - EE 306 - Introduction to Computing Homework...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
EE 306 - Introduction to Computing Homework #2 Solutions 1. 3.24 (13 pts = 4+7) a. The role of X is to choose between two possible inputs as the second operand, namely B and C. By setting X to either 0 or 1 the multiplexers choose either B or C to be connected to the adder. If X is 0, the adder adds A and B while if it is 1, it adds A and C (or vice versa depending on which of them is connected to which input). b. This can be made by computing –B (B’s 2’s complement) on the fly. We set all C i = NOT B i or as a whole C=NOT B; computing B’s 1’s complement then we add 1 to it by setting carry-in of the first adder module. The below diagram illustrates the new circuit: A3 A2 A1 A0 B3 B2 B1 B0 A3 A2 A1 A0 B3 B2 B1 B0 C3 C2 C1 C0 X ADD/SUBTRACT Carry-in S3 S2 S1 S0 S3 S2 S1 S0 2. 3.28 a-d (8 pts = 2+2+2+2) a. For a two bit binary number, the maximum value is (11) b =(3) 10 . b.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

hw_2_solution - EE 306 - Introduction to Computing Homework...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online