Switch to use regular non-namespaced package
This commit is contained in:
@@ -9,7 +9,7 @@ import pathlib
|
||||
import pytest
|
||||
from systemrdl import RDLCompiler
|
||||
|
||||
from peakrdl.regblock import RegblockExporter
|
||||
from peakrdl_regblock import RegblockExporter
|
||||
from .cpuifs.base import CpuifTestMode
|
||||
from .cpuifs.apb3 import APB3
|
||||
|
||||
@@ -72,7 +72,7 @@ class BaseTestCase(unittest.TestCase):
|
||||
@classmethod
|
||||
def _export_regblock(cls):
|
||||
"""
|
||||
Call the peakrdl.regblock exporter to generate the DUT
|
||||
Call the peakrdl_regblock exporter to generate the DUT
|
||||
"""
|
||||
this_dir = cls.get_testcase_dir()
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from ..base import CpuifTestMode
|
||||
|
||||
from peakrdl.regblock.cpuif.apb3 import APB3_Cpuif, APB3_Cpuif_flattened
|
||||
from peakrdl_regblock.cpuif.apb3 import APB3_Cpuif, APB3_Cpuif_flattened
|
||||
|
||||
class APB3(CpuifTestMode):
|
||||
cpuif_cls = APB3_Cpuif
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from ..base import CpuifTestMode
|
||||
|
||||
from peakrdl.regblock.cpuif.axi4lite import AXI4Lite_Cpuif, AXI4Lite_Cpuif_flattened
|
||||
from peakrdl_regblock.cpuif.axi4lite import AXI4Lite_Cpuif, AXI4Lite_Cpuif_flattened
|
||||
|
||||
class AXI4Lite(CpuifTestMode):
|
||||
cpuif_cls = AXI4Lite_Cpuif
|
||||
|
||||
@@ -4,12 +4,12 @@ import inspect
|
||||
|
||||
import jinja2 as jj
|
||||
|
||||
from peakrdl.regblock.cpuif.base import CpuifBase
|
||||
from peakrdl_regblock.cpuif.base import CpuifBase
|
||||
|
||||
from ..sv_line_anchor import SVLineAnchor
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from peakrdl.regblock import RegblockExporter
|
||||
from peakrdl_regblock import RegblockExporter
|
||||
from ..sim_testcase import SimTestCase
|
||||
|
||||
class CpuifTestMode:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from ..base import CpuifTestMode
|
||||
|
||||
from peakrdl.regblock.cpuif.passthrough import PassthroughCpuif
|
||||
from peakrdl_regblock.cpuif.passthrough import PassthroughCpuif
|
||||
|
||||
class Passthrough(CpuifTestMode):
|
||||
cpuif_cls = PassthroughCpuif
|
||||
|
||||
@@ -92,7 +92,6 @@ disable=
|
||||
|
||||
# Noise / Don't care
|
||||
no-else-return,
|
||||
no-self-use,
|
||||
unused-variable,
|
||||
invalid-name,
|
||||
missing-docstring,
|
||||
|
||||
@@ -23,7 +23,7 @@ export SKIP_SYNTH_TESTS=1
|
||||
pytest --workers auto
|
||||
|
||||
# Run lint
|
||||
pylint --rcfile $this_dir/pylint.rc ../src/peakrdl
|
||||
pylint --rcfile $this_dir/pylint.rc ../src/peakrdl_regblock
|
||||
|
||||
# Run static type checking
|
||||
mypy $this_dir/../src/peakrdl
|
||||
mypy $this_dir/../src/peakrdl_regblock
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
|
||||
from peakrdl.regblock.cpuif.apb3 import APB3_Cpuif
|
||||
from peakrdl_regblock.cpuif.apb3 import APB3_Cpuif
|
||||
from ..lib.cpuifs.apb3 import APB3
|
||||
from ..lib.base_testcase import BaseTestCase
|
||||
|
||||
|
||||
Reference in New Issue
Block a user