← All problems

Square Root

Medium · Combinational · SystemVerilog · VHDL

Design a module that computes the integer square root of the signed input in_0: the largest root such that root^2 ≤ in_0.

If in_0 is negative, root is 0.

Open this challenge in the editor →