aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/pnodespy.py
diff options
context:
space:
mode:
authorUnai Martinez-Corral <38422348+umarcor@users.noreply.github.com>2021-07-02 00:10:18 +0100
committerGitHub <noreply@github.com>2021-07-02 00:10:18 +0100
commit1da694fe05363bf29359b5290042073774a11f25 (patch)
treeb4d55f210cfbf90847dc56a60058afa819107030 /scripts/pnodespy.py
parent69e6630acb723282ddde95ad0681ac71686df8e8 (diff)
parentae51fcf65f195e065987f379410d3f68c14f4a2b (diff)
downloadghdl-1da694fe05363bf29359b5290042073774a11f25.tar.gz
ghdl-1da694fe05363bf29359b5290042073774a11f25.tar.bz2
ghdl-1da694fe05363bf29359b5290042073774a11f25.zip
pyHDL: CLI Update for DOM (#1808)
Diffstat (limited to 'scripts/pnodespy.py')
-rwxr-xr-xscripts/pnodespy.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/pnodespy.py b/scripts/pnodespy.py
index 1f016a82d..f1f637ea7 100755
--- a/scripts/pnodespy.py
+++ b/scripts/pnodespy.py
@@ -66,11 +66,13 @@ def do_iirs_subprg():
@BindToLibGHDL("{classname}__get_kind")
def Get_Kind(node: Iir) -> IirKind:
\"\"\"Get node kind.\"\"\"
+ return 0
@export
@BindToLibGHDL("{classname}__get_location")
def Get_Location(node: Iir) -> LocationType:
\"\"\"\"\"\"
+ return 0
""").format(libname=libname, classname=classname)
)
for k in pnodes.funcs:
@@ -85,6 +87,7 @@ def do_iirs_subprg():
@BindToLibGHDL("{classname}__get_{kname_lower}")
def Get_{kname}(obj: Iir) -> {rtype}:
\"\"\"\"\"\"
+ return 0
@export
@BindToLibGHDL("{classname}__set_{kname_lower}")
def Set_{kname}(obj: Iir, value: {rtype}) -> None:
@@ -259,6 +262,7 @@ def do_libghdl_meta():
:param K: Node to get first array index from.
\"\"\"
+ return 0
@export
@@ -275,11 +279,13 @@ def do_libghdl_meta():
:param K: Node to get last array index from.
\"\"\"
+ return 0
@export
@BindToLibGHDL("vhdl__nodes_meta__get_field_by_index")
def get_field_by_index(K: IirKind) -> int:
\"\"\"\"\"\"
+ return 0
@export
def get_field_type(*args):