File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
- from typing import TYPE_CHECKING
1
+ from typing import TYPE_CHECKING , List
2
2
import inspect
3
3
import os
4
4
@@ -34,6 +34,13 @@ def data_width_bytes(self) -> int:
34
34
def port_declaration (self ) -> str :
35
35
raise NotImplementedError ()
36
36
37
+ @property
38
+ def parameters (self ) -> List [str ]:
39
+ """
40
+ Optional list of additional parameters this CPU interface provides to
41
+ the module's definition
42
+ """
43
+ return []
37
44
38
45
def _get_template_path_class_dir (self ) -> str :
39
46
"""
Original file line number Diff line number Diff line change 1
1
// Generated by PeakRDL-regblock - A free and open-source SystemVerilog generator
2
2
// https://github.com/SystemRDL/PeakRDL-regblock
3
3
4
- module {{ ds.module_name}} (
4
+ module {{ ds.module_name}}
5
+ { %- if cpuif.parameters % } # (
6
+ {{ " ,\n " .join (cpuif.parameters)}}
7
+ ) { %- endif % } (
5
8
input wire clk,
6
9
input wire {{ default_resetsignal_name}} ,
7
10
You can’t perform that action at this time.
0 commit comments