I have a bit of trivial looking VHDL code which is driving me crazy. I have an external logic bit connected to a signal called 'inint'. The signal is then used in a process that looks as follows:
process(inint)
begin
if rising_edge(inint) then
extint <= '1';
end if;
if falling_edge(inint) then
extint <= '0';
end if;
end process;
When I synthesize tis code though, only the lower part of the code is synthesized and not the upper part. What am I missing here?
I am guessing it is something very elementary but cannot put a finger on it. Any help would be greatly appreciated.
Regards,
Shailesh
extint <= inint, so I wonder if that is really the intention. If you really want to update on both rising and falling edge of an external signal, then you may have to use a DDR input buffer. - Morten Zilmerrising_edge(inint), and clear at e.g. areset, the you simply want a flip-flop with asynchronous reset, as described in this, also in previous comment. - Morten Zilmer