Altera_Forum
Honored Contributor
10 years agoHow to use SDRAM on DE2 board?
Hi,
I am working on a school project, and I am using FPGA to control a DAC(digital to analog converter) and a ADC (analog to digital converter) with SPI protocol. Basically, I looked at the timing diagram of these two chips, and then I wrote Verilog and upload them into the FPGA. So, I got this part done. My FPGA can send binary codes to DAC, however, I have a huge lookup table which contains 2^16 of 16-Bit of binary codes need to send to DAC. So I think I will need to use SDRAM to store this lookup table. I did some search, and I found I can use DE2 control panel to upload my lookup table into the SDRAM, I tried it and it worked. My question is, as I use DE2 control panel to upload my lookup table into SDRAM, and FPGA is ready to send binary codes to DAC, how can I let my verilog program access these binary codes inside of SDRAM, and send them out? There are some people suggested to build a memory controller with Qsys, but I am not quite sure how does it work. So any help would be appreciated! Thanks, Tao