data/full_repos/permissive/40989439/AdaptevaLib/elink-gold/toggle2pulse.v
data/verilator_xmls/a02b6693-3fc7-434c-843d-9ca9917192f6.xml
module toggle2pulse(

   out,

   clk, in, reset
   );

   

   input  clk; 
   
   input  in;   
   output out;


   input  reset;
   reg 	  out_reg;
         
   always @ (posedge clk or posedge reset)
     if(reset)
       out_reg <= 1'b0;
     else
       out_reg <= in;
      
   assign out = in ^ out_reg;

endmodule
module toggle2pulse(

   out,

   clk, in, reset
   );


   

   input  clk; 
   
   input  in;   
   output out;


   input  reset;
   reg 	  out_reg;
         
   always @ (posedge clk or posedge reset)
     if(reset)
       out_reg <= 1'b0;
     else
       out_reg <= in;
      
   assign out = in ^ out_reg;

endmodule