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

generate waveform output on FPGA

Altera_Forum
Honored Contributor II
1,413 Views

I am trying to store a sampled waveform onto FPGA, which I could then output to feed a chip. Previously, the number of samples was relatively small (approx 150k). 

But I now need to store about 3 million samples. So I don't think it's possible to store this as a ROM on FPGA. 

So what is the alternative? Can the waveform be written to a text file then stored on SDRAM? How would I do this?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
666 Views

You didn't say anything about your sampling rate etc. 

 

Yes, if your sampling rate is low, you could read the ADC with a NIOS and write a text file to SDRAM, then read it and write it out to the DAC. 

 

But you might find it overall simpler to use binary data with one DMA block to read from the ADC, and another DMA to write to the DAC.
0 Kudos
Altera_Forum
Honored Contributor II
666 Views

I should clarify. The waveform I am referring to is a VCD with a clock period of 32ns. So I have a large VCD that contains some signals I want to store on FPGA, then drive a chip with these digital signals as inputs.

0 Kudos
Altera_Forum
Honored Contributor II
666 Views

Consider converting the VCD to a binary format on the PC, loading that in the SDRAM, and then use a DMA channel to push that to your pins. One option would be to DMA into a DCFIFO with the write-side operating at the SDRAM clock rate, and the read-side operating at your desired 32ns period with the rdreq always '1'. Theres lots of different ways you could do it, this is just one idea.

0 Kudos
Reply