Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHDL is supposed to describe the behaviour of a system which will be eventually synthesized into actual logic gates.
Consider what you are requesting to the synthesis tool with the following lines you wrote: if falling_edge (buton) then deljenen <='1'; else deljenen <='0'; So, deljenen is high only when buton presents a falling edge. In all other cases is low ! Then, how long does deljenen pulse last?!? How can you implement this with flip-flops and/or logic gates? The correct way of operation is using clk to sample buton signal into a register and use it to detect the falling edge.