You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tools give compile errors when the integer is declared local to the always_comb body:
always_comb begin
integer index;
if (hcount < H_PIXELS && vcount < V_PIXELS) begin
for (index = 0; index < 4; index = index + 1) begin
VGA_R[index] = rd_data[2];
VGA_G[index] = rd_data[1];
VGA_B[index] = rd_data[0];
end
end else begin
VGA_R = 4'b0000;
VGA_B = 4'b0000;
VGA_G = 4'b0000;
end
end
The text was updated successfully, but these errors were encountered:
@tmichalak The error provided by the tools is that a latch is inferred on the "index" signal and the compilation fails.
We do not believe that a latch should be inferred (or the compilation fail) since "index" is local to the always_comb block. In this code "index" is functioning like a VHDL variable - used to help in the computation but not intended to carry information out of the block.
SYMBIFLOW-CLASSROOM-PROJECT
Using original Yosys frontend.
The tools give compile errors when the integer is declared local to the always_comb body:
The text was updated successfully, but these errors were encountered: