Guest
#5015361
I have a code at below. I don't know how can i use the loop for??? Pls,
help me!!! (Verilog language, this code in ISE Design Suite 14.4).
ERROR:HDLCompiler:1440 : Non-constant loop condition not supported for
for
always @ (dataIn or index)
begin
for(i = 0; i <= index; i = i + 1)
dataOut[i] = dataIn[i];
for(i = index+1; i < size; i = i + 1)
dataOut[i] = 1'b0;
end