alangs
Member level 3
genvar i;
generate
for(i=0;i<`ITERATIONS-1;i=i+1) begin:Loop
rotator U (clk,rst,x,y,z,x[i+1],y[i+1],z[i+1]);
defparam U.iteration = i;
defparam U.tangle = tanangle(i);
end
endgenerate
how i can change the above code by simple for loop without using generate loop....and how i can declare the 'i' other than genvar......because the above code is not supported by Icarus simulator....that's y
generate
for(i=0;i<`ITERATIONS-1;i=i+1) begin:Loop
rotator U (clk,rst,x,y,z,x[i+1],y[i+1],z[i+1]);
defparam U.iteration = i;
defparam U.tangle = tanangle(i);
end
endgenerate
how i can change the above code by simple for loop without using generate loop....and how i can declare the 'i' other than genvar......because the above code is not supported by Icarus simulator....that's y