Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

generating a since LFO in VHDL

Status
Not open for further replies.

juggler

Junior Member level 2
Joined
Jan 5, 2011
Messages
22
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
uk
Activity points
1,453
generating a sine LFO in VHDL

I want to be able to modulate a parameter in my audio processing project using a some kind of variable sine LFO in VHDL.

Whats the best way to go about this? It only needs to vary from say 0-20hz and it has to be offset to make the whole thing positive since its value will actually be a pointer.

Suggestions?
cheers
 
Last edited:

A DDS generator seems just perfect for this purpose. Offsetting the normally bipolar output range to unipolar is a simple thing.
 

Thanks for the reply, would a DDS require some form of look up table? obviously this wouldnt require a high resolution at all. Are there any working examples around?
 

Besides the said IP blocks of major FPGA vendors, you'll find many code examples at edaboard. I know, that I posted at least one, demonstrating sine table generation in VHDL.

Yes, look-up table (LUT) is the straightforward way, there are also other generation algorithms, particularly interesting for high resolution sine. I guess, that 8 or 10 bit (both magnitude and phase resolution) are sufficient for your application, suggesting a small ROM table.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top