diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2013-05-10 08:30:50 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2013-05-10 08:30:50 -0700 |
commit | 1bec070a06c4c4accbcae8c23f2cca13680d300b (patch) | |
tree | 9be3449bca58eb6da26f9875c56ae9c244f16c10 | |
parent | 265daa586730b95d803a694548479cb790ea80fd (diff) | |
parent | 845dd30d8ba2113f86ff762e0c848fac9b171655 (diff) | |
download | uhd-1bec070a06c4c4accbcae8c23f2cca13680d300b.tar.gz uhd-1bec070a06c4c4accbcae8c23f2cca13680d300b.tar.bz2 uhd-1bec070a06c4c4accbcae8c23f2cca13680d300b.zip |
Merge branch 'maint'
-rw-r--r-- | fpga/usrp2/gpmc/fifo_to_gpmc.v | 10 | ||||
-rw-r--r-- | fpga/usrp2/top/B100/u1plus_core.v | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/fpga/usrp2/gpmc/fifo_to_gpmc.v b/fpga/usrp2/gpmc/fifo_to_gpmc.v index 93341975d..26443a702 100644 --- a/fpga/usrp2/gpmc/fifo_to_gpmc.v +++ b/fpga/usrp2/gpmc/fifo_to_gpmc.v @@ -46,6 +46,7 @@ module fifo_to_gpmc output reg data_available); //states for the GPMC side of things + wire [17:0] data_o; reg gpmc_state; reg [ADDR_WIDTH:1] addr; reg [PTR_WIDTH:0] gpmc_ptr, next_gpmc_ptr; @@ -146,11 +147,14 @@ module fifo_to_gpmc assign dst_rdy_o = fifo_state == FIFO_STATE_FILL; + //assign data from bram output + assign EM_D = data_o[15:0]; + //instantiate dual ported bram for async read + write - ram_2port #(.DWIDTH(16),.AWIDTH(PTR_WIDTH + ADDR_WIDTH)) async_fifo_bram + ram_2port #(.DWIDTH(18),.AWIDTH(PTR_WIDTH + ADDR_WIDTH)) async_fifo_bram (.clka(clk),.ena(1'b1),.wea(src_rdy_i && dst_rdy_o), - .addra({fifo_ptr[PTR_WIDTH-1:0], counter}),.dia(data_i[15:0]),.doa(), + .addra({fifo_ptr[PTR_WIDTH-1:0], counter}),.dia(data_i),.doa(), .clkb(EM_CLK),.enb(1'b1),.web(1'b0), - .addrb({gpmc_ptr[PTR_WIDTH-1:0], addr}),.dib(18'h3ffff),.dob(EM_D)); + .addrb({gpmc_ptr[PTR_WIDTH-1:0], addr}),.dib(18'h3ffff),.dob(data_o)); endmodule // fifo_to_gpmc diff --git a/fpga/usrp2/top/B100/u1plus_core.v b/fpga/usrp2/top/B100/u1plus_core.v index 302565101..9fe09c60e 100644 --- a/fpga/usrp2/top/B100/u1plus_core.v +++ b/fpga/usrp2/top/B100/u1plus_core.v @@ -71,7 +71,7 @@ module u1plus_core localparam SR_GPIO = 224; // 5 //compatibility number -> increment when the fpga has been sufficiently altered - localparam compat_num = {16'd11, 16'd2}; //major, minor + localparam compat_num = {16'd11, 16'd3}; //major, minor //assign run signals used for ATR logic wire [NUM_RX_DSPS-1:0] run_rx_n; |