arctan Testbench

The testbench takes in the following x and y coordinates, and outputs the angle in degrees:
  • x= -1 y=-1
  • x= 0 y=-1
  • x= 1 y=-1
  • x= 1 y=0
  • x= 1 y=1
  • x= 0 y=1
  • x= -1 y=1
  • x= -1 y=0
  • x=255 y=1
  • x=1 y=255
  • x=255 y=255
  • x=3 y=4
The testbench outputs the following:
# Loading sv_std.std
# Loading work.tb_arctan(fast)
# time=139 i_x=     -65536( -1) i_y=     -65536( -1) o_arctan=   -8847424(1)
# time=179 i_x=          0(  0) i_y=     -65536( -1) o_arctan=   -5898432(0)
# time=219 i_x=      65536(  1) i_y=     -65536( -1) o_arctan=   -2949184(1)
# time=259 i_x=      65536(  1) i_y=          0(  0) o_arctan=        192(0)
# time=299 i_x=      65536(  1) i_y=      65536(  1) o_arctan=    2949056(0)
# time=339 i_x=          0(  0) i_y=      65536(  1) o_arctan=    5898432(0)
# time=379 i_x=     -65536( -1) i_y=      65536(  1) o_arctan=    8847296(0)
# time=419 i_x=     -65536( -1) i_y=          0(  0) o_arctan=   11796672(0)
# time=459 i_x=   16711680(255) i_y=      65536(  1) o_arctan=      14784(0)
# time=499 i_x=      65536(  1) i_y=   16711680(255) o_arctan=    5883456(1)
# time=539 i_x=   16711680(255) i_y=   16711680(255) o_arctan=    2949056(0)
# time=579 i_x=     196608(  3) i_y=     262144(  4) o_arctan=    3481792(1)
# ---PASSED---
Note: The output values in parentheses are in floating-point format.