SparkyNZ
Contributor
5 years agoCan you force synthesis of registers?
bit [ 11 : 0 ] colorRGB[ 7 : 0 ]; bit [ 11 : 0 ] tempRGB; .. tempRGB = colorRGB[ dataH ]; .. dataR = tempRGB[ 11 : 8 ];
When the above code is synthesized, tempRGB does not appear in the RTL Viewer. It has been optimized/removed from the synthesized design.
Is there a way to force Quartus into synthesizing registers? ie. Is there a keyword I can use so that tempRGB must appear in my design?
Hi,
You may change to below:
if( ( hcount >= hdat_begin ) && ( hcount <= hdat_last ) )
begin
if( hcount[ 0 ] == 0 )
begin
tempRGB <= colorRGB[ dataH ];
end
else
begin
tempRGB <= colorRGB[ dataL ];
end
dataR <= tempRGB[ 11 : 8 ];
dataG <= tempRGB[ 7 : 4 ];
dataB <= tempRGB[ 3 : 0 ];
end
Thanks
Best regards,
KhaiY