cosh and sinh Testbench
The testbench calculates the cosh and sinh values for -3.142, -2.55, -1, 0, 0.8, 2.33, and 3.142. The testbench outputs the following:
# Loading sv_std.std
# Loading work.tb_sinh_cosh(fast)
# time=159 i_data= -205914(-3.142) o_cosh= 759920(11.595459) o_sinh= -757104(-11.552490)
# time=219 i_data= -167117( -2.55) o_cosh= 422176(6.441895) o_sinh= -417064(-6.363892)
# time=279 i_data= -65536( -1) o_cosh= 101114(1.542877) o_sinh= -77006(-1.175018)
# time=339 i_data= 0( 0) o_cosh= 65523(0.999802) o_sinh= 0(0.000000)
# time=399 i_data= 52429( 0.8) o_cosh= 87645(1.337357) o_sinh= 58201(0.888077)
# time=459 i_data= 152699( 2.33) o_cosh= 339960(5.187378) o_sinh= 333592(5.090210)
# time=519 i_data= 205914( 3.142) o_cosh= 759920(11.595459) o_sinh= 757104(11.552490)
# ---PASSED---
Note: The output values in parentheses are in floating-point
format.