From 1ae9012b1191d81200bd45bae343f8b3e056ff59 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 4 Apr 2009 01:13:26 +0000 Subject: reset synchronizer git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10760 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/fpga/control_lib/reset_sync.v | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 usrp2/fpga/control_lib/reset_sync.v (limited to 'usrp2/fpga/control_lib') 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 -- cgit