Digit0001
Member level 1
Hi
Can someone tell me the difference between the two processes?
P.S
Can someone tell me the difference between the two processes?
Code:
process(A)
variable start : bit :='0';
begin
Start :='0';
For i in 0 to 3 loop
start := start or A(i);
end loop;
x <= Start;
end process;
Code:
process(A)
variable start : bit_vector(4 downto 0);
begin
start(0) :='0';
For i in 0 to 3 loop
start(i+1) := start(i) or A(i);
end loop;
x <= start(4);
end process;
P.S