# For-Loop and repeat synthesis

We all know that the For-loop and Repeat are synthesizable, they get converted to blocks, for example:

for (idx = 0; idx < 4; idx=idx+1) begin
a = a + b[idx];
c = c + 2;     //You can change more than one variable in a for loop
end


In that example, the resulting hardware will be a chain of adders, summing the values from four array indices.

So my question is what if the For loop iterates over a huge number let's say 10000 ? Will it create a 10000 adders ?!

• Please check whether you mean "adders" or "additions" and change your original question if necessary. – Huisman Jun 19 '19 at 7:04