From: matt Date: Sat, 4 Apr 2009 01:13:26 +0000 (+0000) Subject: reset synchronizer X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=1ae9012b1191d81200bd45bae343f8b3e056ff59;p=debian%2Fgnuradio reset synchronizer git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10760 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/usrp2/fpga/control_lib/reset_sync.v b/usrp2/fpga/control_lib/reset_sync.v new file mode 100644 index 00000000..94d96684 --- /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