← All problems

Polynomial 6

Easy · Combinational · SystemVerilog

Design a purely combinational module that evaluates the quadratic polynomial $y = a_2 x^2 + a_1 x + a_0$ in signed two's-complement arithmetic.

All operations are signed; intermediate products and sums are sign-extended so the final {y} fits in $2W + 1$ bits.

Open this challenge in the editor →