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

Reply

VHDL - sinusoidal wave & VHDL

 
Thread Tools Search this Thread
Old 01-16-2007, 02:54 PM   #1
Default sinusoidal wave & VHDL


Good afternoon
someone knows to suggest me how I can generate a sinusoidal wave with
frequency = 1HZ in vhdl?
I have already generated a wave quadrant
How could I pass to the sinusoidal wave?



tiflis
  Reply With Quote
Old 01-16-2007, 03:29 PM   #2
Jim Lewis
 
Posts: n/a
Default Re: sinusoidal wave & VHDL
tiflis wrote:
> Good afternoon
> someone knows to suggest me how I can generate a sinusoidal wave with
> frequency = 1HZ in vhdl?
> I have already generated a wave quadrant
> How could I pass to the sinusoidal wave?
>

For a testbench modeling, there are trig functions in
the package ieee.math_real. They expect angles in radians.
Trig functions in math_real:
Name [arguments] return Description
sin [real] real sine in radians
cos [real] real cosine in radians

There are also handy constants:
MATH_PI pi 3.14159265358979323846
MATH_2_PI 2*pi 6.28318530717958647693

There are more than this, but these are what I used.

Cheers,
Jim



Jim Lewis
  Reply With Quote
Old 01-17-2007, 10:13 AM   #3
tiflis
 
Posts: n/a
Default Re: sinusoidal wave & VHDL

Jim Lewis ha scritto:

> tiflis wrote:
> > Good afternoon
> > someone knows to suggest me how I can generate a sinusoidal wave with
> > frequency = 1HZ in vhdl?
> > I have already generated a wave quadrant
> > How could I pass to the sinusoidal wave?
> >

> For a testbench modeling, there are trig functions in
> the package ieee.math_real. They expect angles in radians.
> Trig functions in math_real:
> Name [arguments] return Description
> sin [real] real sine in radians
> cos [real] real cosine in radians
>
> There are also handy constants:
> MATH_PI pi 3.14159265358979323846
> MATH_2_PI 2*pi 6.28318530717958647693
>
> There are more than this, but these are what I used.
>
> Cheers,
> Jim


ok thanks.
Meantime I have found this in Internet:

http://www.doulos.com/knowhow/vhdl_d...ave_generator/

It could it are useful to me?



tiflis
  Reply With Quote
Old 01-17-2007, 10:41 AM   #4
Frank Buss
 
Posts: n/a
Default Re: sinusoidal wave & VHDL
tiflis wrote:

> ok thanks.
> Meantime I have found this in Internet:
>
> http://www.doulos.com/knowhow/vhdl_d...ave_generator/
>
> It could it are useful to me?


Yes, this could be useful for you. But you have to think about the output:
If you feed 1 Hz to a DAC (e.g. a R2R network) and your lookup table is
small, then you need a filter at the output, which depends on the size of
the lookup table and your quality requirement for the output signal.

--
Frank Buss,
http://www.frank-buss.de, http://www.it4-systems.de


Frank Buss
  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
How to execute an external software from VHDL? And how to interface VHDL with JAVA? becool_nikks Software 0 03-06-2009 07:08 PM
Vending machine using VHDL arie General Help Related Topics 0 03-05-2009 05:45 AM
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM
ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL freitass Hardware 0 11-01-2007 03:44 PM
vhdl code amirster Hardware 0 05-10-2007 07:28 AM




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