pyGHDL.libghdl.vhdl.nodes

Python binding for the Ada package Vhdl.Nodes in libghdl.

The IIR tree: the node kinds, the enumerations their fields use, and the accessor pair for every field. See AST for what a node is and how the fields are addressed.

Variables

Functions

Classes

  • Iir_Kind: The kind of an IIR node, which decides what its physical fields mean.

  • Iir_Kinds: The Iir_Kinds_* subtype ranges, each listing the consecutive node kinds it covers.

  • Iir_Mode: The mode of an interface object: in, out, inout, buffer or linkage.

  • ScalarSize: The storage size of a scalar type.

  • Iir_Staticness: How static an expression or a type is: unknown, none, globally or locally.

  • Iir_Constraint: How constrained a composite type is: unconstrained, partially or fully.

  • Iir_Delay_Mechanism: The delay mechanism of a signal assignment: inertial or transport.

  • DateStateType: How far a design unit has been processed: extern, disk, parse or analyze.

  • NumberBaseType: The base a literal was written in.

  • Iir_Predefined: The predefined operation an implicit subprogram implements.


Variables

pyGHDL.libghdl.vhdl.nodes.Null_Iir

Null element for an IIR node reference.

0
pyGHDL.libghdl.vhdl.nodes.Null_Iir_List

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.__int__(). For floating-point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by ‘+’ or ‘-’ and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer iteral. >>> int(‘0b100’, base=0) 4

0
pyGHDL.libghdl.vhdl.nodes.Iir_List_All

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.__int__(). For floating-point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by ‘+’ or ‘-’ and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer iteral. >>> int(‘0b100’, base=0) 4

1
pyGHDL.libghdl.vhdl.nodes.Null_Iir_Flist

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.__int__(). For floating-point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by ‘+’ or ‘-’ and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer iteral. >>> int(‘0b100’, base=0) 4

0
pyGHDL.libghdl.vhdl.nodes.Iir_Flist_Others

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.__int__(). For floating-point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by ‘+’ or ‘-’ and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer iteral. >>> int(‘0b100’, base=0) 4

1
pyGHDL.libghdl.vhdl.nodes.Iir_Flist_All

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.__int__(). For floating-point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by ‘+’ or ‘-’ and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer iteral. >>> int(‘0b100’, base=0) 4

2

Functions

pyGHDL.libghdl.vhdl.nodes.Get_Kind(node)[source]

Get node kind.

Return type:

TypeVar(IirKind, bound= c_int)

Parameters:

node (Iir)

pyGHDL.libghdl.vhdl.nodes.Get_Location(node)[source]

Get the source location of a node.

Parameters:

node (TypeVar(Iir, bound= c_int)) – The node to read the location of.

Return type:

TypeVar(LocationType, bound= c_uint)

Returns:

The node’s location, to be resolved with pyGHDL.libghdl.files_map.

pyGHDL.libghdl.vhdl.nodes.Get_First_Design_Unit(obj)[source]

Design units contained in a design file.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the First_Design_Unit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s First_Design_Unit field.

pyGHDL.libghdl.vhdl.nodes.Set_First_Design_Unit(obj, value)[source]

Design units contained in a design file.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the First_Design_Unit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the First_Design_Unit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Last_Design_Unit(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Last_Design_Unit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Last_Design_Unit field.

pyGHDL.libghdl.vhdl.nodes.Set_Last_Design_Unit(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Last_Design_Unit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Last_Design_Unit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Library_Declaration(obj)[source]

Library declaration of a library clause. This is Forward_Ref as the dependency of the unit on the library is not tracked.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Library_Declaration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Library_Declaration field.

pyGHDL.libghdl.vhdl.nodes.Set_Library_Declaration(obj, value)[source]

Library declaration of a library clause. This is Forward_Ref as the dependency of the unit on the library is not tracked.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Library_Declaration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Library_Declaration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_File_Checksum(obj)[source]

File time stamp is the system time of the file last modification.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the File_Checksum field of.

Return type:

TypeVar(FileChecksumId, bound= c_uint)

Returns:

The node’s File_Checksum field.

pyGHDL.libghdl.vhdl.nodes.Set_File_Checksum(obj, value)[source]

File time stamp is the system time of the file last modification.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the File_Checksum field of.

  • value (TypeVar(FileChecksumId, bound= c_uint)) – The value to write into the File_Checksum field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Analysis_Time_Stamp(obj)[source]

Time stamp of the last analysis system time.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Analysis_Time_Stamp field of.

Return type:

TypeVar(TimeStampId, bound= c_uint)

Returns:

The node’s Analysis_Time_Stamp field.

pyGHDL.libghdl.vhdl.nodes.Set_Analysis_Time_Stamp(obj, value)[source]

Time stamp of the last analysis system time.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Analysis_Time_Stamp field of.

  • value (TypeVar(TimeStampId, bound= c_uint)) – The value to write into the Analysis_Time_Stamp field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_File_Source(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_File_Source field of.

Return type:

TypeVar(SourceFileEntry, bound= c_uint)

Returns:

The node’s Design_File_Source field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_File_Source(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_File_Source field of.

  • value (TypeVar(SourceFileEntry, bound= c_uint)) – The value to write into the Design_File_Source field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Library(obj)[source]

The library which FILE belongs to.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Library field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Library field.

pyGHDL.libghdl.vhdl.nodes.Set_Library(obj, value)[source]

The library which FILE belongs to.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Library field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Library field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_File_Filename(obj)[source]

Identifier for the design file file name.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_File_Filename field of.

Return type:

TypeVar(NameId, bound= c_int)

Returns:

The node’s Design_File_Filename field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_File_Filename(obj, value)[source]

Identifier for the design file file name.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_File_Filename field of.

  • value (TypeVar(NameId, bound= c_int)) – The value to write into the Design_File_Filename field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_File_Directory(obj)[source]

Directory of a design file.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_File_Directory field of.

Return type:

TypeVar(NameId, bound= c_int)

Returns:

The node’s Design_File_Directory field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_File_Directory(obj, value)[source]

Directory of a design file.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_File_Directory field of.

  • value (TypeVar(NameId, bound= c_int)) – The value to write into the Design_File_Directory field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_File(obj)[source]

The parent of a design unit is a design file.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_File field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Design_File field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_File(obj, value)[source]

The parent of a design unit is a design file.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_File field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Design_File field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_File_Chain(obj)[source]

Design files of a library.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_File_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Design_File_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_File_Chain(obj, value)[source]

Design files of a library.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_File_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Design_File_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Library_Directory(obj)[source]

System directory where the library is stored.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Library_Directory field of.

Return type:

TypeVar(NameId, bound= c_int)

Returns:

The node’s Library_Directory field.

pyGHDL.libghdl.vhdl.nodes.Set_Library_Directory(obj, value)[source]

System directory where the library is stored.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Library_Directory field of.

  • value (TypeVar(NameId, bound= c_int)) – The value to write into the Library_Directory field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Date(obj)[source]

Symbolic date, used to order design units in a library.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Date field of.

Return type:

TypeVar(DateType, bound= c_int)

Returns:

The node’s Date field.

pyGHDL.libghdl.vhdl.nodes.Set_Date(obj, value)[source]

Symbolic date, used to order design units in a library.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Date field of.

  • value (TypeVar(DateType, bound= c_int)) – The value to write into the Date field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Context_Items(obj)[source]

Chain of context clauses.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Context_Items field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Context_Items field.

pyGHDL.libghdl.vhdl.nodes.Set_Context_Items(obj, value)[source]

Chain of context clauses.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Context_Items field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Context_Items field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Dependence_List(obj)[source]

List of design units on which the design unit depends. There is an exception: the architecture of an entity aspect (of a component instantiation) may not have been analyzed. The Entity_Aspect_Entity is added to this list (instead of the non-existing design unit).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Dependence_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Dependence_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Dependence_List(obj, value)[source]

List of design units on which the design unit depends. There is an exception: the architecture of an entity aspect (of a component instantiation) may not have been analyzed. The Entity_Aspect_Entity is added to this list (instead of the non-existing design unit).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Dependence_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Dependence_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Analysis_Checks_List(obj)[source]

List of functions or sensitized processes whose analysis checks are not complete. These elements have direct or indirect calls to procedure whose body is not yet analyzed. Therefore, purity or wait checks are not complete.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Analysis_Checks_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Analysis_Checks_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Analysis_Checks_List(obj, value)[source]

List of functions or sensitized processes whose analysis checks are not complete. These elements have direct or indirect calls to procedure whose body is not yet analyzed. Therefore, purity or wait checks are not complete.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Analysis_Checks_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Analysis_Checks_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Date_State(obj)[source]

Whether the unit is on disk, parsed or analyzed.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Date_State field of.

Return type:

DateStateType

Returns:

The node’s Date_State field.

pyGHDL.libghdl.vhdl.nodes.Set_Date_State(obj, value)[source]

Whether the unit is on disk, parsed or analyzed.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Date_State field of.

  • value (DateStateType) – The value to write into the Date_State field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Guarded_Target_State(obj)[source]

If TRUE, the target of the signal assignment is guarded. If FALSE, the target is not guarded. This is determined during sem by examining the declaration(s) of the target (there may be several declarations in the case of a aggregate target). If UNKNOWN, this is not determined at compile time but at run-time. This is the case for formal signal interfaces of subprograms.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Guarded_Target_State field of.

Return type:

TriStateType

Returns:

The node’s Guarded_Target_State field.

pyGHDL.libghdl.vhdl.nodes.Set_Guarded_Target_State(obj, value)[source]

If TRUE, the target of the signal assignment is guarded. If FALSE, the target is not guarded. This is determined during sem by examining the declaration(s) of the target (there may be several declarations in the case of a aggregate target). If UNKNOWN, this is not determined at compile time but at run-time. This is the case for formal signal interfaces of subprograms.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Guarded_Target_State field of.

  • value (TriStateType) – The value to write into the Guarded_Target_State field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Library_Unit(obj)[source]

Library unit of a design unit.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Library_Unit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Library_Unit field.

pyGHDL.libghdl.vhdl.nodes.Set_Library_Unit(obj, value)[source]

Library unit of a design unit.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Library_Unit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Library_Unit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Hash_Chain(obj)[source]

Every design unit is put in an hash table to find quickly found by its name. This field is a single chain for collisions.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Hash_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Hash_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Hash_Chain(obj, value)[source]

Every design unit is put in an hash table to find quickly found by its name. This field is a single chain for collisions.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Hash_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Hash_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_Unit_Source_Pos(obj)[source]

Set the line and the offset in the line, only for the library manager. This is valid until the file is really loaded in memory. On loading, location will contain all this information.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_Unit_Source_Pos field of.

Return type:

TypeVar(SourcePtr, bound= c_int)

Returns:

The node’s Design_Unit_Source_Pos field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_Unit_Source_Pos(obj, value)[source]

Set the line and the offset in the line, only for the library manager. This is valid until the file is really loaded in memory. On loading, location will contain all this information.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_Unit_Source_Pos field of.

  • value (TypeVar(SourcePtr, bound= c_int)) – The value to write into the Design_Unit_Source_Pos field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_Unit_Source_Line(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_Unit_Source_Line field of.

Return type:

TypeVar(Int32, bound= c_int)

Returns:

The node’s Design_Unit_Source_Line field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_Unit_Source_Line(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_Unit_Source_Line field of.

  • value (TypeVar(Int32, bound= c_int)) – The value to write into the Design_Unit_Source_Line field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_Unit_Source_Col(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_Unit_Source_Col field of.

Return type:

TypeVar(Int32, bound= c_int)

Returns:

The node’s Design_Unit_Source_Col field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_Unit_Source_Col(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_Unit_Source_Col field of.

  • value (TypeVar(Int32, bound= c_int)) – The value to write into the Design_Unit_Source_Col field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Value(obj)[source]

Value of an integer/physical literal.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Value field of.

Return type:

TypeVar(Int64, bound= c_long)

Returns:

The node’s Value field.

pyGHDL.libghdl.vhdl.nodes.Set_Value(obj, value)[source]

Value of an integer/physical literal.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Value field of.

  • value (TypeVar(Int64, bound= c_long)) – The value to write into the Value field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Enum_Pos(obj)[source]

Position (same as lit_type’pos) of an enumeration literal.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Enum_Pos field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Enum_Pos field.

pyGHDL.libghdl.vhdl.nodes.Set_Enum_Pos(obj, value)[source]

Position (same as lit_type’pos) of an enumeration literal.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Enum_Pos field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Enum_Pos field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Physical_Literal(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Physical_Literal field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Physical_Literal field.

pyGHDL.libghdl.vhdl.nodes.Set_Physical_Literal(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Physical_Literal field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Physical_Literal field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Fp_Value(obj)[source]

Value of a floating point literal.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Fp_Value field of.

Return type:

TypeVar(Fp64, bound= c_double)

Returns:

The node’s Fp_Value field.

pyGHDL.libghdl.vhdl.nodes.Set_Fp_Value(obj, value)[source]

Value of a floating point literal.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Fp_Value field of.

  • value (TypeVar(Fp64, bound= c_double)) – The value to write into the Fp_Value field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Simple_Aggregate_List(obj)[source]

List of elements of a simple aggregate.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Simple_Aggregate_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Simple_Aggregate_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Simple_Aggregate_List(obj, value)[source]

List of elements of a simple aggregate.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Simple_Aggregate_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Simple_Aggregate_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_String8_Id(obj)[source]

For a string literal: the string identifier.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the String8_Id field of.

Return type:

TypeVar(String8Id, bound= c_uint)

Returns:

The node’s String8_Id field.

pyGHDL.libghdl.vhdl.nodes.Set_String8_Id(obj, value)[source]

For a string literal: the string identifier.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the String8_Id field of.

  • value (TypeVar(String8Id, bound= c_uint)) – The value to write into the String8_Id field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_String_Length(obj)[source]

For a string literal: the string length.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the String_Length field of.

Return type:

TypeVar(Int32, bound= c_int)

Returns:

The node’s String_Length field.

pyGHDL.libghdl.vhdl.nodes.Set_String_Length(obj, value)[source]

For a string literal: the string length.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the String_Length field of.

  • value (TypeVar(Int32, bound= c_int)) – The value to write into the String_Length field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Bit_String_Base(obj)[source]

Base of a bit string. Base_None for a string literal.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Bit_String_Base field of.

Return type:

NumberBaseType

Returns:

The node’s Bit_String_Base field.

pyGHDL.libghdl.vhdl.nodes.Set_Bit_String_Base(obj, value)[source]

Base of a bit string. Base_None for a string literal.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Bit_String_Base field of.

  • value (NumberBaseType) – The value to write into the Bit_String_Base field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Signed(obj)[source]

Bit string is signed.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Signed field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Signed field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Signed(obj, value)[source]

Bit string is signed.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Signed field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Signed field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Sign(obj)[source]

Bit string sign is explicit

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Sign field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Sign field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Sign(obj, value)[source]

Bit string sign is explicit

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Sign field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Sign field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Length(obj)[source]

Bit string length is explicit

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Length field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Length field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Length(obj, value)[source]

Bit string length is explicit

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Length field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Length field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Literal_Length(obj)[source]

Length of the literal in characters. Used for pretty print. Set to 0 when doesn’t come from the sources.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Literal_Length field of.

Return type:

TypeVar(Int32, bound= c_int)

Returns:

The node’s Literal_Length field.

pyGHDL.libghdl.vhdl.nodes.Set_Literal_Length(obj, value)[source]

Length of the literal in characters. Used for pretty print. Set to 0 when doesn’t come from the sources.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Literal_Length field of.

  • value (TypeVar(Int32, bound= c_int)) – The value to write into the Literal_Length field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Literal_Origin(obj)[source]

The origin of a literal can be null_iir for a literal generated by the parser, or a node which was statically evaluated to this literal. Such nodes are created by eval_expr.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Literal_Origin field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Literal_Origin field.

pyGHDL.libghdl.vhdl.nodes.Set_Literal_Origin(obj, value)[source]

The origin of a literal can be null_iir for a literal generated by the parser, or a node which was statically evaluated to this literal. Such nodes are created by eval_expr.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Literal_Origin field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Literal_Origin field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Range_Origin(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Range_Origin field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Range_Origin field.

pyGHDL.libghdl.vhdl.nodes.Set_Range_Origin(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Range_Origin field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Range_Origin field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Literal_Subtype(obj)[source]

Same as Type, but not marked as Ref. This is when a literal has a subtype (such as string or bit_string) created specially for the literal.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Literal_Subtype field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Literal_Subtype field.

pyGHDL.libghdl.vhdl.nodes.Set_Literal_Subtype(obj, value)[source]

Same as Type, but not marked as Ref. This is when a literal has a subtype (such as string or bit_string) created specially for the literal.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Literal_Subtype field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Literal_Subtype field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Allocator_Subtype(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Allocator_Subtype field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Allocator_Subtype field.

pyGHDL.libghdl.vhdl.nodes.Set_Allocator_Subtype(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Allocator_Subtype field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Allocator_Subtype field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Entity_Class(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Entity_Class field of.

Return type:

Tok

Returns:

The node’s Entity_Class field.

pyGHDL.libghdl.vhdl.nodes.Set_Entity_Class(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Entity_Class field of.

  • value (Tok) – The value to write into the Entity_Class field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Entity_Name_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Entity_Name_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Entity_Name_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Entity_Name_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Entity_Name_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Entity_Name_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Attribute_Designator(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Attribute_Designator field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Attribute_Designator field.

pyGHDL.libghdl.vhdl.nodes.Set_Attribute_Designator(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Attribute_Designator field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Attribute_Designator field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Attribute_Specification_Chain(obj)[source]

Chain of attribute specifications. This is used only during sem, to check that no named entity of a given class appear after an attr. spec. with the entity name list OTHERS or ALL.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Attribute_Specification_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Attribute_Specification_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Attribute_Specification_Chain(obj, value)[source]

Chain of attribute specifications. This is used only during sem, to check that no named entity of a given class appear after an attr. spec. with the entity name list OTHERS or ALL.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Attribute_Specification_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Attribute_Specification_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Attribute_Specification(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Attribute_Specification field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Attribute_Specification field.

pyGHDL.libghdl.vhdl.nodes.Set_Attribute_Specification(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Attribute_Specification field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Attribute_Specification field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Static_Attribute_Flag(obj)[source]

True for attributes on entity, configuration and architecture. They are expected to be read from anywhere so the value is expected to be locally static, but this is not followed by many users and implementations.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Static_Attribute_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Static_Attribute_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Static_Attribute_Flag(obj, value)[source]

True for attributes on entity, configuration and architecture. They are expected to be read from anywhere so the value is expected to be locally static, but this is not followed by many users and implementations.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Static_Attribute_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Static_Attribute_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Signal_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Signal_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Signal_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Signal_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Signal_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Signal_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Quantity_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Quantity_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Quantity_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Quantity_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Quantity_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Quantity_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Designated_Entity(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Designated_Entity field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Designated_Entity field.

pyGHDL.libghdl.vhdl.nodes.Set_Designated_Entity(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Designated_Entity field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Designated_Entity field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Formal(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Formal field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Formal field.

pyGHDL.libghdl.vhdl.nodes.Set_Formal(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Formal field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Formal field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Actual(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Actual field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Actual field.

pyGHDL.libghdl.vhdl.nodes.Set_Actual(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Actual field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Actual field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Open_Actual(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Open_Actual field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Open_Actual field.

pyGHDL.libghdl.vhdl.nodes.Set_Open_Actual(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Open_Actual field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Open_Actual field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Actual_Conversion(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Actual_Conversion field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Actual_Conversion field.

pyGHDL.libghdl.vhdl.nodes.Set_Actual_Conversion(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Actual_Conversion field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Actual_Conversion field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Formal_Conversion(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Formal_Conversion field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Formal_Conversion field.

pyGHDL.libghdl.vhdl.nodes.Set_Formal_Conversion(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Formal_Conversion field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Formal_Conversion field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Whole_Association_Flag(obj)[source]

This flag is set when the formal is associated in whole (ie, not individually).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Whole_Association_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Whole_Association_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Whole_Association_Flag(obj, value)[source]

This flag is set when the formal is associated in whole (ie, not individually).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Whole_Association_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Whole_Association_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Collapse_Signal_Flag(obj)[source]

This flag is set when the formal signal can be the actual signal. In this case, the formal signal is not created, and the actual is shared. This is the signal collapsing optimisation.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Collapse_Signal_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Collapse_Signal_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Collapse_Signal_Flag(obj, value)[source]

This flag is set when the formal signal can be the actual signal. In this case, the formal signal is not created, and the actual is shared. This is the signal collapsing optimisation.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Collapse_Signal_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Collapse_Signal_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Artificial_Flag(obj)[source]

Set when the node was artificially created, eg by canon. Currently used only by association_element_open.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Artificial_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Artificial_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Artificial_Flag(obj, value)[source]

Set when the node was artificially created, eg by canon. Currently used only by association_element_open.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Artificial_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Artificial_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Open_Flag(obj)[source]

This flag is set for a very short time during the check that no in port is unconnected.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Open_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Open_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Open_Flag(obj, value)[source]

This flag is set for a very short time during the check that no in port is unconnected.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Open_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Open_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_After_Drivers_Flag(obj)[source]

This flag is set by trans_analyze if there is a projected waveform assignment in the process.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the After_Drivers_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s After_Drivers_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_After_Drivers_Flag(obj, value)[source]

This flag is set by trans_analyze if there is a projected waveform assignment in the process.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the After_Drivers_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the After_Drivers_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_We_Value(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the We_Value field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s We_Value field.

pyGHDL.libghdl.vhdl.nodes.Set_We_Value(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the We_Value field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the We_Value field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Time(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Time field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Time field.

pyGHDL.libghdl.vhdl.nodes.Set_Time(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Time field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Time field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Associated_Expr(obj)[source]

Node associated with a choice.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Associated_Expr field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Associated_Expr field.

pyGHDL.libghdl.vhdl.nodes.Set_Associated_Expr(obj, value)[source]

Node associated with a choice.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Associated_Expr field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Associated_Expr field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Associated_Block(obj)[source]

Node associated with a choice.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Associated_Block field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Associated_Block field.

pyGHDL.libghdl.vhdl.nodes.Set_Associated_Block(obj, value)[source]

Node associated with a choice.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Associated_Block field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Associated_Block field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Associated_Chain(obj)[source]

Chain associated with a choice.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Associated_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Associated_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Associated_Chain(obj, value)[source]

Chain associated with a choice.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Associated_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Associated_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Choice_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Choice_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Choice_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Choice_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Choice_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Choice_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Choice_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Choice_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Choice_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Choice_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Choice_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Choice_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Choice_Range(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Choice_Range field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Choice_Range field.

pyGHDL.libghdl.vhdl.nodes.Set_Choice_Range(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Choice_Range field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Choice_Range field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Same_Alternative_Flag(obj)[source]

Set when a choice belongs to the same alternative as the previous one.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Same_Alternative_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Same_Alternative_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Same_Alternative_Flag(obj, value)[source]

Set when a choice belongs to the same alternative as the previous one.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Same_Alternative_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Same_Alternative_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Element_Type_Flag(obj)[source]

For one-dimensional aggregates: the value associated of the type of the element (vs of the type of the aggregate). Always true before vhdl-08.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Element_Type_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Element_Type_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Element_Type_Flag(obj, value)[source]

For one-dimensional aggregates: the value associated of the type of the element (vs of the type of the aggregate). Always true before vhdl-08.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Element_Type_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Element_Type_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Architecture(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Architecture field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Architecture field.

pyGHDL.libghdl.vhdl.nodes.Set_Architecture(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Architecture field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Architecture field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Block_Specification(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Block_Specification field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Block_Specification field.

pyGHDL.libghdl.vhdl.nodes.Set_Block_Specification(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Block_Specification field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Block_Specification field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Prev_Block_Configuration(obj)[source]

Return the link of the previous block_configuration of a block_configuration. This single linked list is used to list all the block_configuration that configuration the same block (which can only be an iterative generate statement). All elements of this list must belong to the same block configuration. The order is not important.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Prev_Block_Configuration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Prev_Block_Configuration field.

pyGHDL.libghdl.vhdl.nodes.Set_Prev_Block_Configuration(obj, value)[source]

Return the link of the previous block_configuration of a block_configuration. This single linked list is used to list all the block_configuration that configuration the same block (which can only be an iterative generate statement). All elements of this list must belong to the same block configuration. The order is not important.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Prev_Block_Configuration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Prev_Block_Configuration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Configuration_Item_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Configuration_Item_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Configuration_Item_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Configuration_Item_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Configuration_Item_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Configuration_Item_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Attribute_Value_Chain(obj)[source]

Chain of attribute values for declared items. To be used with Get/Set_Value_Chain. There is no order, therefore, a new attribute value may be always prepended.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Attribute_Value_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Attribute_Value_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Attribute_Value_Chain(obj, value)[source]

Chain of attribute values for declared items. To be used with Get/Set_Value_Chain. There is no order, therefore, a new attribute value may be always prepended.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Attribute_Value_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Attribute_Value_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Spec_Chain(obj)[source]

Next attribute value in the attribute specification chain (of attribute value). FIXME: should be a Chain.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Spec_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Spec_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Spec_Chain(obj, value)[source]

Next attribute value in the attribute specification chain (of attribute value). FIXME: should be a Chain.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Spec_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Spec_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Value_Chain(obj)[source]

Next attribute value in the parent chain (of attribute value).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Value_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Value_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Value_Chain(obj, value)[source]

Next attribute value in the parent chain (of attribute value).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Value_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Value_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Attribute_Value_Spec_Chain(obj)[source]

Chain of attribute values for attribute specification. To be used with Get/Set_Spec_Chain.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Attribute_Value_Spec_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Attribute_Value_Spec_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Attribute_Value_Spec_Chain(obj, value)[source]

Chain of attribute values for attribute specification. To be used with Get/Set_Spec_Chain.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Attribute_Value_Spec_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Attribute_Value_Spec_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Entity_Name(obj)[source]

The entity name for an architecture or a configuration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Entity_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Entity_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Entity_Name(obj, value)[source]

The entity name for an architecture or a configuration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Entity_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Entity_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Package(obj)[source]

The package declaration corresponding to the body.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Package field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Package field.

pyGHDL.libghdl.vhdl.nodes.Set_Package(obj, value)[source]

The package declaration corresponding to the body.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Package field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Package field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Package_Body(obj)[source]

The package body corresponding to the package declaration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Package_Body field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Package_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Package_Body(obj, value)[source]

The package body corresponding to the package declaration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Package_Body field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Package_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Instance_Package_Body(obj)[source]

The package body corresponding to the package declaration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Instance_Package_Body field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Instance_Package_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Instance_Package_Body(obj, value)[source]

The package body corresponding to the package declaration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Instance_Package_Body field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Instance_Package_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Owned_Instance_Package_Body(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Owned_Instance_Package_Body field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Owned_Instance_Package_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Owned_Instance_Package_Body(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Owned_Instance_Package_Body field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Owned_Instance_Package_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Instance_Subprogram_Body(obj)[source]

The subprogram body corresponding to the subprogram declaration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Instance_Subprogram_Body field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Instance_Subprogram_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Instance_Subprogram_Body(obj, value)[source]

The subprogram body corresponding to the subprogram declaration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Instance_Subprogram_Body field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Instance_Subprogram_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Need_Body(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Need_Body field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Need_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Need_Body(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Need_Body field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Need_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Immediate_Body_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Immediate_Body_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Immediate_Body_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Immediate_Body_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Immediate_Body_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Immediate_Body_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Macro_Expand_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Macro_Expand_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Macro_Expand_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Macro_Expand_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Macro_Expand_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Macro_Expand_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Need_Instance_Bodies(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Need_Instance_Bodies field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Need_Instance_Bodies field.

pyGHDL.libghdl.vhdl.nodes.Set_Need_Instance_Bodies(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Need_Instance_Bodies field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Need_Instance_Bodies field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Hierarchical_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Hierarchical_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Hierarchical_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Hierarchical_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Hierarchical_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Hierarchical_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Vunit_Item_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Vunit_Item_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Vunit_Item_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Vunit_Item_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Vunit_Item_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Vunit_Item_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Bound_Vunit_Chain(obj)[source]

Chain of vunit declarations bound to an entity or an architecture.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Bound_Vunit_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Bound_Vunit_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Bound_Vunit_Chain(obj, value)[source]

Chain of vunit declarations bound to an entity or an architecture.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Bound_Vunit_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Bound_Vunit_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Verification_Block_Configuration(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Verification_Block_Configuration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Verification_Block_Configuration field.

pyGHDL.libghdl.vhdl.nodes.Set_Verification_Block_Configuration(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Verification_Block_Configuration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Verification_Block_Configuration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Block_Configuration(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Block_Configuration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Block_Configuration field.

pyGHDL.libghdl.vhdl.nodes.Set_Block_Configuration(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Block_Configuration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Block_Configuration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Concurrent_Statement_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Concurrent_Statement_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Concurrent_Statement_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Concurrent_Statement_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Concurrent_Statement_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Concurrent_Statement_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Port_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Port_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Port_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Port_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Port_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Port_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Generic_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Generic_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Generic_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Generic_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Generic_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Generic_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Type(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Type(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subtype_Indication(obj)[source]

The subtype indication of a declaration. If several declarations share the same subtype_indication like in:

variable a, b : integer := 5;

then only the first declaration is the owner of the subtype_indication.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subtype_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subtype_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Subtype_Indication(obj, value)[source]

The subtype indication of a declaration. If several declarations share the same subtype_indication like in:

variable a, b : integer := 5;

then only the first declaration is the owner of the subtype_indication.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subtype_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subtype_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Discrete_Range(obj)[source]

Discrete range of an iterator. During analysis, a subtype indication is created from this range.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Discrete_Range field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Discrete_Range field.

pyGHDL.libghdl.vhdl.nodes.Set_Discrete_Range(obj, value)[source]

Discrete range of an iterator. During analysis, a subtype indication is created from this range.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Discrete_Range field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Discrete_Range field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Type_Definition(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Type_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Type_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Type_Definition(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Type_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Type_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subtype_Definition(obj)[source]

The subtype definition associated with the type declaration (if any).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subtype_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subtype_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Subtype_Definition(obj, value)[source]

The subtype definition associated with the type declaration (if any).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subtype_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subtype_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Incomplete_Type_Declaration(obj)[source]

Set if the type declaration completes an incomplete type declaration

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Incomplete_Type_Declaration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Incomplete_Type_Declaration field.

pyGHDL.libghdl.vhdl.nodes.Set_Incomplete_Type_Declaration(obj, value)[source]

Set if the type declaration completes an incomplete type declaration

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Incomplete_Type_Declaration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Incomplete_Type_Declaration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Interface_Type_Subprograms(obj)[source]

Implicit operations of an interface type declaration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Interface_Type_Subprograms field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Interface_Type_Subprograms field.

pyGHDL.libghdl.vhdl.nodes.Set_Interface_Type_Subprograms(obj, value)[source]

Implicit operations of an interface type declaration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Interface_Type_Subprograms field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Interface_Type_Subprograms field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Interface_Type_Definition(obj)[source]

Owner of the interface type definition.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Interface_Type_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Interface_Type_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Interface_Type_Definition(obj, value)[source]

Owner of the interface type definition.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Interface_Type_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Interface_Type_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Nature_Definition(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Nature_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Nature_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Nature_Definition(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Nature_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Nature_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Nature(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Nature field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Nature field.

pyGHDL.libghdl.vhdl.nodes.Set_Nature(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Nature field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Nature field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subnature_Indication(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subnature_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subnature_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Subnature_Indication(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subnature_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subnature_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Reference_Terminal_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Reference_Terminal_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Reference_Terminal_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Reference_Terminal_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Reference_Terminal_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Reference_Terminal_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Mode(obj)[source]

Mode of interfaces or file (v87).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Mode field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Mode field.

pyGHDL.libghdl.vhdl.nodes.Set_Mode(obj, value)[source]

Mode of interfaces or file (v87).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Mode field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Mode field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Guarded_Signal_Flag(obj)[source]

True if the signal is guarded (has a signal kind).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Guarded_Signal_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Guarded_Signal_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Guarded_Signal_Flag(obj, value)[source]

True if the signal is guarded (has a signal kind).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Guarded_Signal_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Guarded_Signal_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Signal_Kind(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Signal_Kind field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Signal_Kind field.

pyGHDL.libghdl.vhdl.nodes.Set_Signal_Kind(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Signal_Kind field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Signal_Kind field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Base_Name(obj)[source]

The base name of a name is the node at the origin of the name. The base name is a declaration (signal, object, constant or interface), a selected_by_all name, an implicit_dereference name.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Base_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Base_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Base_Name(obj, value)[source]

The base name of a name is the node at the origin of the name. The base name is a declaration (signal, object, constant or interface), a selected_by_all name, an implicit_dereference name.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Base_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Base_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Interface_Declaration_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Interface_Declaration_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Interface_Declaration_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Interface_Declaration_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Interface_Declaration_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Interface_Declaration_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Default_Subprogram(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Default_Subprogram field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Default_Subprogram field.

pyGHDL.libghdl.vhdl.nodes.Set_Default_Subprogram(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Default_Subprogram field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Default_Subprogram field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Associated_Subprogram(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Associated_Subprogram field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Associated_Subprogram field.

pyGHDL.libghdl.vhdl.nodes.Set_Associated_Subprogram(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Associated_Subprogram field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Associated_Subprogram field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subprogram_Specification(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subprogram_Specification field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subprogram_Specification field.

pyGHDL.libghdl.vhdl.nodes.Set_Subprogram_Specification(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subprogram_Specification field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subprogram_Specification field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Sequential_Statement_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Sequential_Statement_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Sequential_Statement_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Sequential_Statement_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Sequential_Statement_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Sequential_Statement_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Simultaneous_Statement_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Simultaneous_Statement_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Simultaneous_Statement_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Simultaneous_Statement_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Simultaneous_Statement_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Simultaneous_Statement_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subprogram_Body(obj)[source]

The body of a subprogram (from the subprogram specification). Note that this field is only set when the body has been analyzed (ok, that’s obvious). For subprogram specifications in instantiated package, this field is in general not set because the package specification may be instantiated before the package body is analyzed and there is no tracking of all instantiated packages. So when the package body is analyzed, there is no way to set this field for the subprograms in all instantiated specifications. You could use Get_Subprogram_Body_Origin to extract the body. It uses the Origin link to find the original specification which has this field set.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subprogram_Body field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subprogram_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Subprogram_Body(obj, value)[source]

The body of a subprogram (from the subprogram specification). Note that this field is only set when the body has been analyzed (ok, that’s obvious). For subprogram specifications in instantiated package, this field is in general not set because the package specification may be instantiated before the package body is analyzed and there is no tracking of all instantiated packages. So when the package body is analyzed, there is no way to set this field for the subprograms in all instantiated specifications. You could use Get_Subprogram_Body_Origin to extract the body. It uses the Origin link to find the original specification which has this field set.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subprogram_Body field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subprogram_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Overload_Number(obj)[source]

Several subprograms in a declarative region may have the same identifier. If the overload number is not 0, it is the rank of the subprogram. If the overload number is 0, then the identifier is not overloaded in the declarative region.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Overload_Number field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Overload_Number field.

pyGHDL.libghdl.vhdl.nodes.Set_Overload_Number(obj, value)[source]

Several subprograms in a declarative region may have the same identifier. If the overload number is not 0, it is the rank of the subprogram. If the overload number is 0, then the identifier is not overloaded in the declarative region.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Overload_Number field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Overload_Number field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subprogram_Depth(obj)[source]

Depth of a subprogram. For a subprogram declared immediately within an entity, architecture, package, process, block, generate, the depth is 0. For a subprogram declared immediately within a subprogram of level N, the depth is N + 1. Depth is used with depth of impure objects to check purity rules.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subprogram_Depth field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subprogram_Depth field.

pyGHDL.libghdl.vhdl.nodes.Set_Subprogram_Depth(obj, value)[source]

Depth of a subprogram. For a subprogram declared immediately within an entity, architecture, package, process, block, generate, the depth is 0. For a subprogram declared immediately within a subprogram of level N, the depth is N + 1. Depth is used with depth of impure objects to check purity rules.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subprogram_Depth field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subprogram_Depth field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subprogram_Hash(obj)[source]

Hash of a subprogram profile. This is used to speed up subprogram profile comparison, which is very often used by overload.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subprogram_Hash field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subprogram_Hash field.

pyGHDL.libghdl.vhdl.nodes.Set_Subprogram_Hash(obj, value)[source]

Hash of a subprogram profile. This is used to speed up subprogram profile comparison, which is very often used by overload.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subprogram_Hash field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subprogram_Hash field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Impure_Depth(obj)[source]

Depth of the deepest impure object.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Impure_Depth field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Impure_Depth field.

pyGHDL.libghdl.vhdl.nodes.Set_Impure_Depth(obj, value)[source]

Depth of the deepest impure object.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Impure_Depth field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Impure_Depth field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Return_Type(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Return_Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Return_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Return_Type(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Return_Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Return_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Implicit_Definition(obj)[source]

Code of an implicit subprogram definition.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Implicit_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Implicit_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Implicit_Definition(obj, value)[source]

Code of an implicit subprogram definition.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Implicit_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Implicit_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Uninstantiated_Subprogram_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Uninstantiated_Subprogram_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Uninstantiated_Subprogram_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Uninstantiated_Subprogram_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Uninstantiated_Subprogram_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Uninstantiated_Subprogram_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Default_Value(obj)[source]

Get the default value of an object declaration. Null_iir if no default value. Note that this node can be shared between declarations if they are separated by comma, such as in:

variable a, b : integer := 5; procedure p (a, b : natural := 7);

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Default_Value field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Default_Value field.

pyGHDL.libghdl.vhdl.nodes.Set_Default_Value(obj, value)[source]

Get the default value of an object declaration. Null_iir if no default value. Note that this node can be shared between declarations if they are separated by comma, such as in:

variable a, b : integer := 5; procedure p (a, b : natural := 7);

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Default_Value field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Default_Value field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Mode_View_Indication(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Mode_View_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Mode_View_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Mode_View_Indication(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Mode_View_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Mode_View_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Deferred_Declaration(obj)[source]

The deferred_declaration field points to the deferred constant declaration for a full constant declaration, or is null_iir for a usual or deferred constant declaration. Set only during sem.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Deferred_Declaration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Deferred_Declaration field.

pyGHDL.libghdl.vhdl.nodes.Set_Deferred_Declaration(obj, value)[source]

The deferred_declaration field points to the deferred constant declaration for a full constant declaration, or is null_iir for a usual or deferred constant declaration. Set only during sem.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Deferred_Declaration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Deferred_Declaration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Deferred_Declaration_Flag(obj)[source]

The deferred_declaration_flag must be set if the constant declaration is a deferred_constant declaration. Set only during sem.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Deferred_Declaration_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Deferred_Declaration_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Deferred_Declaration_Flag(obj, value)[source]

The deferred_declaration_flag must be set if the constant declaration is a deferred_constant declaration. Set only during sem.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Deferred_Declaration_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Deferred_Declaration_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Shared_Flag(obj)[source]

If true, the variable is declared shared.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Shared_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Shared_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Shared_Flag(obj, value)[source]

If true, the variable is declared shared.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Shared_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Shared_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Design_Unit(obj)[source]

Get the design unit in which the target is declared. For a library unit, this is to get the design unit node.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Design_Unit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Design_Unit field.

pyGHDL.libghdl.vhdl.nodes.Set_Design_Unit(obj, value)[source]

Get the design unit in which the target is declared. For a library unit, this is to get the design unit node.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Design_Unit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Design_Unit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Block_Statement(obj)[source]

Corresponding block statement for an implicit guard signal.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Block_Statement field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Block_Statement field.

pyGHDL.libghdl.vhdl.nodes.Set_Block_Statement(obj, value)[source]

Corresponding block statement for an implicit guard signal.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Block_Statement field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Block_Statement field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Signal_Driver(obj)[source]

For a non-resolved signal: null_iir if the signal has no driver, or a process/concurrent_statement for which the signal should have a driver. This is used to catch at analyse time unresolved signals with several drivers.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Signal_Driver field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Signal_Driver field.

pyGHDL.libghdl.vhdl.nodes.Set_Signal_Driver(obj, value)[source]

For a non-resolved signal: null_iir if the signal has no driver, or a process/concurrent_statement for which the signal should have a driver. This is used to catch at analyse time unresolved signals with several drivers.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Signal_Driver field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Signal_Driver field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Declaration_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Declaration_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Declaration_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Declaration_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Declaration_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Declaration_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_File_Logical_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the File_Logical_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s File_Logical_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_File_Logical_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the File_Logical_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the File_Logical_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_File_Open_Kind(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the File_Open_Kind field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s File_Open_Kind field.

pyGHDL.libghdl.vhdl.nodes.Set_File_Open_Kind(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the File_Open_Kind field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the File_Open_Kind field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Element_Position(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Element_Position field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Element_Position field.

pyGHDL.libghdl.vhdl.nodes.Set_Element_Position(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Element_Position field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Element_Position field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Use_Clause_Chain(obj)[source]

Selected names of an use_clause are chained.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Use_Clause_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Use_Clause_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Use_Clause_Chain(obj, value)[source]

Selected names of an use_clause are chained.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Use_Clause_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Use_Clause_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Context_Reference_Chain(obj)[source]

Selected names of a context_reference are chained.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Context_Reference_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Context_Reference_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Context_Reference_Chain(obj, value)[source]

Selected names of a context_reference are chained.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Context_Reference_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Context_Reference_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Inherit_Spec_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Inherit_Spec_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Inherit_Spec_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Inherit_Spec_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Inherit_Spec_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Inherit_Spec_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Selected_Name(obj)[source]

Selected name of an use_clause or context_reference

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Selected_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Selected_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Selected_Name(obj, value)[source]

Selected name of an use_clause or context_reference

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Selected_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Selected_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Mode_View_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Mode_View_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Mode_View_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Mode_View_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Mode_View_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Mode_View_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Type_Declarator(obj)[source]

The type declarator which declares the type definition DEF. Can also be a nature declarator for composite nature definition.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Type_Declarator field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Type_Declarator field.

pyGHDL.libghdl.vhdl.nodes.Set_Type_Declarator(obj, value)[source]

The type declarator which declares the type definition DEF. Can also be a nature declarator for composite nature definition.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Type_Declarator field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Type_Declarator field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Complete_Type_Definition(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Complete_Type_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Complete_Type_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Complete_Type_Definition(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Complete_Type_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Complete_Type_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Incomplete_Type_Ref_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Incomplete_Type_Ref_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Incomplete_Type_Ref_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Incomplete_Type_Ref_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Incomplete_Type_Ref_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Incomplete_Type_Ref_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Associated_Type(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Associated_Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Associated_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Associated_Type(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Associated_Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Associated_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Enumeration_Literal_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Enumeration_Literal_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Enumeration_Literal_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Enumeration_Literal_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Enumeration_Literal_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Enumeration_Literal_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Entity_Class_Entry_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Entity_Class_Entry_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Entity_Class_Entry_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Entity_Class_Entry_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Entity_Class_Entry_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Entity_Class_Entry_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Group_Constituent_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Group_Constituent_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Group_Constituent_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Group_Constituent_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Group_Constituent_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Group_Constituent_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Unit_Chain(obj)[source]

Chain of physical type units. The first unit is the primary unit. If you really need the primary unit (and not the chain), you’d better to use Get_Primary_Unit.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Unit_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Unit_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Unit_Chain(obj, value)[source]

Chain of physical type units. The first unit is the primary unit. If you really need the primary unit (and not the chain), you’d better to use Get_Primary_Unit.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Unit_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Unit_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Primary_Unit(obj)[source]

Alias of Get_Unit_Chain. Return the primary unit of a physical type.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Primary_Unit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Primary_Unit field.

pyGHDL.libghdl.vhdl.nodes.Set_Primary_Unit(obj, value)[source]

Alias of Get_Unit_Chain. Return the primary unit of a physical type.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Primary_Unit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Primary_Unit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Identifier(obj)[source]

Get/Set the identifier of a declaration. Can also be used instead of get/set_label.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Identifier field of.

Return type:

TypeVar(NameId, bound= c_int)

Returns:

The node’s Identifier field.

pyGHDL.libghdl.vhdl.nodes.Set_Identifier(obj, value)[source]

Get/Set the identifier of a declaration. Can also be used instead of get/set_label.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Identifier field of.

  • value (TypeVar(NameId, bound= c_int)) – The value to write into the Identifier field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Label(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Label field of.

Return type:

TypeVar(NameId, bound= c_int)

Returns:

The node’s Label field.

pyGHDL.libghdl.vhdl.nodes.Set_Label(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Label field of.

  • value (TypeVar(NameId, bound= c_int)) – The value to write into the Label field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Return_Identifier(obj)[source]

Return a subtype declaration for the return subtype (vhdl-19)

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Return_Identifier field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Return_Identifier field.

pyGHDL.libghdl.vhdl.nodes.Set_Return_Identifier(obj, value)[source]

Return a subtype declaration for the return subtype (vhdl-19)

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Return_Identifier field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Return_Identifier field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Visible_Flag(obj)[source]

Get/Set the visible flag of a declaration. The visible flag is true to make invalid the use of the identifier during its declaration. It is set to false when the identifier is added to the name table, and set to true when the declaration is finished.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Visible_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Visible_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Visible_Flag(obj, value)[source]

Get/Set the visible flag of a declaration. The visible flag is true to make invalid the use of the identifier during its declaration. It is set to false when the identifier is added to the name table, and set to true when the declaration is finished.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Visible_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Visible_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Range_Constraint(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Range_Constraint field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Range_Constraint field.

pyGHDL.libghdl.vhdl.nodes.Set_Range_Constraint(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Range_Constraint field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Range_Constraint field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Direction(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Direction field of.

Return type:

DirectionType

Returns:

The node’s Direction field.

pyGHDL.libghdl.vhdl.nodes.Set_Direction(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Direction field of.

  • value (DirectionType) – The value to write into the Direction field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Left_Limit(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Left_Limit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Left_Limit field.

pyGHDL.libghdl.vhdl.nodes.Set_Left_Limit(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Left_Limit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Left_Limit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Right_Limit(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Right_Limit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Right_Limit field.

pyGHDL.libghdl.vhdl.nodes.Set_Right_Limit(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Right_Limit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Right_Limit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Left_Limit_Expr(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Left_Limit_Expr field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Left_Limit_Expr field.

pyGHDL.libghdl.vhdl.nodes.Set_Left_Limit_Expr(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Left_Limit_Expr field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Left_Limit_Expr field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Right_Limit_Expr(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Right_Limit_Expr field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Right_Limit_Expr field.

pyGHDL.libghdl.vhdl.nodes.Set_Right_Limit_Expr(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Right_Limit_Expr field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Right_Limit_Expr field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Parent_Type(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Parent_Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Parent_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Parent_Type(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Parent_Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Parent_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Simple_Nature(obj)[source]

Only for composite base nature: the simple nature.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Simple_Nature field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Simple_Nature field.

pyGHDL.libghdl.vhdl.nodes.Set_Simple_Nature(obj, value)[source]

Only for composite base nature: the simple nature.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Simple_Nature field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Simple_Nature field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Base_Nature(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Base_Nature field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Base_Nature field.

pyGHDL.libghdl.vhdl.nodes.Set_Base_Nature(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Base_Nature field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Base_Nature field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Resolution_Indication(obj)[source]

Either a resolution function name, an array_element_resolution or a record_resolution

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Resolution_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Resolution_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Resolution_Indication(obj, value)[source]

Either a resolution function name, an array_element_resolution or a record_resolution

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Resolution_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Resolution_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Record_Element_Resolution_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Record_Element_Resolution_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Record_Element_Resolution_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Record_Element_Resolution_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Record_Element_Resolution_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Record_Element_Resolution_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Tolerance(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Tolerance field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Tolerance field.

pyGHDL.libghdl.vhdl.nodes.Set_Tolerance(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Tolerance field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Tolerance field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Plus_Terminal_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Plus_Terminal_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Plus_Terminal_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Plus_Terminal_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Plus_Terminal_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Plus_Terminal_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Minus_Terminal_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Minus_Terminal_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Minus_Terminal_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Minus_Terminal_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Minus_Terminal_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Minus_Terminal_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Plus_Terminal(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Plus_Terminal field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Plus_Terminal field.

pyGHDL.libghdl.vhdl.nodes.Set_Plus_Terminal(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Plus_Terminal field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Plus_Terminal field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Minus_Terminal(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Minus_Terminal field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Minus_Terminal field.

pyGHDL.libghdl.vhdl.nodes.Set_Minus_Terminal(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Minus_Terminal field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Minus_Terminal field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Magnitude_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Magnitude_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Magnitude_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Magnitude_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Magnitude_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Magnitude_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Phase_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Phase_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Phase_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Phase_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Phase_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Phase_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Power_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Power_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Power_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Power_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Power_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Power_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Simultaneous_Left(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Simultaneous_Left field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Simultaneous_Left field.

pyGHDL.libghdl.vhdl.nodes.Set_Simultaneous_Left(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Simultaneous_Left field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Simultaneous_Left field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Simultaneous_Right(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Simultaneous_Right field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Simultaneous_Right field.

pyGHDL.libghdl.vhdl.nodes.Set_Simultaneous_Right(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Simultaneous_Right field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Simultaneous_Right field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Text_File_Flag(obj)[source]

True if ATYPE defines std.textio.text file type.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Text_File_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Text_File_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Text_File_Flag(obj, value)[source]

True if ATYPE defines std.textio.text file type.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Text_File_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Text_File_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Only_Characters_Flag(obj)[source]

True if enumeration type ATYPE has only character literals.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Only_Characters_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Only_Characters_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Only_Characters_Flag(obj, value)[source]

True if enumeration type ATYPE has only character literals.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Only_Characters_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Only_Characters_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Is_Character_Type(obj)[source]

True if enumeration type ATYPE is a character type (at least one literal is a character).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Is_Character_Type field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Is_Character_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Is_Character_Type(obj, value)[source]

True if enumeration type ATYPE is a character type (at least one literal is a character).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Is_Character_Type field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Is_Character_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Nature_Staticness(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Nature_Staticness field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Nature_Staticness field.

pyGHDL.libghdl.vhdl.nodes.Set_Nature_Staticness(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Nature_Staticness field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Nature_Staticness field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Type_Staticness(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Type_Staticness field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Type_Staticness field.

pyGHDL.libghdl.vhdl.nodes.Set_Type_Staticness(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Type_Staticness field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Type_Staticness field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Constraint_State(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Constraint_State field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Constraint_State field.

pyGHDL.libghdl.vhdl.nodes.Set_Constraint_State(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Constraint_State field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Constraint_State field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Index_Subtype_List(obj)[source]

Reference either index_subtype_definition_list of array_type_definition or index_constraint_list of array_subtype_definition. Set only when the index_sutype is constrained (to differentiate with unconstrained index type).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Index_Subtype_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Index_Subtype_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Index_Subtype_List(obj, value)[source]

Reference either index_subtype_definition_list of array_type_definition or index_constraint_list of array_subtype_definition. Set only when the index_sutype is constrained (to differentiate with unconstrained index type).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Index_Subtype_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Index_Subtype_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Index_Subtype_Definition_List(obj)[source]

List of type marks for indexes type of array types.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Index_Subtype_Definition_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Index_Subtype_Definition_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Index_Subtype_Definition_List(obj, value)[source]

List of type marks for indexes type of array types.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Index_Subtype_Definition_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Index_Subtype_Definition_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Element_Subtype_Indication(obj)[source]

The subtype_indication as it appears in a array type declaration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Element_Subtype_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Element_Subtype_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Element_Subtype_Indication(obj, value)[source]

The subtype_indication as it appears in a array type declaration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Element_Subtype_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Element_Subtype_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Element_Subtype(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Element_Subtype field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Element_Subtype field.

pyGHDL.libghdl.vhdl.nodes.Set_Element_Subtype(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Element_Subtype field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Element_Subtype field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Element_Subnature_Indication(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Element_Subnature_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Element_Subnature_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Element_Subnature_Indication(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Element_Subnature_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Element_Subnature_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Element_Subnature(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Element_Subnature field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Element_Subnature field.

pyGHDL.libghdl.vhdl.nodes.Set_Element_Subnature(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Element_Subnature field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Element_Subnature field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Index_Constraint_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Index_Constraint_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Index_Constraint_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Index_Constraint_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Index_Constraint_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Index_Constraint_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Array_Element_Constraint(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Array_Element_Constraint field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Array_Element_Constraint field.

pyGHDL.libghdl.vhdl.nodes.Set_Array_Element_Constraint(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Array_Element_Constraint field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Array_Element_Constraint field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Array_Constraint_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Array_Constraint_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Array_Constraint_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Array_Constraint_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Array_Constraint_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Array_Constraint_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Element_Constraint_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Element_Constraint_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Element_Constraint_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Element_Constraint_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Element_Constraint_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Element_Constraint_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Elements_Declaration_List(obj)[source]

List of elements of a record. For a record_type_definition: Is_Ref is false, as the elements

declaration are owned by the type definition.

For a record_subtype_definition: Is_Ref is false, as new constrained

elements are owned through the Owned_Elements_Chain list.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Elements_Declaration_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Elements_Declaration_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Elements_Declaration_List(obj, value)[source]

List of elements of a record. For a record_type_definition: Is_Ref is false, as the elements

declaration are owned by the type definition.

For a record_subtype_definition: Is_Ref is false, as new constrained

elements are owned through the Owned_Elements_Chain list.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Elements_Declaration_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Elements_Declaration_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Elements_Definition_Chain(obj)[source]

For mode view elements.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Elements_Definition_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Elements_Definition_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Elements_Definition_Chain(obj, value)[source]

For mode view elements.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Elements_Definition_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Elements_Definition_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Elements_Definition_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Elements_Definition_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Elements_Definition_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Elements_Definition_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Elements_Definition_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Elements_Definition_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Owned_Elements_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Owned_Elements_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Owned_Elements_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Owned_Elements_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Owned_Elements_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Owned_Elements_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Designated_Type(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Designated_Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Designated_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Designated_Type(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Designated_Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Designated_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Designated_Subtype_Indication(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Designated_Subtype_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Designated_Subtype_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Designated_Subtype_Indication(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Designated_Subtype_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Designated_Subtype_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Index_List(obj)[source]

List of indexes for indexed name.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Index_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Index_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Index_List(obj, value)[source]

List of indexes for indexed name.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Index_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Index_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Reference(obj)[source]

The terminal declaration for the reference (ground) of a nature

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Reference field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Reference field.

pyGHDL.libghdl.vhdl.nodes.Set_Reference(obj, value)[source]

The terminal declaration for the reference (ground) of a nature

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Reference field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Reference field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Nature_Declarator(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Nature_Declarator field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Nature_Declarator field.

pyGHDL.libghdl.vhdl.nodes.Set_Nature_Declarator(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Nature_Declarator field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Nature_Declarator field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Across_Type_Mark(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Across_Type_Mark field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Across_Type_Mark field.

pyGHDL.libghdl.vhdl.nodes.Set_Across_Type_Mark(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Across_Type_Mark field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Across_Type_Mark field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Through_Type_Mark(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Through_Type_Mark field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Through_Type_Mark field.

pyGHDL.libghdl.vhdl.nodes.Set_Through_Type_Mark(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Through_Type_Mark field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Through_Type_Mark field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Across_Type_Definition(obj)[source]

For array and record nature: the owner of the across type.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Across_Type_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Across_Type_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Across_Type_Definition(obj, value)[source]

For array and record nature: the owner of the across type.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Across_Type_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Across_Type_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Through_Type_Definition(obj)[source]

For array and record nature: the owner of the through type.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Through_Type_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Through_Type_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Through_Type_Definition(obj, value)[source]

For array and record nature: the owner of the through type.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Through_Type_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Through_Type_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Across_Type(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Across_Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Across_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Across_Type(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Across_Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Across_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Through_Type(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Through_Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Through_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Through_Type(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Through_Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Through_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Target(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Target field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Target field.

pyGHDL.libghdl.vhdl.nodes.Set_Target(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Target field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Target field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Waveform_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Waveform_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Waveform_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Waveform_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Waveform_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Waveform_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Guard(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Guard field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Guard field.

pyGHDL.libghdl.vhdl.nodes.Set_Guard(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Guard field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Guard field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Delay_Mechanism(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Delay_Mechanism field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Delay_Mechanism field.

pyGHDL.libghdl.vhdl.nodes.Set_Delay_Mechanism(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Delay_Mechanism field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Delay_Mechanism field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Reject_Time_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Reject_Time_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Reject_Time_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Reject_Time_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Reject_Time_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Reject_Time_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Force_Mode(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Force_Mode field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Force_Mode field.

pyGHDL.libghdl.vhdl.nodes.Set_Force_Mode(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Force_Mode field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Force_Mode field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Force_Mode(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Force_Mode field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Force_Mode field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Force_Mode(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Force_Mode field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Force_Mode field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Sensitivity_List(obj)[source]

The Is_Ref flag is set for extracted sensitivity lists.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Sensitivity_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Sensitivity_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Sensitivity_List(obj, value)[source]

The Is_Ref flag is set for extracted sensitivity lists.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Sensitivity_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Sensitivity_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Process_Origin(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Process_Origin field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Process_Origin field.

pyGHDL.libghdl.vhdl.nodes.Set_Process_Origin(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Process_Origin field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Process_Origin field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Package_Origin(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Package_Origin field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Package_Origin field.

pyGHDL.libghdl.vhdl.nodes.Set_Package_Origin(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Package_Origin field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Package_Origin field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Condition_Clause(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Condition_Clause field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Condition_Clause field.

pyGHDL.libghdl.vhdl.nodes.Set_Condition_Clause(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Condition_Clause field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Condition_Clause field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Break_Element(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Break_Element field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Break_Element field.

pyGHDL.libghdl.vhdl.nodes.Set_Break_Element(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Break_Element field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Break_Element field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Selector_Quantity(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Selector_Quantity field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Selector_Quantity field.

pyGHDL.libghdl.vhdl.nodes.Set_Selector_Quantity(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Selector_Quantity field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Selector_Quantity field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Break_Quantity(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Break_Quantity field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Break_Quantity field.

pyGHDL.libghdl.vhdl.nodes.Set_Break_Quantity(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Break_Quantity field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Break_Quantity field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Timeout_Clause(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Timeout_Clause field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Timeout_Clause field.

pyGHDL.libghdl.vhdl.nodes.Set_Timeout_Clause(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Timeout_Clause field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Timeout_Clause field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Postponed_Flag(obj)[source]

If set, the concurrent statement is postponed.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Postponed_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Postponed_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Postponed_Flag(obj, value)[source]

If set, the concurrent statement is postponed.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Postponed_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Postponed_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Callees_List(obj)[source]

Returns the list of subprogram called in this subprogram or process. Note: implicit function (such as implicit operators) are omitted from this list, since the purpose of this list is to correctly set flags for side effects (purity_state, wait_state). Can return null_iir if there is no subprogram called.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Callees_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Callees_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Callees_List(obj, value)[source]

Returns the list of subprogram called in this subprogram or process. Note: implicit function (such as implicit operators) are omitted from this list, since the purpose of this list is to correctly set flags for side effects (purity_state, wait_state). Can return null_iir if there is no subprogram called.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Callees_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Callees_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Passive_Flag(obj)[source]

Get/Set the passive flag of a process.

TRUE if the process must be passive. FALSE if the process may be not passive.

For a procedure declaration, set if it is passive.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Passive_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Passive_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Passive_Flag(obj, value)[source]

Get/Set the passive flag of a process.

TRUE if the process must be passive. FALSE if the process may be not passive.

For a procedure declaration, set if it is passive.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Passive_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Passive_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Resolution_Function_Flag(obj)[source]

True if the function is used as a resolution function.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Resolution_Function_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Resolution_Function_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Resolution_Function_Flag(obj, value)[source]

True if the function is used as a resolution function.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Resolution_Function_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Resolution_Function_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Wait_State(obj)[source]

Get/Set the wait state of the current subprogram or process. TRUE if it contains a wait statement, either directly or

indirectly.

FALSE if it doesn’t contain a wait statement. UNKNOWN if the wait status is not yet known.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Wait_State field of.

Return type:

TriStateType

Returns:

The node’s Wait_State field.

pyGHDL.libghdl.vhdl.nodes.Set_Wait_State(obj, value)[source]

Get/Set the wait state of the current subprogram or process. TRUE if it contains a wait statement, either directly or

indirectly.

FALSE if it doesn’t contain a wait statement. UNKNOWN if the wait status is not yet known.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Wait_State field of.

  • value (TriStateType) – The value to write into the Wait_State field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_All_Sensitized_State(obj)[source]

Get/Set whether the subprogram may be called by a sensitized process whose sensitivity list is ALL. FALSE if declared in a package unit and reads a signal that is not

one of its interface, or if it calls such a subprogram.

TRUE if it doesn’t call a subprogram whose state is False and

either doesn’t read a signal or declared within an entity or architecture.

UNKNOWN if the status is not yet known.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the All_Sensitized_State field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s All_Sensitized_State field.

pyGHDL.libghdl.vhdl.nodes.Set_All_Sensitized_State(obj, value)[source]

Get/Set whether the subprogram may be called by a sensitized process whose sensitivity list is ALL. FALSE if declared in a package unit and reads a signal that is not

one of its interface, or if it calls such a subprogram.

TRUE if it doesn’t call a subprogram whose state is False and

either doesn’t read a signal or declared within an entity or architecture.

UNKNOWN if the status is not yet known.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the All_Sensitized_State field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the All_Sensitized_State field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Seen_Flag(obj)[source]

Get/Set the seen flag. Used when the graph of callees is walked, to avoid infinite loops, since the graph is not a DAG (there may be cycles).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Seen_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Seen_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Seen_Flag(obj, value)[source]

Get/Set the seen flag. Used when the graph of callees is walked, to avoid infinite loops, since the graph is not a DAG (there may be cycles).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Seen_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Seen_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Pure_Flag(obj)[source]

Get/Set the pure flag of a function. TRUE if the function is declared pure. FALSE if the function is declared impure.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Pure_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Pure_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Pure_Flag(obj, value)[source]

Get/Set the pure flag of a function. TRUE if the function is declared pure. FALSE if the function is declared impure.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Pure_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Pure_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Foreign_Flag(obj)[source]

Get/Set the foreign flag of a declaration. TRUE if the declaration was decorated with the std.foreign attribute.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Foreign_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Foreign_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Foreign_Flag(obj, value)[source]

Get/Set the foreign flag of a declaration. TRUE if the declaration was decorated with the std.foreign attribute.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Foreign_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Foreign_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Resolved_Flag(obj)[source]

Get/Set the resolved flag of a subtype definition. A subtype definition may be resolved either because a resolution_indication is present in the subtype_indication, or because all elements type are resolved.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Resolved_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Resolved_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Resolved_Flag(obj, value)[source]

Get/Set the resolved flag of a subtype definition. A subtype definition may be resolved either because a resolution_indication is present in the subtype_indication, or because all elements type are resolved.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Resolved_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Resolved_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Signal_Type_Flag(obj)[source]

Get/Set the signal_type flag of a type/subtype definition. This flags indicates whether the type can be used as a signal type. Access types, file types and composite types whose a sub-element is an access type cannot be used as a signal type.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Signal_Type_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Signal_Type_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Signal_Type_Flag(obj, value)[source]

Get/Set the signal_type flag of a type/subtype definition. This flags indicates whether the type can be used as a signal type. Access types, file types and composite types whose a sub-element is an access type cannot be used as a signal type.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Signal_Type_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Signal_Type_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Signal_Flag(obj)[source]

True if ATYPE is used to declare a signal or to handle a signal

(such as slice or aliases).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Signal_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Signal_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Signal_Flag(obj, value)[source]

True if ATYPE is used to declare a signal or to handle a signal

(such as slice or aliases).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Signal_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Signal_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Purity_State(obj)[source]

Get/Set the purity status of a subprogram.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Purity_State field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Purity_State field.

pyGHDL.libghdl.vhdl.nodes.Set_Purity_State(obj, value)[source]

Get/Set the purity status of a subprogram.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Purity_State field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Purity_State field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Elab_Flag(obj)[source]

Set during binding when DESIGN is added in a list of file to bind.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Elab_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Elab_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Elab_Flag(obj, value)[source]

Set during binding when DESIGN is added in a list of file to bind.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Elab_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Elab_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Vendor_Library_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Vendor_Library_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Vendor_Library_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Vendor_Library_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Vendor_Library_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Vendor_Library_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Configuration_Mark_Flag(obj)[source]

Used only by configuration to mark a design unit as already inserted in the list of units. Used to avoid double insertion.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Configuration_Mark_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Configuration_Mark_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Configuration_Mark_Flag(obj, value)[source]

Used only by configuration to mark a design unit as already inserted in the list of units. Used to avoid double insertion.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Configuration_Mark_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Configuration_Mark_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Configuration_Done_Flag(obj)[source]

Used only by configuration to flag units completely handled. Used to detect recursion.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Configuration_Done_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Configuration_Done_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Configuration_Done_Flag(obj, value)[source]

Used only by configuration to flag units completely handled. Used to detect recursion.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Configuration_Done_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Configuration_Done_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Index_Constraint_Flag(obj)[source]

Set on an array_subtype if there is an index constraint. If not set, the subtype is unconstrained.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Index_Constraint_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Index_Constraint_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Index_Constraint_Flag(obj, value)[source]

Set on an array_subtype if there is an index constraint. If not set, the subtype is unconstrained.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Index_Constraint_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Index_Constraint_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Hide_Implicit_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Hide_Implicit_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Hide_Implicit_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Hide_Implicit_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Hide_Implicit_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Hide_Implicit_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Assertion_Condition(obj)[source]

Condition of an assertion.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Assertion_Condition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Assertion_Condition field.

pyGHDL.libghdl.vhdl.nodes.Set_Assertion_Condition(obj, value)[source]

Condition of an assertion.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Assertion_Condition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Assertion_Condition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Report_Expression(obj)[source]

Report expression of an assertion or report statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Report_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Report_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Report_Expression(obj, value)[source]

Report expression of an assertion or report statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Report_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Report_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Severity_Expression(obj)[source]

Severity expression of an assertion or report statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Severity_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Severity_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Severity_Expression(obj, value)[source]

Severity expression of an assertion or report statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Severity_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Severity_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Instantiated_Unit(obj)[source]

Instantiated unit of a component instantiation statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Instantiated_Unit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Instantiated_Unit field.

pyGHDL.libghdl.vhdl.nodes.Set_Instantiated_Unit(obj, value)[source]

Instantiated unit of a component instantiation statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Instantiated_Unit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Instantiated_Unit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Instantiated_Header(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Instantiated_Header field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Instantiated_Header field.

pyGHDL.libghdl.vhdl.nodes.Set_Instantiated_Header(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Instantiated_Header field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Instantiated_Header field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Generic_Map_Aspect_Chain(obj)[source]

Generic map aspect list.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Generic_Map_Aspect_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Generic_Map_Aspect_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Generic_Map_Aspect_Chain(obj, value)[source]

Generic map aspect list.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Generic_Map_Aspect_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Generic_Map_Aspect_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Port_Map_Aspect_Chain(obj)[source]

Port map aspect list.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Port_Map_Aspect_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Port_Map_Aspect_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Port_Map_Aspect_Chain(obj, value)[source]

Port map aspect list.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Port_Map_Aspect_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Port_Map_Aspect_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Configuration_Name(obj)[source]

Configuration of an entity_aspect_configuration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Configuration_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Configuration_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Configuration_Name(obj, value)[source]

Configuration of an entity_aspect_configuration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Configuration_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Configuration_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Component_Configuration(obj)[source]

Component configuration for a component_instantiation_statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Component_Configuration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Component_Configuration field.

pyGHDL.libghdl.vhdl.nodes.Set_Component_Configuration(obj, value)[source]

Component configuration for a component_instantiation_statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Component_Configuration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Component_Configuration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Configuration_Specification(obj)[source]

Configuration specification for a component_instantiation_statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Configuration_Specification field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Configuration_Specification field.

pyGHDL.libghdl.vhdl.nodes.Set_Configuration_Specification(obj, value)[source]

Configuration specification for a component_instantiation_statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Configuration_Specification field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Configuration_Specification field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Default_Binding_Indication(obj)[source]

Set/Get the default binding indication of a configuration specification or a component configuration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Default_Binding_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Default_Binding_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Default_Binding_Indication(obj, value)[source]

Set/Get the default binding indication of a configuration specification or a component configuration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Default_Binding_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Default_Binding_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Default_Configuration_Declaration(obj)[source]

Set/Get the default configuration of an architecture.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Default_Configuration_Declaration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Default_Configuration_Declaration field.

pyGHDL.libghdl.vhdl.nodes.Set_Default_Configuration_Declaration(obj, value)[source]

Set/Get the default configuration of an architecture.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Default_Configuration_Declaration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Default_Configuration_Declaration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Expression(obj)[source]

Expression for an various nodes.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Expression(obj, value)[source]

Expression for an various nodes.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Conditional_Expression_Chain(obj)[source]

A conditional expression. Node kind is a Iir_Kind_Conditional_Expression.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Conditional_Expression_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Conditional_Expression_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Conditional_Expression_Chain(obj, value)[source]

A conditional expression. Node kind is a Iir_Kind_Conditional_Expression.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Conditional_Expression_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Conditional_Expression_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Allocator_Designated_Type(obj)[source]

Set to the designated type (either the type of the expression or the subtype) when the expression is analyzed.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Allocator_Designated_Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Allocator_Designated_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Allocator_Designated_Type(obj, value)[source]

Set to the designated type (either the type of the expression or the subtype) when the expression is analyzed.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Allocator_Designated_Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Allocator_Designated_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Selected_Waveform_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Selected_Waveform_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Selected_Waveform_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Selected_Waveform_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Selected_Waveform_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Selected_Waveform_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Selected_Expressions_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Selected_Expressions_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Selected_Expressions_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Selected_Expressions_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Selected_Expressions_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Selected_Expressions_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Conditional_Waveform_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Conditional_Waveform_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Conditional_Waveform_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Conditional_Waveform_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Conditional_Waveform_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Conditional_Waveform_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Guard_Expression(obj)[source]

Expression defining the value of the implicit guard signal.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Guard_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Guard_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Guard_Expression(obj, value)[source]

Expression defining the value of the implicit guard signal.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Guard_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Guard_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Guard_Decl(obj)[source]

The declaration (if any) of the implicit guard signal of a block statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Guard_Decl field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Guard_Decl field.

pyGHDL.libghdl.vhdl.nodes.Set_Guard_Decl(obj, value)[source]

The declaration (if any) of the implicit guard signal of a block statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Guard_Decl field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Guard_Decl field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Guard_Sensitivity_List(obj)[source]

Sensitivity list for the implicit guard signal.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Guard_Sensitivity_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Guard_Sensitivity_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Guard_Sensitivity_List(obj, value)[source]

Sensitivity list for the implicit guard signal.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Guard_Sensitivity_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Guard_Sensitivity_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Attribute_Implicit_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Attribute_Implicit_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Attribute_Implicit_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Attribute_Implicit_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Attribute_Implicit_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Attribute_Implicit_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Block_Block_Configuration(obj)[source]

Block_Configuration that applies to this block statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Block_Block_Configuration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Block_Block_Configuration field.

pyGHDL.libghdl.vhdl.nodes.Set_Block_Block_Configuration(obj, value)[source]

Block_Configuration that applies to this block statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Block_Block_Configuration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Block_Block_Configuration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Package_Header(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Package_Header field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Package_Header field.

pyGHDL.libghdl.vhdl.nodes.Set_Package_Header(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Package_Header field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Package_Header field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Block_Header(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Block_Header field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Block_Header field.

pyGHDL.libghdl.vhdl.nodes.Set_Block_Header(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Block_Header field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Block_Header field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Uninstantiated_Package_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Uninstantiated_Package_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Uninstantiated_Package_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Uninstantiated_Package_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Uninstantiated_Package_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Uninstantiated_Package_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Uninstantiated_Package_Decl(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Uninstantiated_Package_Decl field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Uninstantiated_Package_Decl field.

pyGHDL.libghdl.vhdl.nodes.Set_Uninstantiated_Package_Decl(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Uninstantiated_Package_Decl field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Uninstantiated_Package_Decl field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Associated_Package(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Associated_Package field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Associated_Package field.

pyGHDL.libghdl.vhdl.nodes.Set_Associated_Package(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Associated_Package field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Associated_Package field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Instance_Source_File(obj)[source]

The created pseudo-file for relocating the instantiated nodes (generics and declarations).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Instance_Source_File field of.

Return type:

TypeVar(SourceFileEntry, bound= c_uint)

Returns:

The node’s Instance_Source_File field.

pyGHDL.libghdl.vhdl.nodes.Set_Instance_Source_File(obj, value)[source]

The created pseudo-file for relocating the instantiated nodes (generics and declarations).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Instance_Source_File field of.

  • value (TypeVar(SourceFileEntry, bound= c_uint)) – The value to write into the Instance_Source_File field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Generate_Block_Configuration(obj)[source]

Get/Set the block_configuration (there may be several block_configuration through the use of prev_configuration singly linked list) that apply to this generate statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Generate_Block_Configuration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Generate_Block_Configuration field.

pyGHDL.libghdl.vhdl.nodes.Set_Generate_Block_Configuration(obj, value)[source]

Get/Set the block_configuration (there may be several block_configuration through the use of prev_configuration singly linked list) that apply to this generate statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Generate_Block_Configuration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Generate_Block_Configuration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Generate_Statement_Body(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Generate_Statement_Body field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Generate_Statement_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Generate_Statement_Body(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Generate_Statement_Body field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Generate_Statement_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Alternative_Label(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Alternative_Label field of.

Return type:

TypeVar(NameId, bound= c_int)

Returns:

The node’s Alternative_Label field.

pyGHDL.libghdl.vhdl.nodes.Set_Alternative_Label(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Alternative_Label field of.

  • value (TypeVar(NameId, bound= c_int)) – The value to write into the Alternative_Label field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Generate_Else_Clause(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Generate_Else_Clause field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Generate_Else_Clause field.

pyGHDL.libghdl.vhdl.nodes.Set_Generate_Else_Clause(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Generate_Else_Clause field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Generate_Else_Clause field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Condition(obj)[source]

Condition of a conditional_waveform, if_statement, elsif, while_loop_statement, next_statement or exit_statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Condition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Condition field.

pyGHDL.libghdl.vhdl.nodes.Set_Condition(obj, value)[source]

Condition of a conditional_waveform, if_statement, elsif, while_loop_statement, next_statement or exit_statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Condition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Condition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Else_Clause(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Else_Clause field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Else_Clause field.

pyGHDL.libghdl.vhdl.nodes.Set_Else_Clause(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Else_Clause field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Else_Clause field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Parameter_Specification(obj)[source]

Iterator of a for_loop_statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Parameter_Specification field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Parameter_Specification field.

pyGHDL.libghdl.vhdl.nodes.Set_Parameter_Specification(obj, value)[source]

Iterator of a for_loop_statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Parameter_Specification field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Parameter_Specification field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Parent(obj)[source]

Get/Set the statement in which TARGET appears. This is used to check if next/exit is in a loop.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Parent field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Parent field.

pyGHDL.libghdl.vhdl.nodes.Set_Parent(obj, value)[source]

Get/Set the statement in which TARGET appears. This is used to check if next/exit is in a loop.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Parent field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Parent field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Loop_Label(obj)[source]

Loop label for an exit_statement or next_statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Loop_Label field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Loop_Label field.

pyGHDL.libghdl.vhdl.nodes.Set_Loop_Label(obj, value)[source]

Loop label for an exit_statement or next_statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Loop_Label field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Loop_Label field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Exit_Flag(obj)[source]

True if there is an exit statement targeting this loop statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Exit_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Exit_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Exit_Flag(obj, value)[source]

True if there is an exit statement targeting this loop statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Exit_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Exit_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Next_Flag(obj)[source]

True if there is a next statement targeting this loop statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Next_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Next_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Next_Flag(obj, value)[source]

True if there is a next statement targeting this loop statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Next_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Next_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Component_Name(obj)[source]

Component name for a component_configuration or a configuration_specification.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Component_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Component_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Component_Name(obj, value)[source]

Component name for a component_configuration or a configuration_specification.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Component_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Component_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Instantiation_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Instantiation_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Instantiation_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Instantiation_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Instantiation_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Instantiation_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Entity_Aspect(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Entity_Aspect field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Entity_Aspect field.

pyGHDL.libghdl.vhdl.nodes.Set_Entity_Aspect(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Entity_Aspect field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Entity_Aspect field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Default_Entity_Aspect(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Default_Entity_Aspect field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Default_Entity_Aspect field.

pyGHDL.libghdl.vhdl.nodes.Set_Default_Entity_Aspect(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Default_Entity_Aspect field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Default_Entity_Aspect field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Binding_Indication(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Binding_Indication field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Binding_Indication field.

pyGHDL.libghdl.vhdl.nodes.Set_Binding_Indication(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Binding_Indication field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Binding_Indication field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Named_Entity(obj)[source]

The named entity designated by a name.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Named_Entity field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Named_Entity field.

pyGHDL.libghdl.vhdl.nodes.Set_Named_Entity(obj, value)[source]

The named entity designated by a name.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Named_Entity field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Named_Entity field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Referenced_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Referenced_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Referenced_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Referenced_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Referenced_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Referenced_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Expr_Staticness(obj)[source]

Expression staticness, defined by rules of LRM 7.4

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Expr_Staticness field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Expr_Staticness field.

pyGHDL.libghdl.vhdl.nodes.Set_Expr_Staticness(obj, value)[source]

Expression staticness, defined by rules of LRM 7.4

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Expr_Staticness field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Expr_Staticness field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Scalar_Size(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Scalar_Size field of.

Return type:

ScalarSize

Returns:

The node’s Scalar_Size field.

pyGHDL.libghdl.vhdl.nodes.Set_Scalar_Size(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Scalar_Size field of.

  • value (ScalarSize) – The value to write into the Scalar_Size field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Error_Origin(obj)[source]

Node which couldn’t be correctly analyzed.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Error_Origin field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Error_Origin field.

pyGHDL.libghdl.vhdl.nodes.Set_Error_Origin(obj, value)[source]

Node which couldn’t be correctly analyzed.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Error_Origin field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Error_Origin field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Operand(obj)[source]

Operand of a monadic operator.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Operand field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Operand field.

pyGHDL.libghdl.vhdl.nodes.Set_Operand(obj, value)[source]

Operand of a monadic operator.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Operand field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Operand field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Left(obj)[source]

Left operand of a dyadic operator.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Left field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Left field.

pyGHDL.libghdl.vhdl.nodes.Set_Left(obj, value)[source]

Left operand of a dyadic operator.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Left field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Left field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Right(obj)[source]

Right operand of a dyadic operator.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Right field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Right field.

pyGHDL.libghdl.vhdl.nodes.Set_Right(obj, value)[source]

Right operand of a dyadic operator.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Right field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Right field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Unit_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Unit_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Unit_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Unit_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Unit_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Unit_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Group_Template_Name(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Group_Template_Name field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Group_Template_Name field.

pyGHDL.libghdl.vhdl.nodes.Set_Group_Template_Name(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Group_Template_Name field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Group_Template_Name field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Name_Staticness(obj)[source]

Staticness of a name, according to rules of LRM 6.1

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Name_Staticness field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Name_Staticness field.

pyGHDL.libghdl.vhdl.nodes.Set_Name_Staticness(obj, value)[source]

Staticness of a name, according to rules of LRM 6.1

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Name_Staticness field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Name_Staticness field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Prefix(obj)[source]

Prefix of a name.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Prefix field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Prefix field.

pyGHDL.libghdl.vhdl.nodes.Set_Prefix(obj, value)[source]

Prefix of a name.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Prefix field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Prefix field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Signature_Prefix(obj)[source]

Prefix of a name signature

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Signature_Prefix field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Signature_Prefix field.

pyGHDL.libghdl.vhdl.nodes.Set_Signature_Prefix(obj, value)[source]

Prefix of a name signature

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Signature_Prefix field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Signature_Prefix field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_External_Pathname(obj)[source]

External pathname for an external name.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the External_Pathname field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s External_Pathname field.

pyGHDL.libghdl.vhdl.nodes.Set_External_Pathname(obj, value)[source]

External pathname for an external name.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the External_Pathname field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the External_Pathname field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Pathname_Suffix(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Pathname_Suffix field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Pathname_Suffix field.

pyGHDL.libghdl.vhdl.nodes.Set_Pathname_Suffix(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Pathname_Suffix field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Pathname_Suffix field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Pathname_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Pathname_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Pathname_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Pathname_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Pathname_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Pathname_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_In_Formal_Flag(obj)[source]

True if the name appears in a formal_part. In that case, some checks must be disabled (eg: the expression of a type conversion can be a write-only interface).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the In_Formal_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s In_Formal_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_In_Formal_Flag(obj, value)[source]

True if the name appears in a formal_part. In that case, some checks must be disabled (eg: the expression of a type conversion can be a write-only interface).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the In_Formal_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the In_Formal_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Inertial_Flag(obj)[source]

True iff the association is an internal association.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Inertial_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Inertial_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Inertial_Flag(obj, value)[source]

True iff the association is an internal association.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Inertial_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Inertial_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Slice_Subtype(obj)[source]

The subtype of a slice. Contrary to the Type field, this is not a reference.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Slice_Subtype field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Slice_Subtype field.

pyGHDL.libghdl.vhdl.nodes.Set_Slice_Subtype(obj, value)[source]

The subtype of a slice. Contrary to the Type field, this is not a reference.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Slice_Subtype field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Slice_Subtype field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Suffix(obj)[source]

Suffix of a slice.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Suffix field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Suffix field.

pyGHDL.libghdl.vhdl.nodes.Set_Suffix(obj, value)[source]

Suffix of a slice.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Suffix field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Suffix field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Index_Subtype(obj)[source]

Set the designated index subtype of an array attribute.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Index_Subtype field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Index_Subtype field.

pyGHDL.libghdl.vhdl.nodes.Set_Index_Subtype(obj, value)[source]

Set the designated index subtype of an array attribute.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Index_Subtype field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Index_Subtype field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Parameter(obj)[source]

Parameter of an attribute.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Parameter field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Parameter field.

pyGHDL.libghdl.vhdl.nodes.Set_Parameter(obj, value)[source]

Parameter of an attribute.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Parameter field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Parameter field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Parameter_2(obj)[source]

Second parameter of an attribute (for AMS VHDL).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Parameter_2 field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Parameter_2 field.

pyGHDL.libghdl.vhdl.nodes.Set_Parameter_2(obj, value)[source]

Second parameter of an attribute (for AMS VHDL).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Parameter_2 field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Parameter_2 field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Parameter_3(obj)[source]

Third parameter of an attribute (for AMS VHDL).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Parameter_3 field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Parameter_3 field.

pyGHDL.libghdl.vhdl.nodes.Set_Parameter_3(obj, value)[source]

Third parameter of an attribute (for AMS VHDL).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Parameter_3 field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Parameter_3 field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Parameter_4(obj)[source]

Fourth parameter of an attribute (for AMS VHDL).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Parameter_4 field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Parameter_4 field.

pyGHDL.libghdl.vhdl.nodes.Set_Parameter_4(obj, value)[source]

Fourth parameter of an attribute (for AMS VHDL).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Parameter_4 field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Parameter_4 field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Attr_Chain(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Attr_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Attr_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Attr_Chain(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Attr_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Attr_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Actual_Type(obj)[source]

Type of the actual for an association by individual.

Unless the formal is an unconstrained array type, this is the same as the formal type.

Subtype indication for a type association.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Actual_Type field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Actual_Type field.

pyGHDL.libghdl.vhdl.nodes.Set_Actual_Type(obj, value)[source]

Type of the actual for an association by individual.

Unless the formal is an unconstrained array type, this is the same as the formal type.

Subtype indication for a type association.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Actual_Type field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Actual_Type field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Actual_Type_Definition(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Actual_Type_Definition field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Actual_Type_Definition field.

pyGHDL.libghdl.vhdl.nodes.Set_Actual_Type_Definition(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Actual_Type_Definition field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Actual_Type_Definition field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Association_Chain(obj)[source]

List of individual associations for association_element_by_individual. Associations for parenthesis_name.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Association_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Association_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Association_Chain(obj, value)[source]

List of individual associations for association_element_by_individual. Associations for parenthesis_name.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Association_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Association_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Individual_Association_Chain(obj)[source]

List of choices for association_element_by_individual.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Individual_Association_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Individual_Association_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Individual_Association_Chain(obj, value)[source]

List of choices for association_element_by_individual.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Individual_Association_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Individual_Association_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subprogram_Association_Chain(obj)[source]

Chain of implicit subprogram associations for a type association.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subprogram_Association_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subprogram_Association_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Subprogram_Association_Chain(obj, value)[source]

Chain of implicit subprogram associations for a type association.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subprogram_Association_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subprogram_Association_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Aggregate_Info(obj)[source]

Get/Set info for the aggregate. There is one aggregate_info for for each dimension.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Aggregate_Info field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Aggregate_Info field.

pyGHDL.libghdl.vhdl.nodes.Set_Aggregate_Info(obj, value)[source]

Get/Set info for the aggregate. There is one aggregate_info for for each dimension.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Aggregate_Info field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Aggregate_Info field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Sub_Aggregate_Info(obj)[source]

Get/Set the info node for the next dimension.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Sub_Aggregate_Info field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Sub_Aggregate_Info field.

pyGHDL.libghdl.vhdl.nodes.Set_Sub_Aggregate_Info(obj, value)[source]

Get/Set the info node for the next dimension.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Sub_Aggregate_Info field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Sub_Aggregate_Info field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Aggr_Dynamic_Flag(obj)[source]

TRUE when the length of the aggregate is not locally static.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Aggr_Dynamic_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Aggr_Dynamic_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Aggr_Dynamic_Flag(obj, value)[source]

TRUE when the length of the aggregate is not locally static.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Aggr_Dynamic_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Aggr_Dynamic_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Aggr_Min_Length(obj)[source]

Get/Set the minimum number of elements for the lowest dimension of the aggregate or for the current dimension of a sub-aggregate. The real number of elements may be greater than this number if there is an ‘other’ choice.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Aggr_Min_Length field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Aggr_Min_Length field.

pyGHDL.libghdl.vhdl.nodes.Set_Aggr_Min_Length(obj, value)[source]

Get/Set the minimum number of elements for the lowest dimension of the aggregate or for the current dimension of a sub-aggregate. The real number of elements may be greater than this number if there is an ‘other’ choice.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Aggr_Min_Length field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Aggr_Min_Length field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Aggr_Low_Limit(obj)[source]

Highest index choice, if any.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Aggr_Low_Limit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Aggr_Low_Limit field.

pyGHDL.libghdl.vhdl.nodes.Set_Aggr_Low_Limit(obj, value)[source]

Highest index choice, if any.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Aggr_Low_Limit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Aggr_Low_Limit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Aggr_High_Limit(obj)[source]

Highest index choice, if any.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Aggr_High_Limit field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Aggr_High_Limit field.

pyGHDL.libghdl.vhdl.nodes.Set_Aggr_High_Limit(obj, value)[source]

Highest index choice, if any.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Aggr_High_Limit field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Aggr_High_Limit field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Aggr_Others_Flag(obj)[source]

True if the aggregate has an ‘others’ choice.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Aggr_Others_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Aggr_Others_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Aggr_Others_Flag(obj, value)[source]

True if the aggregate has an ‘others’ choice.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Aggr_Others_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Aggr_Others_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Aggr_Named_Flag(obj)[source]

True if the aggregate have named associations.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Aggr_Named_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Aggr_Named_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Aggr_Named_Flag(obj, value)[source]

True if the aggregate have named associations.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Aggr_Named_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Aggr_Named_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Aggregate_Expand_Flag(obj)[source]

True if the aggregate can be statically built.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Aggregate_Expand_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Aggregate_Expand_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Aggregate_Expand_Flag(obj, value)[source]

True if the aggregate can be statically built.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Aggregate_Expand_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Aggregate_Expand_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Determined_Aggregate_Flag(obj)[source]

True if the bounds of the aggregated are determined by the context.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Determined_Aggregate_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Determined_Aggregate_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Determined_Aggregate_Flag(obj, value)[source]

True if the bounds of the aggregated are determined by the context.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Determined_Aggregate_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Determined_Aggregate_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Association_Choices_Chain(obj)[source]

Chain of choices.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Association_Choices_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Association_Choices_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Association_Choices_Chain(obj, value)[source]

Chain of choices.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Association_Choices_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Association_Choices_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Case_Statement_Alternative_Chain(obj)[source]

Chain of choices.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Case_Statement_Alternative_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Case_Statement_Alternative_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Case_Statement_Alternative_Chain(obj, value)[source]

Chain of choices.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Case_Statement_Alternative_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Case_Statement_Alternative_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Matching_Flag(obj)[source]

Matching condition for case statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Matching_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Matching_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Matching_Flag(obj, value)[source]

Matching condition for case statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Matching_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Matching_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Choice_Staticness(obj)[source]

Staticness of the choice.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Choice_Staticness field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Choice_Staticness field.

pyGHDL.libghdl.vhdl.nodes.Set_Choice_Staticness(obj, value)[source]

Staticness of the choice.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Choice_Staticness field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Choice_Staticness field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Procedure_Call(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Procedure_Call field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Procedure_Call field.

pyGHDL.libghdl.vhdl.nodes.Set_Procedure_Call(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Procedure_Call field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Procedure_Call field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Implementation(obj)[source]

Subprogram to be called by a procedure, function call or operator. This is the declaration of the subprogram (or a list of during analysis).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Implementation field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Implementation field.

pyGHDL.libghdl.vhdl.nodes.Set_Implementation(obj, value)[source]

Subprogram to be called by a procedure, function call or operator. This is the declaration of the subprogram (or a list of during analysis).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Implementation field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Implementation field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Parameter_Association_Chain(obj)[source]

Parameter associations for procedure and function call.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Parameter_Association_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Parameter_Association_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Parameter_Association_Chain(obj, value)[source]

Parameter associations for procedure and function call.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Parameter_Association_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Parameter_Association_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Method_Object(obj)[source]

Object of a method call. NULL_IIR if the subprogram is not a method.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Method_Object field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Method_Object field.

pyGHDL.libghdl.vhdl.nodes.Set_Method_Object(obj, value)[source]

Object of a method call. NULL_IIR if the subprogram is not a method.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Method_Object field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Method_Object field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subtype_Type_Mark(obj)[source]

The type_mark that appeared in the subtype indication. This is a name. May be null_iir if there is no type mark (as in an iterator).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subtype_Type_Mark field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subtype_Type_Mark field.

pyGHDL.libghdl.vhdl.nodes.Set_Subtype_Type_Mark(obj, value)[source]

The type_mark that appeared in the subtype indication. This is a name. May be null_iir if there is no type mark (as in an iterator).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subtype_Type_Mark field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subtype_Type_Mark field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Subnature_Nature_Mark(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Subnature_Nature_Mark field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Subnature_Nature_Mark field.

pyGHDL.libghdl.vhdl.nodes.Set_Subnature_Nature_Mark(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Subnature_Nature_Mark field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Subnature_Nature_Mark field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Type_Conversion_Subtype(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Type_Conversion_Subtype field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Type_Conversion_Subtype field.

pyGHDL.libghdl.vhdl.nodes.Set_Type_Conversion_Subtype(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Type_Conversion_Subtype field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Type_Conversion_Subtype field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Type_Mark(obj)[source]

The type_mark that appeared in qualified expressions or type conversions.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Type_Mark field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Type_Mark field.

pyGHDL.libghdl.vhdl.nodes.Set_Type_Mark(obj, value)[source]

The type_mark that appeared in qualified expressions or type conversions.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Type_Mark field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Type_Mark field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_File_Type_Mark(obj)[source]

The type of values for a type file.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the File_Type_Mark field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s File_Type_Mark field.

pyGHDL.libghdl.vhdl.nodes.Set_File_Type_Mark(obj, value)[source]

The type of values for a type file.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the File_Type_Mark field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the File_Type_Mark field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Return_Type_Mark(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Return_Type_Mark field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Return_Type_Mark field.

pyGHDL.libghdl.vhdl.nodes.Set_Return_Type_Mark(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Return_Type_Mark field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Return_Type_Mark field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Disconnect_Flag(obj)[source]

This flag is set on a signal_declaration, when a disconnection specification applies to the signal (or a subelement of it). This is used to check ‘others’ and ‘all’ designators.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Disconnect_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Disconnect_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Disconnect_Flag(obj, value)[source]

This flag is set on a signal_declaration, when a disconnection specification applies to the signal (or a subelement of it). This is used to check ‘others’ and ‘all’ designators.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Disconnect_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Disconnect_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Active_Flag(obj)[source]

This flag is set on a signal when its activity is read by the user. Some signals handling can be optimized when this flag is set.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Active_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Active_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Active_Flag(obj, value)[source]

This flag is set on a signal when its activity is read by the user. Some signals handling can be optimized when this flag is set.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Active_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Active_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Is_Within_Flag(obj)[source]

This flag is set is code being analyzed is textually within TARGET. This is used for selected by name rule.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Is_Within_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Is_Within_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Is_Within_Flag(obj, value)[source]

This flag is set is code being analyzed is textually within TARGET. This is used for selected by name rule.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Is_Within_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Is_Within_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Type_Marks_List(obj)[source]

List of type_mark for an Iir_Kind_Signature

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Type_Marks_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Type_Marks_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Type_Marks_List(obj, value)[source]

List of type_mark for an Iir_Kind_Signature

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Type_Marks_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Type_Marks_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Implicit_Alias_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Implicit_Alias_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Implicit_Alias_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Implicit_Alias_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Implicit_Alias_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Implicit_Alias_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Alias_Signature(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Alias_Signature field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Alias_Signature field.

pyGHDL.libghdl.vhdl.nodes.Set_Alias_Signature(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Alias_Signature field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Alias_Signature field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Attribute_Signature(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Attribute_Signature field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Attribute_Signature field.

pyGHDL.libghdl.vhdl.nodes.Set_Attribute_Signature(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Attribute_Signature field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Attribute_Signature field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Overload_List(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Overload_List field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Overload_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Overload_List(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Overload_List field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Overload_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Simple_Name_Identifier(obj)[source]

Identifier of the simple_name attribute.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Simple_Name_Identifier field of.

Return type:

TypeVar(NameId, bound= c_int)

Returns:

The node’s Simple_Name_Identifier field.

pyGHDL.libghdl.vhdl.nodes.Set_Simple_Name_Identifier(obj, value)[source]

Identifier of the simple_name attribute.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Simple_Name_Identifier field of.

  • value (TypeVar(NameId, bound= c_int)) – The value to write into the Simple_Name_Identifier field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Simple_Name_Subtype(obj)[source]

Subtype for Simple_Name attribute.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Simple_Name_Subtype field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Simple_Name_Subtype field.

pyGHDL.libghdl.vhdl.nodes.Set_Simple_Name_Subtype(obj, value)[source]

Subtype for Simple_Name attribute.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Simple_Name_Subtype field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Simple_Name_Subtype field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Protected_Type_Body(obj)[source]

Body of a protected type declaration.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Protected_Type_Body field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Protected_Type_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Protected_Type_Body(obj, value)[source]

Body of a protected type declaration.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Protected_Type_Body field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Protected_Type_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Protected_Type_Declaration(obj)[source]

Corresponding protected type declaration of a protected type body.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Protected_Type_Declaration field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Protected_Type_Declaration field.

pyGHDL.libghdl.vhdl.nodes.Set_Protected_Type_Declaration(obj, value)[source]

Corresponding protected type declaration of a protected type body.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Protected_Type_Declaration field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Protected_Type_Declaration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Use_Flag(obj)[source]

For a declaration: true if the declaration is used somewhere.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Use_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Use_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Use_Flag(obj, value)[source]

For a declaration: true if the declaration is used somewhere.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Use_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Use_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Elaborated_Flag(obj)[source]

For a subprogram declaration, constant declaration or protected type. Set when it could be used because fully elaborated.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Elaborated_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Elaborated_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Elaborated_Flag(obj, value)[source]

For a subprogram declaration, constant declaration or protected type. Set when it could be used because fully elaborated.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Elaborated_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Elaborated_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_End_Has_Reserved_Id(obj)[source]

Layout flag: true if ‘end’ is followed by the reserved identifier.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the End_Has_Reserved_Id field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s End_Has_Reserved_Id field.

pyGHDL.libghdl.vhdl.nodes.Set_End_Has_Reserved_Id(obj, value)[source]

Layout flag: true if ‘end’ is followed by the reserved identifier.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the End_Has_Reserved_Id field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the End_Has_Reserved_Id field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_End_Has_Identifier(obj)[source]

Layout flag: true if ‘end’ is followed by the identifier.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the End_Has_Identifier field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s End_Has_Identifier field.

pyGHDL.libghdl.vhdl.nodes.Set_End_Has_Identifier(obj, value)[source]

Layout flag: true if ‘end’ is followed by the identifier.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the End_Has_Identifier field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the End_Has_Identifier field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_End_Has_Postponed(obj)[source]

Layout flag: true if ‘end’ is followed by ‘postponed’.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the End_Has_Postponed field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s End_Has_Postponed field.

pyGHDL.libghdl.vhdl.nodes.Set_End_Has_Postponed(obj, value)[source]

Layout flag: true if ‘end’ is followed by ‘postponed’.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the End_Has_Postponed field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the End_Has_Postponed field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Begin(obj)[source]

Layout flag: true if ‘begin’ is present.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Begin field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Begin field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Begin(obj, value)[source]

Layout flag: true if ‘begin’ is present.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Begin field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Begin field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_End(obj)[source]

Layout flag: true if ‘end’ is present (only for generate body).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_End field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_End field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_End(obj, value)[source]

Layout flag: true if ‘end’ is present (only for generate body).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_End field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_End field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Is(obj)[source]

Layout flag: true if ‘is’ is present.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Is field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Is field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Is(obj, value)[source]

Layout flag: true if ‘is’ is present.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Is field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Is field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Pure(obj)[source]

Layout flag: true if ‘pure’ or ‘impure’ is present.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Pure field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Pure field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Pure(obj, value)[source]

Layout flag: true if ‘pure’ or ‘impure’ is present.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Pure field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Pure field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Body(obj)[source]

Layout flag: true if body appears just after the specification.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Body field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Body field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Body(obj, value)[source]

Layout flag: true if body appears just after the specification.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Body field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Body field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Parameter(obj)[source]

Layout flag: true if ‘parameter’ reserved identifier is present.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Parameter field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Parameter field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Parameter(obj, value)[source]

Layout flag: true if ‘parameter’ reserved identifier is present.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Parameter field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Parameter field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Component(obj)[source]

Layout flag: true if ‘component’ reserved identifier is present.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Component field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Component field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Component(obj, value)[source]

Layout flag: true if ‘component’ reserved identifier is present.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Component field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Component field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Identifier_List(obj)[source]

Layout flag for object declaration. If True, the identifier of this declaration is followed by an identifier (and separated by a comma). This flag is set on all but the last declarations. Eg: on ‘signal A, B, C : Bit’, the flag is set on A and B (but not C).

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Identifier_List field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Identifier_List field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Identifier_List(obj, value)[source]

Layout flag for object declaration. If True, the identifier of this declaration is followed by an identifier (and separated by a comma). This flag is set on all but the last declarations. Eg: on ‘signal A, B, C : Bit’, the flag is set on A and B (but not C).

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Identifier_List field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Identifier_List field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Mode(obj)[source]

Layout flag for object declaration. If True, the mode is present.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Mode field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Mode field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Mode(obj, value)[source]

Layout flag for object declaration. If True, the mode is present.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Mode field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Mode field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Class(obj)[source]

Layout flag for object declaration. If True, the object class is present.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Class field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Class field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Class(obj, value)[source]

Layout flag for object declaration. If True, the object class is present.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Class field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Class field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Semicolon(obj)[source]

Layout flag for interface declaration. If True, ‘;’ is present after the interface. In case of multiple names separated with colon, it cannot be set with Has_Identifier_List.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Semicolon field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Semicolon field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Semicolon(obj, value)[source]

Layout flag for interface declaration. If True, ‘;’ is present after the interface. In case of multiple names separated with colon, it cannot be set with Has_Identifier_List.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Semicolon field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Semicolon field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Has_Delay_Mechanism(obj)[source]

Layout flag for signal assignment. If True, the delay mechanism is present. This is obviously true for transport or inertial with reject, but the simple ‘inertial’ is optional.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Has_Delay_Mechanism field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Has_Delay_Mechanism field.

pyGHDL.libghdl.vhdl.nodes.Set_Has_Delay_Mechanism(obj, value)[source]

Layout flag for signal assignment. If True, the delay mechanism is present. This is obviously true for transport or inertial with reject, but the simple ‘inertial’ is optional.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Has_Delay_Mechanism field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Has_Delay_Mechanism field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Suspend_Flag(obj)[source]

Set on wait, procedure call and composite statements when there is a sub-statement that can suspend a procedure or a process. Also set on procedure declaration. Note that the flag is conservative: it must be true if the node contains directly or indirectly a wait statement, but need not to be false otherwise.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Suspend_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Suspend_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Suspend_Flag(obj, value)[source]

Set on wait, procedure call and composite statements when there is a sub-statement that can suspend a procedure or a process. Also set on procedure declaration. Note that the flag is conservative: it must be true if the node contains directly or indirectly a wait statement, but need not to be false otherwise.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Suspend_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Suspend_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Covered_Flag(obj)[source]

Set during elaboration when the statement is executed.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Covered_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Covered_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Covered_Flag(obj, value)[source]

Set during elaboration when the statement is executed.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Covered_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Covered_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Stop_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Stop_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Stop_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_Stop_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Stop_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Stop_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Is_Ref(obj)[source]

Set to True if Maybe_Ref fields are references. This cannot be shared with Has_Identifier_List as: Is_Ref is set to True on all items but the first, while Has_Identifier_List is set to True on all items but the last. Furthermore Is_Ref appears in nodes where Has_Identifier_List is not present.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Is_Ref field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Is_Ref field.

pyGHDL.libghdl.vhdl.nodes.Set_Is_Ref(obj, value)[source]

Set to True if Maybe_Ref fields are references. This cannot be shared with Has_Identifier_List as: Is_Ref is set to True on all items but the first, while Has_Identifier_List is set to True on all items but the last. Furthermore Is_Ref appears in nodes where Has_Identifier_List is not present.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Is_Ref field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Is_Ref field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Is_Forward_Ref(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Is_Forward_Ref field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s Is_Forward_Ref field.

pyGHDL.libghdl.vhdl.nodes.Set_Is_Forward_Ref(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Is_Forward_Ref field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the Is_Forward_Ref field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Psl_Property(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Psl_Property field of.

Return type:

TypeVar(PSLNode, bound= c_int)

Returns:

The node’s Psl_Property field.

pyGHDL.libghdl.vhdl.nodes.Set_Psl_Property(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Psl_Property field of.

  • value (TypeVar(PSLNode, bound= c_int)) – The value to write into the Psl_Property field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Psl_Sequence(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Psl_Sequence field of.

Return type:

TypeVar(PSLNode, bound= c_int)

Returns:

The node’s Psl_Sequence field.

pyGHDL.libghdl.vhdl.nodes.Set_Psl_Sequence(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Psl_Sequence field of.

  • value (TypeVar(PSLNode, bound= c_int)) – The value to write into the Psl_Sequence field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Psl_Declaration(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Psl_Declaration field of.

Return type:

TypeVar(PSLNode, bound= c_int)

Returns:

The node’s Psl_Declaration field.

pyGHDL.libghdl.vhdl.nodes.Set_Psl_Declaration(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Psl_Declaration field of.

  • value (TypeVar(PSLNode, bound= c_int)) – The value to write into the Psl_Declaration field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Psl_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Psl_Expression field of.

Return type:

TypeVar(PSLNode, bound= c_int)

Returns:

The node’s Psl_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Psl_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Psl_Expression field of.

  • value (TypeVar(PSLNode, bound= c_int)) – The value to write into the Psl_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Psl_Boolean(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Psl_Boolean field of.

Return type:

TypeVar(PSLNode, bound= c_int)

Returns:

The node’s Psl_Boolean field.

pyGHDL.libghdl.vhdl.nodes.Set_Psl_Boolean(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Psl_Boolean field of.

  • value (TypeVar(PSLNode, bound= c_int)) – The value to write into the Psl_Boolean field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_PSL_Clock(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the PSL_Clock field of.

Return type:

TypeVar(PSLNode, bound= c_int)

Returns:

The node’s PSL_Clock field.

pyGHDL.libghdl.vhdl.nodes.Set_PSL_Clock(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the PSL_Clock field of.

  • value (TypeVar(PSLNode, bound= c_int)) – The value to write into the PSL_Clock field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_PSL_Abort(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the PSL_Abort field of.

Return type:

TypeVar(PSLNode, bound= c_int)

Returns:

The node’s PSL_Abort field.

pyGHDL.libghdl.vhdl.nodes.Set_PSL_Abort(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the PSL_Abort field of.

  • value (TypeVar(PSLNode, bound= c_int)) – The value to write into the PSL_Abort field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_PSL_NFA(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the PSL_NFA field of.

Return type:

TypeVar(PSLNFA, bound= c_int)

Returns:

The node’s PSL_NFA field.

pyGHDL.libghdl.vhdl.nodes.Set_PSL_NFA(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the PSL_NFA field of.

  • value (TypeVar(PSLNFA, bound= c_int)) – The value to write into the PSL_NFA field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_PSL_Nbr_States(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the PSL_Nbr_States field of.

Return type:

TypeVar(Int32, bound= c_int)

Returns:

The node’s PSL_Nbr_States field.

pyGHDL.libghdl.vhdl.nodes.Set_PSL_Nbr_States(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the PSL_Nbr_States field of.

  • value (TypeVar(Int32, bound= c_int)) – The value to write into the PSL_Nbr_States field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_PSL_Clock_Sensitivity(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the PSL_Clock_Sensitivity field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s PSL_Clock_Sensitivity field.

pyGHDL.libghdl.vhdl.nodes.Set_PSL_Clock_Sensitivity(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the PSL_Clock_Sensitivity field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the PSL_Clock_Sensitivity field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_PSL_EOS_Flag(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the PSL_EOS_Flag field of.

Return type:

TypeVar(Boolean, bound= c_bool)

Returns:

The node’s PSL_EOS_Flag field.

pyGHDL.libghdl.vhdl.nodes.Set_PSL_EOS_Flag(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the PSL_EOS_Flag field of.

  • value (TypeVar(Boolean, bound= c_bool)) – The value to write into the PSL_EOS_Flag field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Count_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Count_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Count_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Count_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Count_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Count_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Clock_Expression(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Clock_Expression field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Clock_Expression field.

pyGHDL.libghdl.vhdl.nodes.Set_Clock_Expression(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Clock_Expression field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Clock_Expression field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Default_Clock(obj)[source]

Reference to the default_clock node.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Default_Clock field of.

Return type:

TypeVar(PSLNode, bound= c_int)

Returns:

The node’s Default_Clock field.

pyGHDL.libghdl.vhdl.nodes.Set_Default_Clock(obj, value)[source]

Reference to the default_clock node.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Default_Clock field of.

  • value (TypeVar(PSLNode, bound= c_int)) – The value to write into the Default_Clock field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Foreign_Node(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Foreign_Node field of.

Return type:

TypeVar(Int32, bound= c_int)

Returns:

The node’s Foreign_Node field.

pyGHDL.libghdl.vhdl.nodes.Set_Foreign_Node(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Foreign_Node field of.

  • value (TypeVar(Int32, bound= c_int)) – The value to write into the Foreign_Node field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Suspend_State_Index(obj)[source]

State index for the statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Suspend_State_Index field of.

Return type:

TypeVar(Int32, bound= c_int)

Returns:

The node’s Suspend_State_Index field.

pyGHDL.libghdl.vhdl.nodes.Set_Suspend_State_Index(obj, value)[source]

State index for the statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Suspend_State_Index field of.

  • value (TypeVar(Int32, bound= c_int)) – The value to write into the Suspend_State_Index field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Suspend_State_Chain(obj)[source]

Chain of suspend state statement.

Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Suspend_State_Chain field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Suspend_State_Chain field.

pyGHDL.libghdl.vhdl.nodes.Set_Suspend_State_Chain(obj, value)[source]

Chain of suspend state statement.

Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Suspend_State_Chain field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Suspend_State_Chain field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Suspend_State_Last(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Suspend_State_Last field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Suspend_State_Last field.

pyGHDL.libghdl.vhdl.nodes.Set_Suspend_State_Last(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Suspend_State_Last field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Suspend_State_Last field.

Return type:

None

pyGHDL.libghdl.vhdl.nodes.Get_Suspend_State_Decl(obj)[source]
Parameters:

obj (TypeVar(Iir, bound= c_int)) – The node to read the Suspend_State_Decl field of.

Return type:

TypeVar(Iir, bound= c_int)

Returns:

The node’s Suspend_State_Decl field.

pyGHDL.libghdl.vhdl.nodes.Set_Suspend_State_Decl(obj, value)[source]
Parameters:
  • obj (TypeVar(Iir, bound= c_int)) – The node to write the Suspend_State_Decl field of.

  • value (TypeVar(Iir, bound= c_int)) – The value to write into the Suspend_State_Decl field.

Return type:

None


Classes

class pyGHDL.libghdl.vhdl.nodes.Iir_Kind(*values)[source]

The kind of an IIR node, which decides what its physical fields mean.

Inheritance

Inheritance diagram of Iir_Kind

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.

class pyGHDL.libghdl.vhdl.nodes.Iir_Kinds[source]

The Iir_Kinds_* subtype ranges, each listing the consecutive node kinds it covers.

Inheritance

Inheritance diagram of Iir_Kinds

class pyGHDL.libghdl.vhdl.nodes.Iir_Mode(*values)[source]

The mode of an interface object: in, out, inout, buffer or linkage.

Inheritance

Inheritance diagram of Iir_Mode

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.

class pyGHDL.libghdl.vhdl.nodes.ScalarSize(*values)[source]

The storage size of a scalar type.

Inheritance

Inheritance diagram of ScalarSize

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.

class pyGHDL.libghdl.vhdl.nodes.Iir_Staticness(*values)[source]

How static an expression or a type is: unknown, none, globally or locally.

Inheritance

Inheritance diagram of Iir_Staticness

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.

class pyGHDL.libghdl.vhdl.nodes.Iir_Constraint(*values)[source]

How constrained a composite type is: unconstrained, partially or fully.

Inheritance

Inheritance diagram of Iir_Constraint

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.

class pyGHDL.libghdl.vhdl.nodes.Iir_Delay_Mechanism(*values)[source]

The delay mechanism of a signal assignment: inertial or transport.

Inheritance

Inheritance diagram of Iir_Delay_Mechanism

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.

class pyGHDL.libghdl.vhdl.nodes.DateStateType(*values)[source]

How far a design unit has been processed: extern, disk, parse or analyze.

Inheritance

Inheritance diagram of DateStateType

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.

class pyGHDL.libghdl.vhdl.nodes.NumberBaseType(*values)[source]

The base a literal was written in.

Inheritance

Inheritance diagram of NumberBaseType

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.

class pyGHDL.libghdl.vhdl.nodes.Iir_Predefined(*values)[source]

The predefined operation an implicit subprogram implements.

Inheritance

Inheritance diagram of Iir_Predefined

__format__(format_spec, /)

Convert to a string according to format_spec.

__str__()

Return repr(self).

__repr__()

Return repr(self).

__new__(value)
__hash__()

Return hash(self).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

__mul__(value, /)

Return self*value.

__rmul__(value, /)

Return value*self.

__mod__(value, /)

Return self%value.

__rmod__(value, /)

Return value%self.

__divmod__(value, /)

Return divmod(self, value).

__rdivmod__(value, /)

Return divmod(value, self).

__pow__(value, mod=None, /)

Return pow(self, value, mod).

__rpow__(value, mod=None, /)

Return pow(value, self, mod).

__neg__()

-self

__pos__()

+self

__abs__()

abs(self)

__bool__()

True if self else False

__invert__()

~self

__lshift__(value, /)

Return self<<value.

__rlshift__(value, /)

Return value<<self.

__rshift__(value, /)

Return self>>value.

__rrshift__(value, /)

Return value>>self.

__and__(value, /)

Return self&value.

__rand__(value, /)

Return value&self.

__xor__(value, /)

Return self^value.

__rxor__(value, /)

Return value^self.

__or__(value, /)

Return self|value.

__ror__(value, /)

Return value|self.

__int__()

int(self)

__float__()

float(self)

__floordiv__(value, /)

Return self//value.

__rfloordiv__(value, /)

Return value//self.

__truediv__(value, /)

Return self/value.

__rtruediv__(value, /)

Return value/self.

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

conjugate()

Returns self, the complex conjugate of any int.

bit_length()

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
bit_count()

Number of ones in the binary representation of the absolute value of self.

Also known as the population count.

>>> bin(13)
'0b1101'
>>> (13).bit_count()
3
to_bytes(length=1, byteorder='big', *, signed=False)

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. Default is length 1.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

classmethod from_bytes(bytes, byteorder='big', *, signed=False)

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use sys.byteorder as the byte order value. Default is to use ‘big’.

signed

Indicates whether two’s complement is used to represent the integer.

as_integer_ratio()

Return a pair of integers, whose ratio is equal to the original int.

The ratio is in lowest terms and has a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
__trunc__()

Truncating an Integral returns itself.

__floor__()

Flooring an Integral returns itself.

__ceil__()

Ceiling of an Integral returns itself.

__round__(ndigits=None, /)

Rounding an Integral returns itself.

Rounding with an ndigits argument also returns an integer.

__sizeof__()

Returns size in memory, in bytes.

is_integer()

Returns True. Exists for duck type compatibility with float.is_integer.

real

the real part of a complex number

imag

the imaginary part of a complex number

numerator

the numerator of a rational number in lowest terms

denominator

the denominator of a rational number in lowest terms

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

__dir__()

Returns public methods and other interesting attributes.

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__reduce_ex__(proto)

Helper for pickle.