Skip to content
UPEEC

Generate Blocks

Create repeated or conditional hardware at elaboration time.

Intermediate
Comments 0
genvar i;
generate for (i = 0; i < 8; i++) begin : g
  dff u (.clk(clk), .d(d[i]), .q(q[i]));
end endgenerate

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.