Add Addressmap block size to generated package (#134)

* add map size as a localparam in rdl map package

* rename from _SIZE -> _BYTES_SIZE

* fix names on new test & localparam

* wrap map size in SVInt
This commit is contained in:
Aylon Chaim Porat
2025-03-04 00:16:25 -05:00
committed by GitHub
parent aba2af17af
commit 28ed82129f
6 changed files with 25 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ package {{ds.package_name}};
localparam {{ds.module_name.upper()}}_DATA_WIDTH = {{ds.cpuif_data_width}};
localparam {{ds.module_name.upper()}}_MIN_ADDR_WIDTH = {{ds.addr_width}};
localparam {{ds.module_name.upper()}}_SIZE = {{SVInt(ds.top_node.size)}};
{{hwif.get_package_contents()|indent}}
endpackage