2 <block_impl ref_name="clkrstgen.xml" ref_md5="">
4 <author lastname="Domas" mail="sdomas@univ-fcomte.fr" firstname="Stephane"/>
5 <log creation="2018-05-02">
12 <package name="std_logic_1164" use="all"/>
13 <package name="numeric_std" use="all"/>
17 signal dly : std_logic := '0';
18 signal rst : std_logic := '0';
24 if(rising_edge(ext_clk)) then
25 dly <= (not(ext_reset) and dly and not(rst))
26 or (not(ext_reset) and not(dly) and rst);
28 rst <= (not(ext_reset) and not(dly) and not(rst));
33 reset <= rst xor invert_reset;