superposition of a square wave over a sine wave

S

Shiva

Guest
Hi all,

I am new to VHDL programming. My task is to generate a high frequency
square wave(500 Hz) super positioned over a low frequency sine wave(5
Hz). how can this be achieved in VHDL. I know how to generate both
these waves separately, but i dunno how to generate them together and
superposition them. i would be thankful if someone could help me in
this task. even your valuable ideas will be quite useful for me.

thanks
 
On Fri, 30 Jan 2009 12:43:32 -0800 (PST), Shiva <chibi.sub@gmail.com>
wrote:

Hi all,

I am new to VHDL programming. My task is to generate a high frequency
square wave(500 Hz) super positioned over a low frequency sine wave(5
Hz). how can this be achieved in VHDL. I know how to generate both
these waves separately, but i dunno how to generate them together and
superposition them. i would be thankful if someone could help me in
this task. even your valuable ideas will be quite useful for me.
Is there any reason why you cannot generate the
two waveforms and add them before sending the
digitized data to your DAC?
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
 
On Jan 30, 3:43 pm, Shiva <chibi....@gmail.com> wrote:
Hi all,

I am new to VHDL programming. My task is to generate a high frequency
square wave(500 Hz) super positioned over a low frequency sine wave(5
Hz). how can this be achieved in VHDL. I know how to generate both
these waves separately, but i dunno how to generate them together and
superposition them. i would be thankful if someone could help me in
this task. even your valuable ideas will be quite useful for me.

thanks
wave_out <= square + sin;
 

Welcome to EDABoard.com

Sponsor

Back
Top