From 711088a9e70883d0c14b6970b3955948abe83f26 Mon Sep 17 00:00:00 2001 From: Andreas Olofsson Date: Sun, 29 Nov 2015 12:10:53 -0500 Subject: [PATCH] Fixed mailbox bug on remap - Bypassing remap on write to RX registers - Otherwise the write to mailbox gets dropped since 810 gets remapped to 310 --- elink/hdl/erx_remap.v | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/elink/hdl/erx_remap.v b/elink/hdl/erx_remap.v index 281a483..e4dc206 100644 --- a/elink/hdl/erx_remap.v +++ b/elink/hdl/erx_remap.v @@ -60,13 +60,12 @@ module erx_remap (/*AUTOARG*/ + remap_base[31:0] //adding back base - (addr_in[31:26]<<$clog2(colid)); - //Static, dynamic, or no remap - assign remap_mux[31:0] = (remap_mode[1:0]==2'b00) ? addr_in[31:0] : + assign remap_mux[31:0] = (addr_in[31:20]==ID) ? addr_in[31:0] : //for write to mailbox + (remap_mode[1:0]==2'b00) ? addr_in[31:0] : (remap_mode[1:0]==2'b01) ? static_remap[31:0] : dynamic_remap[31:0]; - //Access pipeline always @ (posedge clk) emesh_access_out <= emesh_access_in;