Forum Discussion
Altera_Forum
Honored Contributor
16 years agoDAM with frame buffer and Clocked video output
Hello
In my design i am using Frame buffer that buffer video data in SDRAM and a Clocked video output IP in SOPC I need to integrate a DMA (direct memory access ) in my design between the frame buffer and the Clocked video output . If it's possible , how the connections should be made . Thank's for any further help .14 Replies
- Altera_Forum
Honored Contributor
Hm? That does not explain it in detail anyway what you are planning to do, but perhaps it might be better for you to read from the SDRAM directly like with the FrameReader Altera provides. That one can generate you the Frame around the pixeldata the CVO needs to output an image and then you might build a module in VHDL that implements your write access.
From the SDRAm you cannot normally get the data out to the CVO directly I think. It could be that the FrameBuffer also throws away the datapacket around the incoming data and generates a new one when it reads. I try something quite similar, to write a frame directly into sdram and read it from there again to output to the DVI-Monitor and my result is to implement an module, that takes the CVI-data via Avalon-ST, throws away the sof, eof. Writes the pixeldata at a specified address into sdram and on the other side the Framereader from Altera reads the SDRAM continuously where the whole frame is stored and outputs it to the CVO with the sourrounding data. That works quite well when you are using the SDRAM-Controller, because otherwise you will have to manage the accesses from the writer and reader to the sdram with some extra logic. I implemented for the writing to sdram an Avalon-MM interface into my written module, Input is Avalon-ST and you can also implement easily an CSR-Interface to manipulate something while at runtime. It is just my two cent, but perhaps that gives you another idea. I don't know if this matches what you do in any kind, but I just wanted to tell it anyway ;-) Have a nice weekend and good luck with your university project, Peet. - Altera_Forum
Honored Contributor
Thank you Peet so much
Have a nice weekend too - Altera_Forum
Honored Contributor
hi,peet_2
maybe,I can answer your questions!~ now,I want to acquire video data and output them though ethernet IP "TSE_MAC"(tripple speed ethernet),now I have realize test data saved in sdram trasmitted to TSE_MAC by sgdma ,then to PC. now,I want to make video data which saved in sdram instead of test data ,so maybe I want to inset a sgdma after framebuffer but not connect to clocked video output. is that way reasonable to reach my goal? best regards~! - Altera_Forum
Honored Contributor
Hello peet 2.
Now,I have a similar question.I use a buffer with RAM to buffer vidio data and I want to use DMA to transfer the data in the buffer to SDRAM. I know the avalon MM interface is needed, also I already know how to design the avalon MM interface. But, I don't know how to relate the DMA with the avalon MM interface. The question bother me so long ,can you help me,thanks very much!