Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

IF SEL = 0 THEN Y <= A + B; ELSE Y <= A - B; IF SEL = 0 THEN Y <= A + B + 1; ELS

ID: 2988668 • Letter: I

Question

   IF SEL = 0 THEN
Y <= A + B;
ELSE Y <= A - B;
       IF SEL = 0 THEN
Y <= A + B + 1;
ELSE Y <= A B - 1;
       IF SEL = 0 THEN
Y <= A + B;
ELSE Y <= A (NOT B + 1);
       IF SEL = 0 THEN
Y <= A + B;
ELSE Y <= A B - 1;

3.3. (TCOs 1 and 3) Which of the following is the correct VHDL representation for assignment operations for an 8-bit adder/subtractor? The add/subtract signal is SEL and is LOW for addition. The inputs (A,B) and outputs (Y) are INTEGERS; SEL is BIT type. (Points : 5)

Explanation / Answer

IF SEL =