fixup
This commit is contained in:
@@ -135,7 +135,7 @@ class RegblockExporter:
|
|||||||
|
|
||||||
if generate_hwif_report:
|
if generate_hwif_report:
|
||||||
path = os.path.join(output_dir, f"{module_name}_hwif.rpt")
|
path = os.path.join(output_dir, f"{module_name}_hwif.rpt")
|
||||||
hwif_report_file = open(path, "w")
|
hwif_report_file = open(path, "w", encoding='utf-8') # pylint: disable=consider-using-with
|
||||||
else:
|
else:
|
||||||
hwif_report_file = None
|
hwif_report_file = None
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from typing import TYPE_CHECKING, Union, List, Set, Dict
|
from typing import TYPE_CHECKING, Union, Set, Dict, Optional, TextIO
|
||||||
|
|
||||||
from systemrdl.node import AddrmapNode, Node, SignalNode, FieldNode, AddressableNode, RegNode
|
from systemrdl.node import AddrmapNode, SignalNode, FieldNode, RegNode
|
||||||
from systemrdl.rdltypes import PropertyReference
|
from systemrdl.rdltypes import PropertyReference
|
||||||
|
|
||||||
from ..utils import get_indexed_path
|
from ..utils import get_indexed_path
|
||||||
@@ -23,7 +23,7 @@ class Hwif:
|
|||||||
def __init__(
|
def __init__(
|
||||||
self, exp: 'RegblockExporter', package_name: str,
|
self, exp: 'RegblockExporter', package_name: str,
|
||||||
in_hier_signal_paths: Set[str], out_of_hier_signals: Dict[str, SignalNode],
|
in_hier_signal_paths: Set[str], out_of_hier_signals: Dict[str, SignalNode],
|
||||||
reuse_typedefs: bool, hwif_report_file: int
|
reuse_typedefs: bool, hwif_report_file: Optional[TextIO]
|
||||||
):
|
):
|
||||||
self.exp = exp
|
self.exp = exp
|
||||||
self.package_name = package_name
|
self.package_name = package_name
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class HWIFStructGenerator(RDLFlatStructGenerator):
|
|||||||
|
|
||||||
self.hwif_report_stack = [hwif_name]
|
self.hwif_report_stack = [hwif_name]
|
||||||
|
|
||||||
def push_struct(self, type_name: str, inst_name: str, array_dimensions: Optional[List[int]] = None) -> None:
|
def push_struct(self, type_name: str, inst_name: str, array_dimensions: Optional[List[int]] = None) -> None: # type: ignore
|
||||||
super().push_struct(type_name, inst_name, array_dimensions)
|
super().push_struct(type_name, inst_name, array_dimensions)
|
||||||
|
|
||||||
if array_dimensions:
|
if array_dimensions:
|
||||||
@@ -31,7 +31,7 @@ class HWIFStructGenerator(RDLFlatStructGenerator):
|
|||||||
super().pop_struct()
|
super().pop_struct()
|
||||||
self.hwif_report_stack.pop()
|
self.hwif_report_stack.pop()
|
||||||
|
|
||||||
def add_member(self, name: str, width: int = 1) -> None:
|
def add_member(self, name: str, width: int = 1) -> None: # type: ignore # pylint: disable=arguments-differ
|
||||||
super().add_member(name, width)
|
super().add_member(name, width)
|
||||||
|
|
||||||
if width > 1:
|
if width > 1:
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
pytest
|
# hold back: https://github.com/kevlened/pytest-parallel/issues/118
|
||||||
|
pytest<7.2
|
||||||
|
|
||||||
parameterized
|
parameterized
|
||||||
pytest-parallel
|
pytest-parallel
|
||||||
jinja2-simple-tags
|
jinja2-simple-tags
|
||||||
|
|||||||
Reference in New Issue
Block a user