Skip to content

Instantly share code, notes, and snippets.

@jz5
Created November 19, 2013 02:54
Show Gist options
  • Save jz5/7539521 to your computer and use it in GitHub Desktop.
Save jz5/7539521 to your computer and use it in GitHub Desktop.
named loop generate
// foo[0].i_m ~ foo[SIZE-1].i_m がインスタンスされる
for (i = 0; i < SIZE; i = i + 1) begin : foo
m i_m(.clk(clk), .rst_n(rst_n), .x(x[i]), .y(y));
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment