Forum Discussion
Altera_Forum
Honored Contributor
11 years agoDecimal point arithmetic
Hi, I am trying to do some math involving degrees for my program. I have two values A and B, both 8 bit Std_logic_vector. I need to calculate the angle given by arctan(B/A). Since this is a very expe...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- With only 8 bit on A and B, it would be very easy to use a look up table to find the values you need. A LUT is just a rom where you input value is the address (angle) --- Quote End --- Thank you! unfortunately im in a very space constrained environment so i cant spare the memory for a custom look up table! ironically, i have more programmable LUTs to spare than i do memory.