if nload='0' then
q<=data_in;
elsif clk'event and clk='1' then
q(1)<=q(0);
for i in 1 to 7 loop
q(i)<=q(i-1);
end loop;
end if;
请问此语句中,q(1)<=q(0);是不是执行了两次?因为前面执行了q(1)<=q(0);后面for i in 1 to 7 loop,又执行了q(1)<=q(0),q(2)<=q(1),q(3)<=q(2),q(4)<=q(3),q(5)<=q(4),q(6)<=q(5),q(7)<=q(6),为何要执行两次q(1)<=q(0)? |