C
chaitanyakurmala@gmail.co
Guest
let me say
i am having two processes
process(clk1) and process(clk2)
process(clk1)
variable x:natural:=0;
begin
if clk'event and clk='1' then
x := x+1;
end if
end process;
process(clk2)
begin
----
-------
-----
end process
in the 1st process x may be changed to some 10 let me say.
and i want that variable with changed value to be utilized in 2nd
process how can i do it.
if i declare variable x before process1 it is giving error that shared
variables only should be declared here.
thank you
i am having two processes
process(clk1) and process(clk2)
process(clk1)
variable x:natural:=0;
begin
if clk'event and clk='1' then
x := x+1;
end if
end process;
process(clk2)
begin
----
-------
-----
end process
in the 1st process x may be changed to some 10 let me say.
and i want that variable with changed value to be utilized in 2nd
process how can i do it.
if i declare variable x before process1 it is giving error that shared
variables only should be declared here.
thank you