M
Mad I.D.
Guest
I'm having some problem understanding process sensitivity list.
This is the process for latch with positive gate and asynchronous
clear from XST Manual
process (CLR, D, G)
begin
if (CLR=1) then
Q <= 0;
elsif (G=1) then
Q <= D;
end if;
end process;
end archi;
This is the process for latch with inverted gate and asynchrounous
preset (XST Manual)
process (PRE, G)
begin
if (PRE=1) then
Q <= "1111";
elsif (G=0) then
Q <= D;
end if;
end process;
end archi;
In both: D-data, G-gate...CLR Clear, PRE-preset
I know that this is the original code for inferring macros, but it
puzzles me why is the sensitivity list different? In the first process
there is 'D', and in the other there is no. Can someone please explain
some deeper meaning of the difference
?
Thank you very much.
Electronics engineer student
Katholieke Universiteit Leuven, Belgium
This is the process for latch with positive gate and asynchronous
clear from XST Manual
process (CLR, D, G)
begin
if (CLR=1) then
Q <= 0;
elsif (G=1) then
Q <= D;
end if;
end process;
end archi;
This is the process for latch with inverted gate and asynchrounous
preset (XST Manual)
process (PRE, G)
begin
if (PRE=1) then
Q <= "1111";
elsif (G=0) then
Q <= D;
end if;
end process;
end archi;
In both: D-data, G-gate...CLR Clear, PRE-preset
I know that this is the original code for inferring macros, but it
puzzles me why is the sensitivity list different? In the first process
there is 'D', and in the other there is no. Can someone please explain
some deeper meaning of the difference
Thank you very much.
Electronics engineer student
Katholieke Universiteit Leuven, Belgium