From b6a3e375aefbb632223dcf775d47ab8a766867ab Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Wed, 11 Oct 2017 20:41:00 +0200 Subject: python: add more interfaces. --- src/vhdl/python/libghdl/thin.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/vhdl/python/libghdl/thin.py') diff --git a/src/vhdl/python/libghdl/thin.py b/src/vhdl/python/libghdl/thin.py index 2fb75f651..306a31a66 100644 --- a/src/vhdl/python/libghdl/thin.py +++ b/src/vhdl/python/libghdl/thin.py @@ -61,6 +61,15 @@ Get_Name_Ptr.restype = c_char_p _Get_Identifier_With_Len = libghdl.name_table__get_identifier_with_len +# Ieee + +# Get value +Std_Logic_Type = c_int.in_dll(libghdl, "ieee__std_logic_1164__std_logic_type") + +# Get value +Std_Logic_Vector_Type = c_int.in_dll( + libghdl, "ieee__std_logic_1164__std_logic_vector_type") + def Get_Identifier(s): return _Get_Identifier_With_Len(c_char_p(s), len(s)) @@ -107,8 +116,14 @@ Add_Design_Unit_Into_Library = libghdl.libraries__add_design_unit_into_library Finish_Compilation = libghdl.libraries__finish_compilation +# Use .value Library_Location = c_int32.in_dll(libghdl, "libraries__library_location") +# Use .value +Work_Library = c_int32.in_dll(libghdl, "libraries__work_library") + +Purge_Design_File = libghdl.libraries__purge_design_file + # Disp_Iir = libghdl.disp_tree__disp_iir @@ -177,7 +192,7 @@ def chain_iter(n): def chain_to_list(n): """Convert a chain headed by node n to a python list""" - return [e for e in chain_iter(n)] + return [e for e in chain_iter(n)] def nodes_iter(n): -- cgit v1.2.3