Altera_Forum
Honored Contributor
9 years agoMAX10m08 board SDRAM access example
Hi,
I'm a student and new to FPGA design. I'm trying to access external SDRAM on MAX10M09 board via SDRAM controller. The main idea is to write into a certain address with a certain value and then read it out and display it on led. After each write-read cycle, the value will be increased by 1. Total cycles will be 8 and then reset. I use one SDRAM Controller to connect DDR SDRAM on board. Then a verilog module(state machine module) to connect with SDRAM controller to apply write-read action. Finally a PLL to give clock signals. The state machine works like; null stage -> write stage -> write-wait stage -> read stage -> read-wait stage. Then it will go back to write stage if not reset. There are two signals sent from SDRAM which are WaitRequest and ReadValid. The WaitRequest indicates if the SDRAM is busy or not. When the ReadValid signal is 1, we can read the output of SDRAM. So far, I just use LED to follow the stage flow. My problem is the state machine is always stuck at read-wait stage because it couldn't get DataValid signal... I upload the example. Does anyone can kindly help to check it? Thank you so much! Rocky