class Flags: Flag_Elocations = c_bool.in_dll(libghdl, "flags__flag_elocations") Verbose = c_bool.in_dll(libghdl, "flags__verbose") Flag_Elaborate_With_Outdated = c_bool.in_dll( libghdl, "flags__flag_elaborate_with_outdated")
class Canon: Flag_Concurrent_Stmts = c_bool.in_dll( libghdl, "canon__canon_flag_concurrent_stmts") Flag_Configurations = c_bool.in_dll(libghdl, "canon__canon_flag_configurations") Flag_Associations = c_bool.in_dll(libghdl, "canon__canon_flag_associations") Extract_Sequential_Statement_Chain_Sensitivity = \ libghdl.canon__canon_extract_sequential_statement_chain_sensitivity
class Scanner: Set_File = libghdl.scanner__set_file Close_File = libghdl.scanner__close_file Scan = libghdl.scanner__scan # This is a c_int, so you want to use its .value Current_Token = c_int.in_dll(libghdl, "scanner__current_token") Flag_Comment = c_bool.in_dll(libghdl, "scanner__flag_comment") Get_Current_Line = libghdl.scanner__get_current_line Get_Token_Column = libghdl.scanner__get_token_column Get_Token_Position = libghdl.scanner__get_token_position Get_Position = libghdl.scanner__get_position Current_Identifier = libghdl.scanner__current_identifier
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <gnu.org/licenses>. # # SPDX-License-Identifier: GPL-2.0-or-later # ============================================================================ from ctypes import c_bool, sizeof from pyGHDL.libghdl import libghdl __all__ = [ 'Flag_Elocations', 'Verbose', 'Flag_Elaborate_With_Outdated', 'Flag_Force_Analysis' ] assert sizeof(c_bool) == 1 Flag_Elocations = c_bool.in_dll(libghdl, "flags__flag_elocations") Verbose = c_bool.in_dll(libghdl, "flags__verbose") Flag_Elaborate_With_Outdated = c_bool.in_dll( libghdl, "flags__flag_elaborate_with_outdated") Flag_Force_Analysis = c_bool.in_dll(libghdl, "flags__flag_force_analysis")
class Flags: Flag_Elocations = c_bool.in_dll(libghdl, "flags__flag_elocations")
class Parse: Parse_Design_File = libghdl.parse__parse_design_file Flag_Parse_Parenthesis = c_bool.in_dll(libghdl, "parse__flag_parse_parenthesis")
from libghdl import libghdl from ctypes import c_bool Parse_Design_File = libghdl.vhdl__parse__parse_design_file Flag_Parse_Parenthesis = c_bool.in_dll(libghdl, "vhdl__parse__flag_parse_parenthesis")
# the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <gnu.org/licenses>. # # SPDX-License-Identifier: GPL-2.0-or-later # ============================================================================ from ctypes import c_bool from pyGHDL.libghdl import libghdl __all__ = ["Flag_Concurrent_Stmts", "Flag_Configurations", "Flag_Associations"] Flag_Concurrent_Stmts = c_bool.in_dll( libghdl, "vhdl__canon__canon_flag_concurrent_stmts") Flag_Configurations = c_bool.in_dll(libghdl, "vhdl__canon__canon_flag_configurations") Flag_Associations = c_bool.in_dll(libghdl, "vhdl__canon__canon_flag_associations") # Extract_Sequential_Statement_Chain_Sensitivity = (libghdl.vhdl__canon__canon_extract_sequential_statement_chain_sensitivity)
# # SPDX-License-Identifier: GPL-2.0-or-later # ============================================================================ from ctypes import c_int, c_bool from pydecor import export from pyGHDL.libghdl import libghdl from pyGHDL.libghdl._types import SourceFileEntry, NameId __all__ = ['Current_Token', 'Flag_Comment'] # This is a c_int, so you want to use its .value Current_Token = c_int.in_dll(libghdl, "vhdl__scanner__current_token") Flag_Comment = c_bool.in_dll(libghdl, "vhdl__scanner__flag_comment") @export def Set_File(SourceFile: SourceFileEntry) -> None: """ Initialize the scanner with file :obj:`SourceFile`. :param SourceFile: File to scan. """ libghdl.vhdl__scanner__set_file(SourceFile) @export def Close_File() -> None: """Finalize the scanner."""
def _dagmc_enabled(): return c_bool.in_dll(_dll, "dagmc_enabled").value
def _libmesh_enabled(): return c_bool.in_dll(_dll, "LIBMESH_ENABLED").value
def _dagmc_enabled(): return c_bool.in_dll(_dll, "DAGMC_ENABLED").value