summaryrefslogtreecommitdiff
path: root/usrp2/fpga/control_lib
diff options
context:
space:
mode:
authormatt2009-04-04 01:13:26 +0000
committermatt2009-04-04 01:13:26 +0000
commit1ae9012b1191d81200bd45bae343f8b3e056ff59 (patch)
tree0afc1b59a1a99df279643eb7bbdaa8fdc993ec4d /usrp2/fpga/control_lib
parenta5fbf322326148d20b92f9efce8c94ba3f1abe67 (diff)
downloadgnuradio-1ae9012b1191d81200bd45bae343f8b3e056ff59.tar.gz
gnuradio-1ae9012b1191d81200bd45bae343f8b3e056ff59.tar.bz2
gnuradio-1ae9012b1191d81200bd45bae343f8b3e056ff59.zip
reset synchronizer
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10760 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp2/fpga/control_lib')
-rw-r--r--usrp2/fpga/control_lib/reset_sync.v16
1 files changed, 16 insertions, 0 deletions
diff --git a/usrp2/fpga/control_lib/reset_sync.v b/usrp2/fpga/control_lib/reset_sync.v
new file mode 100644
index 000000000..94d966840
--- /dev/null
+++ b/usrp2/fpga/control_lib/reset_sync.v
@@ -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