Skip to question
SystemVerilogDesignVerificationFirmwareArchitectureASIC Interview Questions→
/Interview questions/Interpret one mixed-sign addition explicitly

Q153·Free·SystemVerilog

Interpret one mixed-sign addition explicitly

Difficulty
Medium
Topic
RTL Arithmetic
Language
SV
Interview prompt

Question

For the shown 8-bit operands a = -2 and b = 3, which expression explicitly interprets both bit patterns as signed and produces the intended result 1?

Provided context

Code to inspect

logic signed [7:0] a = -8'sd2;
logic        [7:0] b =  8'd3;
logic signed [8:0] sum;
Choose one

Answer choices

  1. A. sum = {a, b};
  2. B. sum = $signed(a) + $signed(b);
  3. C. sum = unsigned'(a + b);
  4. D. sum = a || b;
Exact question handoffPractice Q153

Solve it in the question bank, keep your progress, and reveal the reviewed solution when your access allows.

Open in question bank →
Solution accessEach time you open this Solution, one Practice Credit is used; it is not permanently unlocked. Premium Solution content also uses one credit per opening.
Continue learning

RTL Synthesis and Proof

Review widths, parameterization, memory inference, pipelining, implementation pressure, and proof evidence.

  • RTL Arithmetic
  • SystemVerilog
  • Signed arithmetic
  • Expression sizing
RTL Synthesis and Proof →
Continue practicing

Related questions

Q1110 · RTL DesignImplement Signed Eight-Bit Add/Subtract with OverflowEasyP→Q144 · Hardware AlgorithmsCount target-sum burstsMedium→
ASIC.FYI · Learn silicon end to end.info@asic.fyi