Skip to content

Commit 49db496

Browse files
committed
Add parameters for data and addr width to package output
1 parent 280c3aa commit 49db496

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/peakrdl_regblock/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.17.0"
1+
__version__ = "0.18.0"

src/peakrdl_regblock/package_tmpl.sv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
// https://github.com/SystemRDL/PeakRDL-regblock
33

44
package {{ds.package_name}};
5+
6+
localparam {{ds.module_name.upper()}}_DATA_WIDTH = {{ds.cpuif_data_width}};
7+
localparam {{ds.module_name.upper()}}_MIN_ADDR_WIDTH = {{ds.addr_width}};
8+
59
{{hwif.get_package_contents()|indent}}
610
endpackage

0 commit comments

Comments
 (0)