aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp2/top/E1x0/E1x0.v
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-03-25 16:06:07 -0700
committerJosh Blum <josh@joshknows.com>2013-03-25 16:06:07 -0700
commit404a84fcef665d262eee09ba10c841acdd7cbdf2 (patch)
tree94108853d2aee5b3a87981a9f5df123178949af2 /fpga/usrp2/top/E1x0/E1x0.v
parentee3082224f579da63b33f44f5275288032aac774 (diff)
parent81447a405eab9cfe154ebcf1d809d95269ed349a (diff)
downloaduhd-404a84fcef665d262eee09ba10c841acdd7cbdf2.tar.gz
uhd-404a84fcef665d262eee09ba10c841acdd7cbdf2.tar.bz2
uhd-404a84fcef665d262eee09ba10c841acdd7cbdf2.zip
Merge branch 'fpga_master' into maint
Diffstat (limited to 'fpga/usrp2/top/E1x0/E1x0.v')
-rw-r--r--fpga/usrp2/top/E1x0/E1x0.v18
1 files changed, 14 insertions, 4 deletions
diff --git a/fpga/usrp2/top/E1x0/E1x0.v b/fpga/usrp2/top/E1x0/E1x0.v
index 8efb056e9..44129ce92 100644
--- a/fpga/usrp2/top/E1x0/E1x0.v
+++ b/fpga/usrp2/top/E1x0/E1x0.v
@@ -59,10 +59,20 @@ module E1x0
wire clk_fpga;
wire reset;
- reg async_reset;
- always @(negedge EM_CLK) begin
- async_reset <= ~EM_NCS6 && ~EM_NWE && (EM_A[9:2] == 8'hff) && EM_D[0];
- end
+ reg por_rst;
+ reg [7:0] por_counter = 8'h0;
+
+ always @(posedge clk_fpga)
+ if (por_counter != 8'h55)
+ begin
+ por_counter <= por_counter + 8'h1;
+ por_rst <= 1'b1;
+ end
+ else por_rst <= 1'b0;
+
+ wire async_reset;
+ cross_clock_reader #(.WIDTH(1)) read_gpio_reset
+ (.clk(clk_fpga), .rst(por_rst), .in(cgen_sen_b & ~cgen_sclk), .out(async_reset));
IBUFGDS #(.IOSTANDARD("LVDS_33"), .DIFF_TERM("TRUE"))
clk_fpga_pin (.O(clk_fpga),.I(CLK_FPGA_P),.IB(CLK_FPGA_N));