In Verilog if we use
always@(clock)
we can trigger a module at both rising edge and falling edge. Is there any method to do the same in VHDL.
clockvhdl
In Verilog if we use
always@(clock)
we can trigger a module at both rising edge and falling edge. Is there any method to do the same in VHDL.
Best Answer
Explicitly check for both rising and falling clock edges within the process:
Or using the respective functions:
However, there are subtle differences between the two variants (e.g. https://stackoverflow.com/questions/15205202/clkevent-vs-rising-edge).
Also don't expect this to be synthesizable.