Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- I began writing the simulation but when I wen to test it in modelsim, modelsim reported that it only supports one HDL. Since some of the files are verilog (generated by QSYS) it won't allow simulation. --- Quote End --- Qsys has an option to set the simulation language to VHDL. Did you try it? There's no guarantee that it will work though, since not all Altera IP is provided in both languages. --- Quote Start --- I did get the SDRAM working but the display is mostly noise. I can tell it is somewhat working because the general color of the noise changes predictably as I aim the camera from a dark area to a bright area. The noise is likely because of issues with two masters fighting for access to the SDRAM chip. Also the sdram_controller_s1_waitrequest signal seems to be always high. --- Quote End --- That does not sound like its "working" at all. --- Quote Start --- 1. Is there possibly a required init period that I'm not allowing time for? --- Quote End --- No idea. Did you look at the DE0 example designs provided with the kit? --- Quote Start --- 2. Is there a better way to delegate access to the SDRAM chip than what I'm doing below? Maybe alternate every other clock cycle? --- Quote End --- You'll need to check that your code implements an Avalon-MM master correctly. Read/write transactions need to be asserted until wait-request deasserts. --- Quote Start --- The SDRAM chip is made by ISSI. The pdf for this specific chip states that the acceptable clock frequencies are 133, 143, 166, & 200MHz. The altera tutorials that involve sdram instruct you to create a ALTPLL with a 50mhz output and a -3ns phase shift for the SDRAM. I was using a 100Mhz PLL with a -3ns phase shift. I'll try other frequencies. --- Quote End --- The phase-shift is board-specific. I think I wrote some notes in the DE0-nano SDRAM tutorial. I performed a TimeQuest timing and adjusted the clock phase until it provided suitable timing margin. --- Quote Start --- 3. Do you know what frequency I should be using? The information seems to be conflicting. --- Quote End --- 100MHz should be fine. Start with that, and then once it works, you should have a better understanding of what it takes to get it to operate at a different frequency. Cheers, Dave