diff options
Diffstat (limited to 'src/vhdl/python')
-rw-r--r-- | src/vhdl/python/libghdl/thin.py | 5 | ||||
-rwxr-xr-x | src/vhdl/python/pnodespy.py | 16 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/vhdl/python/libghdl/thin.py b/src/vhdl/python/libghdl/thin.py index 71b375c73..07a5e80d6 100644 --- a/src/vhdl/python/libghdl/thin.py +++ b/src/vhdl/python/libghdl/thin.py @@ -77,6 +77,11 @@ def Get_Identifier(s): return _Get_Identifier_With_Len(c_char_p(s), len(s)) +# Flags +class Flags: + Flag_Elocations = c_bool.in_dll(libghdl, "flags__flag_elocations") + + # Scanner class Scanner: Set_File = libghdl.scanner__set_file diff --git a/src/vhdl/python/pnodespy.py b/src/vhdl/python/pnodespy.py index b846c01b0..d0168784c 100755 --- a/src/vhdl/python/pnodespy.py +++ b/src/vhdl/python/pnodespy.py @@ -39,6 +39,19 @@ def do_iirs_subprg(): k.name, libname, classname, k.name.lower(), k.pname, k.rname) +def do_libghdl_elocations(): + classname = 'elocations' + print 'from libghdl import libghdl' + print + for k in pnodes.funcs: + print + print 'Get_{0} = {1}.{2}__get_{3}'.format( + k.name, libname, classname, k.name.lower()) + print + print 'Set_{0} = {1}.{2}__set_{3}'.format( + k.name, libname, classname, k.name.lower(), k.pname, k.rname) + + def do_class_types(): print_enum('types', pnodes.get_types()) @@ -178,7 +191,8 @@ pnodes.actions.update({'class-kinds': do_class_kinds, 'libghdl-iirs': do_libghdl_iirs, 'libghdl-meta': do_libghdl_meta, 'libghdl-names': do_libghdl_names, - 'libghdl-tokens': do_libghdl_tokens}) + 'libghdl-tokens': do_libghdl_tokens, + 'libghdl-elocs': do_libghdl_elocations}) pnodes.main() |