cos and sin Testbench
The testbench calculates the cosine and sine values for 0°, 30°, 45°, 60°, 135°,
180°, 225°, 300°, and 330°. The testbench outputs the
following:
# Loading sv_std.std
# Loading work.tb_sin_cos(fast)
# time<=143 i_data<= 0 o_cos<= 65539(1.000046) o_sin<= -3(-0.000046)
# time<=187 i_data<= 30 o_cos<= 56759(0.866074) o_sin<= 32769(0.500015)
# time<=231 i_data<= 45 o_cos<= 46342(0.707123) o_sin<= 46341(0.707108)
# time<=275 i_data<= 60 o_cos<= 32769(0.500015) o_sin<= 56759(0.866074)
# time<=319 i_data<= 135 o_cos<= -46341(-0.707108) o_sin<= 46342(0.707123)
# time<=363 i_data<= 180 o_cos<= -65539(-1.000046) o_sin<= 3(0.000046)
# time<=407 i_data<= 255 o_cos<= -16961(-0.258804) o_sin<= -63305(-0.965958)
# time<=451 i_data<= 300 o_cos<= 32769(0.500015) o_sin<= -56759(-0.866074)
# time<=495 i_data<= 330 o_cos<= 56759(0.866074) o_sin<= -32769(-0.500015)
# ---PASSED---Note: The output values in
parentheses are in floating-point format.