Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

RAM memorie

Altera_Forum
Honored Contributor II
1,616 Views

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

0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
870 Views

i think you may be better off trying to use an LFSR pseudo-random generator rather than playing back a sample of RAM.

0 Kudos
Altera_Forum
Honored Contributor II
870 Views

thanks for your reply, but how can i use this LFSR? an where can i get this?

0 Kudos
Altera_Forum
Honored Contributor II
870 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
870 Views

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?

0 Kudos
Altera_Forum
Honored Contributor II
870 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
870 Views

thanks once again, can you tell how can i use a .m file to generate a .hex file?

0 Kudos
Altera_Forum
Honored Contributor II
870 Views

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.
0 Kudos
Reply