Difficulty: Easy
Correct Answer: arithmetic or logic
Explanation:
Introduction / Context:An arithmetic-logic unit (ALU) is the computational heart of a processor. It typically supports two broad classes of operations: arithmetic (add, subtract, increment, etc.) and logical (AND, OR, XOR, NOT, etc.). Many classic ALUs expose a “mode” pin to select which class of function is active.
Given Data / Assumptions:
Concept / Approach:Mode lines are high-level selectors. In many ALUs, a single mode input chooses between arithmetic and logic “blocks.” Additional select inputs then choose a particular arithmetic (e.g., A + B, A − 1) or logic (e.g., A XOR B) function. Thus, the mode pin toggles the operational domain rather than the sign, one’s complementing, or carry handling directly.
Step-by-Step Solution:
Identify role of mode: top-level function class selection.Check common ALUs: datasheets show M=0 for arithmetic, M=1 for logic (or vice versa).Notice that carry and complement are managed by separate inputs (C_in, function selects).Therefore, mode determines arithmetic vs logic operation.Verification / Alternative check:Review truth tables from standard ALUs: the same function select codes produce different results depending on the mode state.
Why Other Options Are Wrong:
One’s complemented: inversion is typically a separate control or part of logic functions.Positive or negative: sign is a property of operands/results, not a mode selection.With or without carry: carry enable/propagate is a separate signal.Common Pitfalls:Assuming “mode” equals “subtract mode”; subtraction usually uses addition plus two’s complement, controlled by carry and invert signals.
Final Answer:arithmetic or logic
Discussion & Comments