Altera_Forum
Honored Contributor
16 years agoRAM memorie
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
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
i think you may be better off trying to use an LFSR pseudo-random generator rather than playing back a sample of RAM.
thanks for your reply, but how can i use this LFSR? an where can i get this?
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_registerok, 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?
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.
thanks once again, can you tell how can i use a .m file to generate a .hex file?
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.