Skip to content

Commit

Permalink
Fix defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
micprog committed Aug 7, 2024
1 parent c265854 commit 728cbf9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/axi_memory_island_wrap.sv
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module axi_memory_island_wrap #(
parameter int unsigned SpillRspBank = 0,

/// Relinquish narrow priority after x cycles, 0 for never. Requires SpillNarrowReqRouted==0.
parameter int unsigned WidePriorityWait = 0,
parameter int unsigned WidePriorityWait = 1,

/// Banking Factor for the Wide Ports (power of 2)
parameter int unsigned NumWideBanks = (1<<$clog2(NumWideReq))*2*2,
Expand Down
19 changes: 16 additions & 3 deletions test/synth/axi_memory_island_synth.sv
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ module axi_memory_island_synth #(
axi_wide_req_t [NumWideReq -1:0] wide_cut_req;
axi_wide_resp_t [NumWideReq -1:0] wide_cut_rsp;

for (genvar i = 0; i < NumNarrowReq; i++) begin
for (genvar i = 0; i < NumNarrowReq; i++) begin : gen_narrow_assign
assign narrow_req[i].aw_valid = s_axi_narrow_awvalid [i];
assign narrow_req[i].aw.id = s_axi_narrow_awid [i];
assign narrow_req[i].aw.addr = s_axi_narrow_awaddr [i];
Expand Down Expand Up @@ -202,7 +202,7 @@ module axi_memory_island_synth #(
);
end

for (genvar i = 0; i < NumWideReq; i++) begin
for (genvar i = 0; i < NumWideReq; i++) begin : gen_wide_assign
assign wide_req[i].aw_valid = s_axi_wide_awvalid [i];
assign wide_req[i].aw.id = s_axi_wide_awid [i];
assign wide_req[i].aw.addr = s_axi_wide_awaddr [i];
Expand Down Expand Up @@ -279,7 +279,20 @@ module axi_memory_island_synth #(
.axi_wide_rsp_t ( axi_wide_resp_t ),
.NumNarrowReq ( NumNarrowReq ),
.NumWideReq ( NumWideReq ),
.WordsPerBank ( WordsPerBank )
.WordsPerBank ( WordsPerBank ),
.SpillNarrowReqEntry (0),
.SpillNarrowRspEntry (0),
.SpillNarrowReqRouted(0),
.SpillNarrowRspRouted(0),
.SpillWideReqEntry (0),
.SpillWideRspEntry (0),
.SpillWideReqRouted (0),
.SpillWideRspRouted (0),
.SpillWideReqSplit (0),
.SpillWideRspSplit (0),
.SpillReqBank (0),
.SpillRspBank (1),
.WidePriorityWait (2)
) i_mem_island (
.clk_i,
.rst_ni,
Expand Down

0 comments on commit 728cbf9

Please sign in to comment.