ERROR:HDLCompiler:1440 : Non-constant loop condition not supported for for

Guest #5015361
Rate this post
useful
not useful
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

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now