Error while synthesizing: For loop stop condition should depend on loop variable or be static
When I try to synthesize my Verilog project, I get the following errors: ERROR:Xst:2634 - "shiftman.v" line 15: For loop stop condition should depend on loop variable or be static. ERROR:Xst:2634 - "shiftman.v" line 22: For loop stop condition should depend on loop variable or be static. I think I understand what causes the error, but I can't find a way to fix it. module shiftman(in,sh,out); input[47:0] in; input[8:0] sh; output[47:0] out; reg[47:0] out; reg[7:0] r; reg i; always @(in or sh) begin r = sh[7:0]; out = in; if (sh[8] == 0) for (i=0; i<r; i=i+1) begin out[23:0] = {1'b0,out[23:1]};
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.