Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

how to calculate sin inverse (ARCSIN) in VHDL?

$
0
0
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;

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>