commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10760 - gnuradio/trunk/usrp2/fpga/control_lib


From: matt
Subject: [Commit-gnuradio] r10760 - gnuradio/trunk/usrp2/fpga/control_lib
Date: Fri, 3 Apr 2009 19:13:26 -0600 (MDT)

Author: matt
Date: 2009-04-03 19:13:26 -0600 (Fri, 03 Apr 2009)
New Revision: 10760

Added:
   gnuradio/trunk/usrp2/fpga/control_lib/reset_sync.v
Log:
reset synchronizer


Added: gnuradio/trunk/usrp2/fpga/control_lib/reset_sync.v
===================================================================
--- gnuradio/trunk/usrp2/fpga/control_lib/reset_sync.v                          
(rev 0)
+++ gnuradio/trunk/usrp2/fpga/control_lib/reset_sync.v  2009-04-04 01:13:26 UTC 
(rev 10760)
@@ -0,0 +1,16 @@
+
+
+module reset_sync
+  (input clk,
+   input reset_in,
+   output reg reset_out);
+
+   reg               reset_int;
+
+   always @(posedge clk or posedge reset_in)
+     if(reset_in)
+       {reset_out,reset_int} <= 2'b11;
+     else
+       {reset_out,reset_int} <= {reset_int,1'b0};
+   
+endmodule // reset_sync





reply via email to

[Prev in Thread] Current Thread [Next in Thread]