I am using Altera De0 nano Soc FPGA, and Quartus 16.1 lite edition. I found that to calculate sin, cos and atan Altera's CORDIC IP core can be used.or lookup table (LUT) can be used for sin or cos .but how to get sin inverse (ARCSIN) in VHDL?is there a way to generate sin inverse?
i want perform below calculation in vhdl,
library ieee;
library ieee_proposed;
USE ieee.std_logic_1164.all;
use ieee.math_real.all;
use ieee_proposed.float_pkg.ALL;
architecture,
PROCESS(clk)
variable ph ,r ,l ,rp : float (4downto-27);
BEGIN
IF rising_edge(clk)THEN
ph := arcsin((r / l)* sin(rp);
ENDIF;
END PROCESS;
i want perform below calculation in vhdl,
library ieee;
library ieee_proposed;
USE ieee.std_logic_1164.all;
use ieee.math_real.all;
use ieee_proposed.float_pkg.ALL;
architecture,
PROCESS(clk)
variable ph ,r ,l ,rp : float (4downto-27);
BEGIN
IF rising_edge(clk)THEN
ph := arcsin((r / l)* sin(rp);
ENDIF;
END PROCESS;