Altera_Forum
Honored Contributor
17 years agoconverting RAW to RGB
Hi there. I am a very new beginner to fpga design. I am using a DE2-70 board with a camera and LCD kit.
Right now, i have attached a picture of what a demo program essentially does. My job is to find out what is going on during the RAW2RGB process. I have attached the source code and i was wondering if someone could describe to me what is going on? I am totally in the dark. For instance, what does this bit of code do: always@(posedge iCLK or negedge iRST_n) begin if (!iRST_n) begin rRed<=0; rGreen<=0; rBlue<=0; end i know that it sets rRed,rGrean,rBlue to zero, but i have no idea what function it produces, and what kind of condition that would be! Also what do the variables X_cont and Y_cont mean? Someone please help! Thanks! Allen