Skip to content

Commit

Permalink
Add parameters for data and addr width to package output
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Aug 25, 2023
1 parent 280c3aa commit 49db496
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/peakrdl_regblock/__about__.py
@@ -1 +1 @@
__version__ = "0.17.0"
__version__ = "0.18.0"
4 changes: 4 additions & 0 deletions src/peakrdl_regblock/package_tmpl.sv
Expand Up @@ -2,5 +2,9 @@
// https://github.com/SystemRDL/PeakRDL-regblock

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}};

{{hwif.get_package_contents()|indent}}
endpackage

0 comments on commit 49db496

Please sign in to comment.