You are here : vhdlstd_logic_1164rising_edge

rising_edge() - std_logic_1164

Detects the rising edge of a std_ulogic or std_logic signal. It will return true when the signal changes from a low value ('0' or 'L') to a high value ('1' or 'H').


Syntax

function rising_edge ( signal s : std_ulogic ) return boolean;


Example

signal clock : std_logic;
...
sync_stuff: process (clock)
begin
  if rising_edge(clock) then
    ...
  end if;
end process;


Output / Return Value


Limitations


Alternatives / See Also


Reference

https://www.cs.sfu.ca/~ggbaker/reference/std_logic/1164/rising_edge.html