ElVale
Newbie level 4

Hi, I have this generate block for an unrolled pipeline, notice the 0 to 63 range.
When I simulate I get 128 clock cycles, when I was expecting 64, I'm using a 100MHz clock and I get 1280 ns in total. Am I missing something here? thanks a lot for your help.
Code:
rounds: for i in 0 to 63 generate
begin
process(clk)
begin
if (clk = '1' and clk'event) then
T1(i) <= h(i)+ e1(e(i)) + ch(e(i), f(i), g(i)) + K(i) + W(i);
T2(i) <= e0(a(i)) + maj(a(i),b(i),c(i));
h(i+1) <= g(i);
g(i+1) <= f(i);
f(i+1) <= e(i);
e(i+1) <= d(i) + T1(i);
d(i+1) <= c(i);
c(i+1) <= b(i);
b(i+1) <= a(i);
a(i+1) <= T1(i) + T2(i);
end if;
end process;
end generate rounds;
process(clk)
begin
if (clk = '1' and clk'event) then
H1_out <= H1_in + a(64);
H2_out <= H2_in + b(64);
H3_out <= H3_in + c(64);
H4_out <= H4_in + d(64);
H5_out <= H5_in + e(64);
H6_out <= H6_in + f(64);
H7_out <= H7_in + g(64);
H8_out <= H8_in + h(64);
end if;
end process;
When I simulate I get 128 clock cycles, when I was expecting 64, I'm using a 100MHz clock and I get 1280 ns in total. Am I missing something here? thanks a lot for your help.