sqrt Testbench
The testbench calculates the square root values for 4, 0.3333, 0.855, 59, 590.59,
4098, 16400, and 30000. The testbench outputs the
following:
# Loading sv_std.std
# Loading work.tb_sqrt(fast)
# time=169 i_data= 262144( 4) o_sqrt= 131020(1.999207)
# time=235 i_data= 21843(0.3333) o_sqrt= 37824(0.577148)
# time=301 i_data= 56033( 0.855) o_sqrt= 60584(0.924438)
# time=377 i_data= 3866624( 59) o_sqrt= 503296(7.679688)
# time=461 i_data= 38704906(590.59) o_sqrt= 1592256(24.295898)
# time=551 i_data= 268566528( 4098) o_sqrt= 4193024(63.980469)
# time=645 i_data= 1074790400( 16400) o_sqrt= 8387840(127.988281)
# time=739 i_data= 1966080000( 30000) o_sqrt= 11347968(173.156250)
# ---PASSED---Note: The output values in
parentheses are in floating-point format.