summaryrefslogtreecommitdiffstats
path: root/usrp2/gpmc
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-05-09 18:41:28 -0500
committerJosh Blum <josh@joshknows.com>2013-05-09 18:41:28 -0500
commit286f0d8d3830417cbf26ac494bb960b4ba735944 (patch)
tree958493cca06753bb10786b27a28746a8a97c16a3 /usrp2/gpmc
parentdf2c9b3af895a826db09ad5817f84a3aa7b6b3d9 (diff)
downloaduhd-286f0d8d3830417cbf26ac494bb960b4ba735944.tar.gz
uhd-286f0d8d3830417cbf26ac494bb960b4ba735944.tar.bz2
uhd-286f0d8d3830417cbf26ac494bb960b4ba735944.zip
E100: revert unnecessary change to fifo_to_gpmc
This change was intended to remove warnings as only 16 bits of the FIFO bus are used. However this change has unintentional consequences for receive performance.
Diffstat (limited to 'usrp2/gpmc')
-rw-r--r--usrp2/gpmc/fifo_to_gpmc.v10
1 files changed, 7 insertions, 3 deletions
diff --git a/usrp2/gpmc/fifo_to_gpmc.v b/usrp2/gpmc/fifo_to_gpmc.v
index 93341975d..26443a702 100644
--- a/usrp2/gpmc/fifo_to_gpmc.v
+++ b/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