quick.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

   

space.gif

   

space.gif

  ../images/main/bullet_green_ball.gif All About Reset
   

space.gif

Synchronous Reset : Reset is sampled with respect to clock

Asynchronous Reset : Reset is sampled with no respect to clock.

   

space.gif

Synchronous Reset

Asynchronous Reset

Synchronous reset requires more gates to implement (see the example below)

Asynchronous reset requires less gates to implement (see the example below)

Synchronous reset requires clock to be active always

Asynchronous reset does not require clock to be always active

Synchronous reset does not have metastability problems.

Asynchronous reset suffer from metastability problems.

Synchronous reset is slow.

Asynchronous reset is fast.

   

space.gif

  ../images/main/bullet_green_ball.gif Code Example
   

space.gif

Synchronous Reset


  1 module syn_reset (clk,reset,a,c);
  2    input clk;
  3    input reset;
  4    input a; 
  5    output c; 
  6 
  7    wire clk;
  8    wire reset;   
  9    wire a;   
 10    reg c;
 11   
 12 always @ (posedge clk )
 13   if ( reset == 1'b1) begin
 14     c <= 0;
 15   end else begin
 16     c <= a;
 17   end
 18  
 19 endmodule 
You could download file syn_reset.v here
   

space.gif

Asynchronous Reset


  1 module  asyn_reset(clk,reset,a,c);
  2      input clk;
  3      input reset;
  4      input a;
  5      output c; 
  6 
  7    wire clk;
  8    wire reset;   
  9    wire a;    
 10    reg c;
 11         
 12 always @ (posedge clk or posedge reset)
 13  if ( reset == 1'b1) begin
 14    c <= 0;
 15  end else begin
 16    c <= a;
 17  end
 18 endmodule
You could download file asyn_reset.v here
   

space.gif

Synthesis Output

   

space.gif

../images/tidbits/reset.12.gif
   

space.gif

Synchronize the asynchronous external reset signal, use this synchronous reset as input to all the asynchronous flip-flops inside the design, as shown in the figure below. We do this as an asynchronous reset flip-flop takes less logic to implement, is faster, consumes less power.

   

space.gif

../images/tidbits/reset.13.gif
   

space.gif

   

space.gif

   

space.gif

   

space.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

  

Copyright © 1998-2014

Deepak Kumar Tala - All rights reserved

Do you have any Comment? mail me at:deepak@asic-world.com