Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

De0 sdram vhdl

Altera_Forum
Honored Contributor II
1,853 Views

Hi everybody,  

 

I tried to write a VHDL code for the SDRAM controller based of the Hamster one in: http://hamsterworks.co.nz/mediawiki/index.php/simple_sdram_controller 

The next thing I would like to do is to write some code in VHDL that reads and writes to the SDRAM, I just need help to write the layer that make the interface with my controller. It would just have something like clock, address, ready, write/read, and data. I'm not yet familiar with this kind of interfaces. I am having problems understanding how this works. If anyone has more experience with this, I would appreciate your help. 

Thanks in advance, 

 

Best regards,
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
969 Views

Start reading datasheet of memory chip on the DE0 Nano board right now, start coding and by the end of the week you'll have nice working controller. Or just use search: http://www.alteraforum.com/forum/showthread.php?t=45927&p=189720#post189720

0 Kudos
Altera_Forum
Honored Contributor II
969 Views

Thank you Linas for your reply. I understood the data-sheet of my chip and also write the code. The problem that I have is how to generate pattern to test my memory. 

I used a timer to generate an interruption, when it's activated I write a DATA in a specified address. And when the interruption is deactivated I read the data that was written. Unfortunately, it doesn't work for me. 

Note: i did not use nios neither jtag, only VHDL coding. 

Best regards
0 Kudos
Altera_Forum
Honored Contributor II
969 Views

You can initialize on-chip memory with known good values, write them to SDRAM, read and check against your known good values. You can use PRBS generator module form UDP Offload example.

0 Kudos
Reply