PoC.arith.SquareRoot

Iterative Square Root Extractor.

Its computation requires (N+1)/2 steps for an argument bit width of N.

Entity Declaration:

 1  );
 2  port (
 3    -- Global Control
 4    Clock    : in  std_logic;                 -- Clock
 5    Reset    : in  std_logic;                 -- Reset (synchronous)
 6
 7    -- Inputs
 8    Radicand : in  std_logic_vector(BITS-1 downto 0);  -- Radicand
 9    Start    : in  std_logic;                          -- Start Strobe
10
11    -- Outputs
12    Result   : out std_logic_vector((BITS-1)/2 downto 0);  -- Result
13    Ready    : out std_logic                               -- Ready / Done
14  );
15end entity;
16
17
18architecture rtl of arith_SquareRoot is