cordic

arctan function with cordic with vhdl

风流意气都作罢 提交于 2020-07-24 04:10:11
问题 I want to design arctan function with VHDL for using in demodulator design. I need a division & arctan function block. I have two signals, assumed that sin(alpha) and cos(alpha) from previos blocks. I want to retrieve alpha with using division [sin(alpha)/cos(alpha) = tan(alpha)] and then arctan function. I found that it is possible to do that with cordic algortihm, but a bit confused. Do you have any recommendation, docs or sth. how to design division & arctan with cordic in vhdl? Thanks in

arctan function with cordic with vhdl

依然范特西╮ 提交于 2020-07-24 04:08:37
问题 I want to design arctan function with VHDL for using in demodulator design. I need a division & arctan function block. I have two signals, assumed that sin(alpha) and cos(alpha) from previos blocks. I want to retrieve alpha with using division [sin(alpha)/cos(alpha) = tan(alpha)] and then arctan function. I found that it is possible to do that with cordic algortihm, but a bit confused. Do you have any recommendation, docs or sth. how to design division & arctan with cordic in vhdl? Thanks in

arctan function with cordic with vhdl

﹥>﹥吖頭↗ 提交于 2020-07-24 04:08:30
问题 I want to design arctan function with VHDL for using in demodulator design. I need a division & arctan function block. I have two signals, assumed that sin(alpha) and cos(alpha) from previos blocks. I want to retrieve alpha with using division [sin(alpha)/cos(alpha) = tan(alpha)] and then arctan function. I found that it is possible to do that with cordic algortihm, but a bit confused. Do you have any recommendation, docs or sth. how to design division & arctan with cordic in vhdl? Thanks in

What's wrong with my CORDIC algorithm?

你说的曾经没有我的故事 提交于 2019-12-11 04:29:48
问题 Adapted to Java from the Wikipedia page on CORDIC: class MathFunctions { final static double[] angles = { 0.78539816339745, 0.46364760900081, 0.24497866312686, 0.12435499454676, 0.06241880999596, 0.03123983343027, 0.01562372862048, 0.00781234106010, 0.00390623013197, 0.00195312251648, 0.00097656218956, 0.00048828121119, 0.00024414062015, 0.00012207031189, 0.00006103515617, 0.00003051757812, 0.00001525878906, 0.00000762939453, 0.00000381469727, 0.00000190734863, 0.00000095367432, 0

How do I print a Rust floating-point number with all available precision?

拥有回忆 提交于 2019-12-01 15:32:53
问题 I am implementing the CORDIC algorithm for the sin trigonometric function. In order to do this, I need to hardcode/calculate a bunch of arctangent values. Right now my function seems to work (as validated by Wolfram Alpha) to the precision that is printed, but I would like to be able to print all 32 bits of precision of my f32 . How may I do that? fn generate_table() { let pi: f32 = 3.1415926536897932384626; let k1: f32 = 0.6072529350088812561694; // 1/k let num_bits: uint = 32; let num_elms: