- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hii'll like to generate a White Gaussian noise in Matlab and store it in one of the ram memories of a stratix II DSP kit. Someone know how to do this, please help me.:o
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i think you may be better off trying to use an LFSR pseudo-random generator rather than playing back a sample of RAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for your reply, but how can i use this LFSR? an where can i get this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you should be able to code one up or search around for HDL. its very simple. Wikipedia's description and images should help:
http://en.wikipedia.org/wiki/linear_feedback_shift_register- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok, but if i wont to store some data in the ram memorie and then read that data from the DAC, how can i do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can either use the MegaWizard GUI to generate a RAM with your specs and specify a .hex or .mif memory initialization file (which you could generate with a script or .m file) or you can use an HDL template and initialize the RAM with an array containing your noise data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks once again, can you tell how can i use a .m file to generate a .hex file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
this is not something i've had to do yet. there is a trick you might try by kaz here:
http://www.alteraforum.com/forum/showthread.php?t=4787 or else search around for creating .hex or .mif.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page