exp Testbench
The testbench calculates the exponential values for -10, -5.5, -0.5, 0, 3.142, 7.777,
and 10. The testbench outputs the
following:
# Loading sv_std.std
# Loading work.tb_exp(fast)
# time=157 i_data= -655360(-10 ) o_exp= 2(0.000031)
# time=215 i_data= -360448(-5.5 ) o_exp= 267(0.004074)
# time=273 i_data= -32768(-0.5 ) o_exp= 39741(0.606400)
# time=331 i_data= 0(0 ) o_exp= 65523(0.999802)
# time=389 i_data= 205914(3.142) o_exp= 1517024(23.147949)
# time=447 i_data= 509673(7.777) o_exp= 156289024(2384.781250)
# time=505 i_data= 655360(10 ) o_exp= 1443446784(22025.250000)
# ---PASSED---Note: The output values in
parentheses are in floating-point format.