CORDIC Testbench
You can choose to generate the testbench when generating the core in the IP Manager Configuration window. To generate testbench, the Testbench Deliverables Option signals must be enabled.
provides a simulation script for you to run the testbench
quickly using the Modelsim software. To run the Modelsim testbench script, run
vsim -do modelsim.do in a terminal application. You must have
Modelsim installed on your computer to use this script.
- tb_cos_sin.v—sin and cos function
- tb_arccos_arcsin.v—arcsin and arccos function
- tb_arctan.v—arctan function
- tb_cosh_sinh.v—sinh and cosh function
- tb_tanh.v—tanh function
- tb_exp.v—exponential function
- tb_ln.v—natural log function
- tb_sqrt.v—square root function
Each testbench takes a set of predefined input, convert it to a fixed-point format, perform the selected CORDIC operation, and output the results in fixed-point format. You have to convert the output to a floating-point format by dividing it by 65536.