コード例 #1
0
ファイル: thin.py プロジェクト: LinuXperia/ghdl
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")
コード例 #2
0
ファイル: thin.py プロジェクト: qicny/ghdl
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
コード例 #3
0
ファイル: thin.py プロジェクト: qicny/ghdl
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
コード例 #4
0
#  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")
コード例 #5
0
ファイル: thin.py プロジェクト: qicny/ghdl
class Flags:
    Flag_Elocations = c_bool.in_dll(libghdl, "flags__flag_elocations")
コード例 #6
0
ファイル: thin.py プロジェクト: qicny/ghdl
class Parse:
    Parse_Design_File = libghdl.parse__parse_design_file

    Flag_Parse_Parenthesis = c_bool.in_dll(libghdl,
                                           "parse__flag_parse_parenthesis")
コード例 #7
0
ファイル: parse.py プロジェクト: FisherG1/ghdl-1
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")
コード例 #8
0
ファイル: canon.py プロジェクト: umarcor/ghdl
#  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)
コード例 #9
0
ファイル: scanner.py プロジェクト: vuhuycan/ghdl
#
# 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."""
コード例 #10
0
def _dagmc_enabled():
    return c_bool.in_dll(_dll, "dagmc_enabled").value
コード例 #11
0
def _libmesh_enabled():
    return c_bool.in_dll(_dll, "LIBMESH_ENABLED").value
コード例 #12
0
def _dagmc_enabled():
    return c_bool.in_dll(_dll, "DAGMC_ENABLED").value