Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi, I don't know laboratory exercises.
If you want to write to sram, ther is pratically nothing more than writing data to an (big) array variable, a (big) structure in your C program. --- Quote Start --- the 8th laboratory exercise and at the final part, they ask us to modify part6 to use the sram chip instead of M4K blocks --- Quote End --- What is part 6 ? SOPC/QSYS editor ? OR C program ? OR other thing ? Have you made "hello world" project before ? Are you familiar with SOPC/QSYS, NIOS II IDE/SBT, BSP (which interfaces SOPC/QSYS to your software by generating "system.h" (with others) ? --- Quote Start --- we can use the In-system memory content editor to modify the sram chip, right? --- Quote End --- NO, "In system memory content editor" is a megawizard that help you to employ some on-chip dual port RAM on which you can read or modify through JTAG. I use them as "modifiable" constants for coefficients of a FIR, IIR... Other solution : It depends of how you get sound data : a lonely 8 bits, 16 bits Integer, 24 bits floating point... Does Your sound data come from a buffer ? In which case you have to read multiple times and store each data to an array. The question is : do you have SRAM somewhere in your SOPC/QSYS and BSP editor ? OR..... Maybe you have to write at a special address Regards