2 <block_impl ref_name="clkrstgen.xml" ref_md5="">
4 <author lastname="Domas" mail="sdomas@univ-fcomte.fr" firstname="Stephane"/>
5 <date creation="2018-01-10"/>
6 <related_files list=""/>
7 <description>implementation of cljrstgen that does the connection between
8 external and internal clock and reset</description>
13 <package name="std_logic_1164" use="all"/>
14 <package name="numeric_std" use="all"/>
18 signal dly : std_logic := '0';
19 signal rst : std_logic := '0';
25 if(rising_edge(ext_clk)) then
26 dly <= (not(ext_reset) and dly and not(rst))
27 or (not(ext_reset) and not(dly) and rst);
29 rst <= (not(ext_reset) and not(dly) and not(rst));
34 reset <= rst xor invert_reset;