From d810705676ad624a609a8f0bb545d90c981e5211 Mon Sep 17 00:00:00 2001 From: Michael Rogenmoser Date: Wed, 7 Jun 2023 10:25:50 +0200 Subject: [PATCH] axi_to_detailed_mem: Fix type bug with workaround --- src/axi_to_detailed_mem.sv | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/axi_to_detailed_mem.sv b/src/axi_to_detailed_mem.sv index 7a8b95f0f..debf08284 100644 --- a/src/axi_to_detailed_mem.sv +++ b/src/axi_to_detailed_mem.sv @@ -397,7 +397,6 @@ module axi_to_detailed_mem #( mem_user_t user; axi_pkg::cache_t cache; axi_pkg::prot_t prot; - } tmp_atop_t; tmp_atop_t mem_req_atop; @@ -423,13 +422,13 @@ module axi_to_detailed_mem #( // Split single memory request to desired number of banks. mem_to_banks #( - .AddrWidth ( AddrWidth ), - .DataWidth ( DataWidth ), - .NumBanks ( NumBanks ), - .HideStrb ( HideStrb ), - .MaxTrans ( BufDepth ), - .FifoDepth ( OutFifoDepth ), - .atop_t ( tmp_atop_t ) + .AddrWidth ( AddrWidth ), + .DataWidth ( DataWidth ), + .NumBanks ( NumBanks ), + .HideStrb ( HideStrb ), + .MaxTrans ( BufDepth ), + .FifoDepth ( OutFifoDepth ), + .AtopWidth ( $bits(tmp_atop_t) ) ) i_mem_to_banks ( .clk_i, .rst_ni,