diff options
author | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-04-04 01:13:26 +0000 |
---|---|---|
committer | matt <matt@221aa14e-8319-0410-a670-987f0aec2ac5> | 2009-04-04 01:13:26 +0000 |
commit | 60c38c40a4f3527e28e03060ad2b79b2cd8a9c38 (patch) | |
tree | 784e23c0be6c108f43edee60364bccca30523ea6 /control_lib/reset_sync.v | |
parent | b1193c5b9e43bf898b7c924471e430253f2e58a7 (diff) | |
download | uhd-60c38c40a4f3527e28e03060ad2b79b2cd8a9c38.tar.gz uhd-60c38c40a4f3527e28e03060ad2b79b2cd8a9c38.tar.bz2 uhd-60c38c40a4f3527e28e03060ad2b79b2cd8a9c38.zip |
reset synchronizer
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10760 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'control_lib/reset_sync.v')
-rw-r--r-- | control_lib/reset_sync.v | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/control_lib/reset_sync.v b/control_lib/reset_sync.v new file mode 100644 index 000000000..94d966840 --- /dev/null +++ b/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 |