- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have problems: How to creat noise gaussian or normal noise in vhdl ??? and how to simulate sine wave and sin wave+ noise in modelsim altera
Link Copied
12 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- i have problems: How to creat noise gaussian or normal noise in vhdl ??? and how to simulate sine wave and sin wave+ noise in modelsim altera --- Quote End --- shift register based prbs can generate pseudo random noise. LUTs also can be used to store whatever type of noise you get from tools like matlab e.g. gaussian. You add noise signal to your signal sample by sample. sine wave can be generated from luts by hand or nco compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- shift register based prbs can generate pseudo random noise. LUTs also can be used to store whatever type of noise you get from tools like matlab e.g. gaussian. You add noise signal to your signal sample by sample. sine wave can be generated from luts by hand or nco compiler. --- Quote End --- how LUTs can store signal ,and how to convert gaussan from matlab to vhdl,i đon't understand ??? how can generate sine wave by LUTs( i know nco blocks)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- how LUTs can store signal --- Quote End --- insert your data in mif files for ram to play --- Quote Start --- and how to convert gaussan from matlab to vhdl,i đon't understand ??? --- Quote End --- I didn't say that. you create mif file from data --- Quote Start --- how can generate sine wave by LUTs( i know nco blocks) --- Quote End --- use nco compiler, that does it all for you You will need to make some research for all that before diving as it seems you are a beginner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you talking about creating noise only for simulation, or from an FPGA?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- insert your data in mif files for ram to play I didn't say that. you create mif file from data use nco compiler, that does it all for you You will need to make some research for all that before diving as it seems you are a beginner --- Quote End --- yeah,i'm a beginner,need to learn more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Are you talking about creating noise only for simulation, or from an FPGA? --- Quote End --- just for simulation,thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
VHDL does have a "uniform" function in the math_real package than can generate random numbers between 0.0 and 1.0, that you can use to inject randomness into your design.
Also, have a look at this http://osvvm.org/ It is a package of functions for constrained random generation with various distrubutions (including gaussian)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PS. It is not for VHDL beginners though. Would make a good project (and you would learn a lot of the features of VHDL)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm surprised Dave hasn't weighed in on this, he has written an excellent tutorial on the subject along with sample code;
http://www.ovro.caltech.edu/~dwh/cor...r_tutorial.pdf http://www.ovro.caltech.edu/~dwh/cor...torial_src.zip- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ha! You beat me to it :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks,maybe i just simulate in matlab before
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- thanks,maybe i just simulate in matlab before --- Quote End --- The tutorial has MATLAB code as well as VHDL code. Cheers, Dave

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page