nlulani
Junior Member level 3
irq_falling
Hi all,
I wish to sense both the falling and rising edges of the a signal for two different purposes, but everytime i do so i get a bad synchronous error.
for example i write the little code below.
p1: process(Q,valid)
begin
if(valid='1') then
irq<= '0';
else
if(Q'event and Q='0' and mode = '0') then
irq <= '1';
elsif Q'event and Q = '1' and mode = '1' then
irq <= '1';
else
irq <= '0';
end if;
end if;
end process p1;
here the error comes like
ERROR:Xst:827 - c:/my_projects/advanced/i2/my_int_gen/int_gen.vhd line 80: Signal irq cannot be synthesized, bad synchronous description.
-->
can anyone of u tell me what can be done for it.
thanks and regards
Hi all,
I wish to sense both the falling and rising edges of the a signal for two different purposes, but everytime i do so i get a bad synchronous error.
for example i write the little code below.
p1: process(Q,valid)
begin
if(valid='1') then
irq<= '0';
else
if(Q'event and Q='0' and mode = '0') then
irq <= '1';
elsif Q'event and Q = '1' and mode = '1' then
irq <= '1';
else
irq <= '0';
end if;
end if;
end process p1;
here the error comes like
ERROR:Xst:827 - c:/my_projects/advanced/i2/my_int_gen/int_gen.vhd line 80: Signal irq cannot be synthesized, bad synchronous description.
-->
can anyone of u tell me what can be done for it.
thanks and regards