← All problems

Polynomial 6

Easy · Combinational · SystemVerilog

Design a purely combinational Verilog module that evaluates the quadratic polynomial $y = a2 * x^2 + a1 * x + a0$ using signed two's-complement arithmetic.

Numerical/width rules: All operations are signed. Intermediate products and sums must be sign-extended so that the final {y} fits in $2W + 1$ bits.

Open this challenge in the editor →