Altera_Forum
Honored Contributor
16 years agoColor Filter Question
Hi all, I'm trying to implement a color filter of Red with a RAW2RGB. I try running this code along side the beyer pattern converter:
always@(posedge iCLK or negedge iRST_n) begin if(rRed>250) begin bRed <= rRed; bGreen <= rGreen; bBlue <= rBlue; end else if (rRed<255) begin bRed <= 0; bRed <= 0; bRed <= 0; end end and it gives me an error Error (10200): Verilog HDL Conditional Statement error at RAW2RGB.v(62): cannot match operand(s) in the condition to the corresponding edges in the enclosing event control of the always construct Can anyone help? Thanks!