Skip to content

Instantly share code, notes, and snippets.

@jz5
Last active Dec 28, 2015
Embed
What would you like to do?
generate region
generate
genvar i;
for (i = 0; i < SIZE; i = i + 1) begin
m i_m(.clk(clk), .rst_n(rst_n), .x(x[i]), .y(y));
end
endgenerate
generate
for (i = 0; i < SIZE; i = i + 1) begin // 上記宣言の genvar i が有効
m i_m(.clk(clk), .rst_n(rst_n), .x(x[i]), .y(y));
end
endgenerate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment