diff options
author | Josh Blum <josh@joshknows.com> | 2012-07-02 13:17:21 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-07-16 20:36:45 -0700 |
commit | 3e87c6ba2f4de72926cefa6aa833cb0f2191f053 (patch) | |
tree | 39cdc21be970bf1e6439b455cb7e2a6918645fa7 /usrp2/gpmc/fifo_to_gpmc.v | |
parent | febc5e2a684312f9a050bcf58fd13b2b42f38047 (diff) | |
download | uhd-3e87c6ba2f4de72926cefa6aa833cb0f2191f053.tar.gz uhd-3e87c6ba2f4de72926cefa6aa833cb0f2191f053.tar.bz2 uhd-3e87c6ba2f4de72926cefa6aa833cb0f2191f053.zip |
gpmc: squashed GPMC FIFO work for E100
The control and data slaves are now both implemented as FIFOs.
Requires another squash of E100 top level to use.
Diffstat (limited to 'usrp2/gpmc/fifo_to_gpmc.v')
-rw-r--r-- | usrp2/gpmc/fifo_to_gpmc.v | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usrp2/gpmc/fifo_to_gpmc.v b/usrp2/gpmc/fifo_to_gpmc.v index 42c71d2d6..27252b970 100644 --- a/usrp2/gpmc/fifo_to_gpmc.v +++ b/usrp2/gpmc/fifo_to_gpmc.v @@ -1,5 +1,5 @@ // -// Copyright 2011 Ettus Research LLC +// Copyright 2011-2012 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -39,7 +39,7 @@ //////////////////////////////////////////////////////////////////////// module fifo_to_gpmc - #(parameter PTR_WIDTH = 2, parameter ADDR_WIDTH = 10) + #(parameter PTR_WIDTH = 2, parameter ADDR_WIDTH = 10, parameter LAST_ADDR = 10'h3ff) (input clk, input reset, input clear, input arst, input [17:0] data_i, input src_rdy_i, output dst_rdy_o, output [15:0] EM_D, input [ADDR_WIDTH:1] EM_A, input EM_CLK, input EM_OE, @@ -82,14 +82,15 @@ module fifo_to_gpmc end GPMC_STATE_EMPTY: begin - if (EM_A == 10'h3ff) begin + if (EM_A == LAST_ADDR) begin gpmc_state <= GPMC_STATE_START; gpmc_ptr <= next_gpmc_ptr; + addr <= 0; end end endcase //gpmc_state - end //EM_WE + end //EM_OE end //always //------------------------------------------------------------------ |