diff options
author | Josh Blum <josh@joshknows.com> | 2013-03-14 17:49:57 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2013-03-14 17:49:57 -0700 |
commit | a370cb47bbec9a237dfd50b5247d621cd8ab5f4e (patch) | |
tree | 3bd27bfb1f263a221f055218cddda90c15553e02 /usrp2/top/E1x0/E1x0.v | |
parent | 8d91709d43f8df717abc8e05967e63c60887cd87 (diff) | |
download | uhd-a370cb47bbec9a237dfd50b5247d621cd8ab5f4e.tar.gz uhd-a370cb47bbec9a237dfd50b5247d621cd8ab5f4e.tar.bz2 uhd-a370cb47bbec9a237dfd50b5247d621cd8ab5f4e.zip |
e100: switch to fixed length xfers
Diffstat (limited to 'usrp2/top/E1x0/E1x0.v')
-rw-r--r-- | usrp2/top/E1x0/E1x0.v | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/usrp2/top/E1x0/E1x0.v b/usrp2/top/E1x0/E1x0.v index 8efb056e9..44129ce92 100644 --- a/usrp2/top/E1x0/E1x0.v +++ b/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)); |