From a34415fedfc934cc195c775a43c1f1cb6c7d50e0 Mon Sep 17 00:00:00 2001 From: Thomas Benz Date: Tue, 9 Jul 2024 14:26:05 +0200 Subject: [PATCH] legalizer: Ensure correct PageAddrWidth without bursts fixes #51 --- src/backend/tpl/idma_legalizer.sv.tpl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/backend/tpl/idma_legalizer.sv.tpl b/src/backend/tpl/idma_legalizer.sv.tpl index cf430ab2..1fe5358a 100644 --- a/src/backend/tpl/idma_legalizer.sv.tpl +++ b/src/backend/tpl/idma_legalizer.sv.tpl @@ -182,11 +182,11 @@ ${database[p]['max_beats_per_burst']} * StrbWidth > ${database[p]['page_size']}\ //-------------------------------------- % if no_read_bursting or has_page_read_bursting: idma_legalizer_page_splitter #( - .OffsetWidth ( OffsetWidth ), - .PageAddrWidth ( PageSize ), - .addr_t ( addr_t ), - .page_len_t ( page_len_t ), - .page_addr_t ( page_addr_t ) + .OffsetWidth ( OffsetWidth ), + .PageAddrWidth ( PageAddrWidth ), + .addr_t ( addr_t ), + .page_len_t ( page_len_t ), + .page_addr_t ( page_addr_t ) ) i_read_page_splitter ( % if no_read_bursting: .not_bursting_i ( 1'b1 ), @@ -260,11 +260,11 @@ r_num_bytes_to_pb = r_page_num_bytes_to_pb; //-------------------------------------- % if no_write_bursting or has_page_write_bursting: idma_legalizer_page_splitter #( - .OffsetWidth ( OffsetWidth ), - .PageAddrWidth ( PageSize ), - .addr_t ( addr_t ), - .page_len_t ( page_len_t ), - .page_addr_t ( page_addr_t ) + .OffsetWidth ( OffsetWidth ), + .PageAddrWidth ( PageAddrWidth ), + .addr_t ( addr_t ), + .page_len_t ( page_len_t ), + .page_addr_t ( page_addr_t ) ) i_write_page_splitter ( % if no_write_bursting: .not_bursting_i ( 1'b1 ),