Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThx so much for your advice, Ben!!! Really appreciate it.
I will try to find out more about double buffering and apply it to the design. One more challenge is the configuration of the SD-RAM in DE2. I couldn't figure out how to enable read or write SD-RAM I know that the captured image will be store to SD-RAM memory location: 00000 H - 4B000 H (R - [9:0], G - [14:10]) * it is in hexadecimal form 100000 H - 14B000 H (G- [4:0], B - [14:5]) There is a fifo module that consists of FIFO 1 and FIFO 2 with each fifo containing 16 bit. The data stored in FIFO only requires 15 bit each, therefore 1 bit is put blank(refer to the bracket written in the memory location, there are 15 bits). The 2 fifos will give us 30 bit in total which is 10 bit for R, 10 bit for G and 10 bit for blue. Since i have ady changed it to gray scale, so the R=G=B. I juz need to read data from memory location 00000 H to 4B000 H (R - [9:0]) for the red part. and then when displaying it to the monitor, i will sub-parallel the green and blue because R=G=B to get back RGB. The challenge is how to create a module that is able to read data from that particular memory location and store it to register and do image processing before writing it back to a different memory location for further image processing. Please look into the attached file in the post for the current design of the project. Can you provide me with some guidance and possibly some references or documentation. Your help would be highly appreciated. Thanks in advanced.