Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Implementing the CORDIC algorithm without using Real Data Type

 
Thread Tools Search this Thread
Old 10-26-2004, 06:35 PM   #1
Default Implementing the CORDIC algorithm without using Real Data Type


Hello,

I am confused on an issue while trying to implement the CORDIC
algorithm. The values of cosine and sine functions are real numbers.
How do I implement such numbers without using the Real data type
because I want to have my design synthesizable? How do I do a work
around using the synthesizable data types like std_logic etc? Please
forgive me if my question is stupid.

Thanks for the help
Warm Regards
Sam


Johnsy Joseph
  Reply With Quote
Old 10-28-2004, 10:54 PM   #2
Eric Smith
 
Posts: n/a
Default Re: Implementing the CORDIC algorithm without using Real Data Type
(Johnsy Joseph) writes:
> I am confused on an issue while trying to implement the CORDIC
> algorithm. The values of cosine and sine functions are real numbers.
> How do I implement such numbers without using the Real data type
> because I want to have my design synthesizable?


For real inputs, the range of both the cosine and sin functions are
[-1, 1], or [0, 1] if you only need the first quadrant. Floating point
is obviously not necessary to represent that; just use a suitable
fixed-point number.

Similarly, even though the domain of cosine and sin are the entire
set of reals (or even complex), for many applications it is acceptable
to limit the domain to the range [0, 2*pi), which can also easily be
represented in fixed-point.

CORDIC can easily be used for angles in units other than radians, as
well. I usually use angles measured as a fraction of a unit circle,
e.g., radians/2*pi. I've heard various names proposed for such a
unit of angular measure, but nothing seems definitive.

> around using the synthesizable data types like std_logic etc?


Use the unsigned type from ieee.numeric_std, and choose a width and
scale factor to get the precision you need.


Eric Smith
  Reply With Quote
Old 10-29-2004, 11:49 AM   #3
Brian Drummond
 
Posts: n/a
Default Re: Implementing the CORDIC algorithm without using Real Data Type
On 28 Oct 2004 14:54:44 -0700, Eric Smith
<eric-no-spam-for-> wrote:

>CORDIC can easily be used for angles in units other than radians, as
>well. I usually use angles measured as a fraction of a unit circle,
>e.g., radians/2*pi. I've heard various names proposed for such a
>unit of angular measure, but nothing seems definitive.


Heh. Points. There are 32 points around the unit circle.

- Brian
(N, N by W, WNW, NW by N, NW, NW by W, ...



Brian Drummond
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wonderful data input with web reporting tool freezea Software 0 09-09-2009 05:30 AM
Eclipse - Axis2 - Java Webservices Error amanjsingh Software 1 10-09-2007 09:03 AM
Need help on Modelsim VHDL syntax? ASAP:) kaji General Help Related Topics 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46