Generate Loop Statement 8-Bit Adder Example - 2022.1 English

Vivado Design Suite User Guide: Synthesis (UG901)

Document ID
UG901
Release Date
2022-06-06
Version
2022.1 English

generate genvar i;

   for (i=0; i<=7; i=i+1)

   begin : for_name

      adder add (a[8*i+7 : 8*i], b[8*i+7 : 8*i], ci[i], sum_for[8*i+7 : 8*i], c0_or[i+1]);

   end

endgenerate