library dp_32;
use DP_32.DP32_TYPES.all ;

entity CLOCK_GEN is
   generic(Tpw : TIME := 8 ns ;
           Tps : TIME := 2 ns ) ;
      port(Ph1   : out BIT ;
           Ph2   : out BIT ;
           RESET : out BIT );
end CLOCK_GEN ;                   

architecture BEHAVIOUR of CLOCK_GEN is

   constant CLOCK_PERIOD : TIME := 2*(Tpw+Tps) ;
   
   begin
      RESET_DRIVER : 
         RESET <= '1','0' after 2*CLOCK_PERIOD+Tpw ;
         
      CLOCK_DRIVER:process
         begin
            Ph1 <= '1','0' after Tpw ;
            Ph2 <= '1' after Tpw+Tps , '0' after Tpw+Tps+Tpw ;
            wait for CLOCK_PERIOD ;
      end process CLOCK_DRIVER ;
      
end BEHAVIOUR ;            
         
<div align="center"><br /><script type="text/javascript"><!--
google_ad_client = "pub-7293844627074885";
//468x60, Created at 07. 11. 25
google_ad_slot = "8619794253";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />&nbsp;</div>