S
Schüle Daniel
Guest
Hello all,
where is the right place do declare *shared variable*?
architecture X of X is
-- here?
shared variable v: integer;
begin
P1: process
begin
--read/write v and vv
--read/write v and vv
end process;
P2: process
-- or here?
shared variable vv: integer;
begin
--read/write v and vv
--read/write v and vv
end process;
end;
the reason I ask it here, I encountered both
one actually works and the other stands in book.
Regards, Daniel
where is the right place do declare *shared variable*?
architecture X of X is
-- here?
shared variable v: integer;
begin
P1: process
begin
--read/write v and vv
--read/write v and vv
end process;
P2: process
-- or here?
shared variable vv: integer;
begin
--read/write v and vv
--read/write v and vv
end process;
end;
the reason I ask it here, I encountered both
one actually works and the other stands in book.
Regards, Daniel