aboutsummaryrefslogtreecommitdiffstats
path: root/tests/asicworld/code_tidbits_asyn_reset.v
blob: 58e47c567d4a418bbb362ce54b821e55a32afc61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module  asyn_reset(clk,reset,a,c);
     input clk;
     input reset;
     input a;
     output c; 

   wire clk;
   wire reset;   
   wire a;    
   reg c;
        
always @ (posedge clk or posedge reset)
 if ( reset == 1'b1) begin
   c <= 0;
 end else begin
   c <= a;
 end
endmodule