From 045fb20734c477fe5191ac0b6de51fa272c64f41 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sun, 20 Jun 2021 16:52:13 +0200 Subject: New testing file. --- pyGHDL/cli/DOM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyGHDL/cli/DOM.py') diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py index d7ffc7319..3d0be2af9 100755 --- a/pyGHDL/cli/DOM.py +++ b/pyGHDL/cli/DOM.py @@ -45,7 +45,7 @@ def main(items): if len(items) < 1: print("Please, provide the files to be analyzed as CLI arguments.") print("Using for demo purposes.\n") - items = ["testsuite/pyunit/SimpleEntity.vhdl"] + items = ["testsuite/pyunit/Current.vhdl"] for item in items: try: -- cgit v1.2.3 From ed99fae7f13db8d5c3e95e935e32db825313b56a Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 21 Jun 2021 15:48:35 +0200 Subject: Prepared handling of functions, types, subtypes and aliases. --- pyGHDL/cli/DOM.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pyGHDL/cli/DOM.py') diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py index 3d0be2af9..8f9c58edc 100755 --- a/pyGHDL/cli/DOM.py +++ b/pyGHDL/cli/DOM.py @@ -7,7 +7,7 @@ from pathlib import Path from pydecor import export -from pyGHDL.dom import Misc +from pyGHDL.dom import NonStandard from pyGHDL import GHDLBaseException __all__ = [] @@ -18,13 +18,13 @@ from pyGHDL.dom.formatting.prettyprint import PrettyPrint @export class Application: - _design: Misc.Design + _design: NonStandard.Design def __init__(self): - self._design = Misc.Design() + self._design = NonStandard.Design() def addFile(self, filename: Path, library: str): - document = Misc.Document(filename) + document = NonStandard.Document(filename) self._design.Documents.append(document) def prettyPrint(self): -- cgit v1.2.3 From f956044c3045992f37f23d88d9e51a1de8593948 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 21 Jun 2021 23:18:29 +0200 Subject: Implemented handling of generic parameters to subprograms. --- pyGHDL/cli/DOM.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'pyGHDL/cli/DOM.py') diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py index 8f9c58edc..bb3ef1a05 100755 --- a/pyGHDL/cli/DOM.py +++ b/pyGHDL/cli/DOM.py @@ -13,7 +13,9 @@ from pyGHDL import GHDLBaseException __all__ = [] __api__ = __all__ -from pyGHDL.dom.formatting.prettyprint import PrettyPrint +from pyGHDL.dom.Common import DOMException + +from pyGHDL.dom.formatting.prettyprint import PrettyPrint, PrettyPrintException @export @@ -52,8 +54,10 @@ def main(items): app = Application() app.addFile(Path(item), "default_lib") app.prettyPrint() - except GHDLBaseException as ex: - print(ex) + except DOMException as ex: + print("DOM:", ex) + except PrettyPrintException as ex: + print("PP:", ex) _exitcode = 1 return _exitcode -- cgit v1.2.3 From 0a69901be945dfb6c5372e657332d5e5ddfa10c7 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 22 Jun 2021 11:59:09 +0200 Subject: Fixed issues reported by Codacy. --- pyGHDL/cli/DOM.py | 1 - 1 file changed, 1 deletion(-) (limited to 'pyGHDL/cli/DOM.py') diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py index bb3ef1a05..2b846edde 100755 --- a/pyGHDL/cli/DOM.py +++ b/pyGHDL/cli/DOM.py @@ -8,7 +8,6 @@ from pathlib import Path from pydecor import export from pyGHDL.dom import NonStandard -from pyGHDL import GHDLBaseException __all__ = [] __api__ = __all__ -- cgit v1.2.3