Altera_Forum
Honored Contributor
21 years agoBasic SDRAM/NIOS question
Hello:
I'm new here. Here's a fairly basic question (I think)... an answer to which I have been unable to find. I have a NIOS2 cyclone development board. What I want to do is read data from SDRAM (14 bits at a time) and clock it into a DAC using the PIO core. My question is this... Let's say I want to clock these 14 bit values into the DAC at a rate of 5 MHz (the clock would have to be generated from the fpga as well... possibly sysclk divided down). But here's the problem- how do I write these 14 bits to the PIO pins at a fixed rate so as to follow the timing constraints of the DAC chip? Is it a difficult task to do this with SDRAM? Or should I just do a DMA to SRAM and control that using my own design outside of NIOS. Thanks in advance. --