Is while loop synthesizable if the number of iterations is known

Jul 09, 2006 1 Replies

Is while loop synthesizable if the number of iterations is known If yes then how come for is not synthesizable



I heard for is not synthesizable is that true


For constant limits on an integer value it should work:

integer i; always @(posedge clk) if (ce && ~rst) begin for (i = 0; i < depth - 1; i = i + 1) fifo[i]

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required