Skip to content

Commit

Permalink
Update peakrdl plugin to extend from base class
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Feb 18, 2023
1 parent b862a38 commit 65a3066
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/peakrdl_ipxact/__peakrdl__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from typing import TYPE_CHECKING
import re

from peakrdl.plugins.importer import ImporterPlugin #pylint: disable=import-error
from peakrdl.plugins.exporter import ExporterSubcommandPlugin #pylint: disable=import-error

from .exporter import IPXACTExporter, Standard
from .importer import IPXACTImporter

Expand All @@ -10,7 +13,7 @@
from systemrdl.node import AddrmapNode


class Exporter:
class Exporter(ExporterSubcommandPlugin):
short_desc = "Export the register model to IP-XACT"


Expand Down Expand Up @@ -61,7 +64,7 @@ def do_export(self, top_node: 'AddrmapNode', options: 'argparse.Namespace') -> N
)


class Importer:
class Importer(ImporterPlugin):
file_extensions = ["xml"]

def is_compatible(self, path: str) -> bool:
Expand Down

0 comments on commit 65a3066

Please sign in to comment.