pyGHDL.dom.Expression
Classes
InverseExpression: Represents a logical inversion expression (not).IdentityExpression: Represents an identity (unary plus) expression.NegationExpression: Represents a negation (unary minus) expression.AbsoluteExpression: Represents an absolute value expression (abs).ParenthesisExpression: Represents a parenthesized sub-expression.TypeConversion: Represents a type conversion, e.g.integer(x).FunctionCall: Represents a call to a function.AscendingRangeExpression: Represents an ascending range expression (to).DescendingRangeExpression: Represents a descending range expression (downto).AdditionExpression: Represents an addition expression (+).SubtractionExpression: Represents a subtraction expression (-).ConcatenationExpression: Represents a concatenation expression (&).MultiplyExpression: Represents a multiplication expression (*).DivisionExpression: Represents a division expression (/).RemainderExpression: Represents a remainder expression (rem).ModuloExpression: Represents a modulo expression (mod).ExponentiationExpression: Represents an exponentiation expression (**).AndExpression: Represents a logicalandexpression.NandExpression: Represents a logicalnandexpression.OrExpression: Represents a logicalorexpression.NorExpression: Represents a logicalnorexpression.XorExpression: Represents a logicalxorexpression.XnorExpression: Represents a logicalxnorexpression.UnaryAndExpression: Represents aandreduction expression.UnaryNandExpression: Represents anandreduction expression.UnaryOrExpression: Represents aorreduction expression.UnaryNorExpression: Represents anorreduction expression.UnaryXorExpression: Represents axorreduction expression.UnaryXnorExpression: Represents axnorreduction expression.EqualExpression: Represents an equality expression (=).UnequalExpression: Represents an inequality expression (/=).LessThanExpression: Represents a less-than expression (<).LessEqualExpression: Represents a less-or-equal expression (<=).GreaterThanExpression: Represents a greater-than expression (>).GreaterEqualExpression: Represents a greater-or-equal expression (>=).MatchingEqualExpression: Represents a matching equality expression (?=).MatchingUnequalExpression: Represents a matching inequality expression (?/=).MatchingLessThanExpression: Represents a matching less-than expression (?<).MatchingLessEqualExpression: Represents a matching less-or-equal expression (?<=).MatchingGreaterThanExpression: Represents a matching greater-than expression (?>).MatchingGreaterEqualExpression: Represents a matching greater-or-equal expression (?>=).ShiftRightLogicExpression: Represents a logical right shift expression (srl).ShiftLeftLogicExpression: Represents a logical left shift expression (sll).ShiftRightArithmeticExpression: Represents an arithmetic right shift expression (sra).ShiftLeftArithmeticExpression: Represents an arithmetic left shift expression (sla).RotateRightExpression: Represents a right rotate expression (ror).RotateLeftExpression: Represents a left rotate expression (rol).QualifiedExpression: Represents a qualified expression.SubtypeAllocation: Represents an allocation of a subtype vianew.QualifiedExpressionAllocation: Represents an allocation initialized by a qualified expression.Aggregate: Represents an aggregate.
Classes
- class pyGHDL.dom.Expression.InverseExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('not ', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.IdentityExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('+', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.NegationExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('-', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.AbsoluteExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('abs ', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.ParenthesisExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('(', ')')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.TypeConversion(node, targetSubtype, operand)[source]
Represents a type conversion, e.g.
integer(x).Note
Not reachable from this translator today. GHDL’s parser cannot tell a type conversion from an indexed name or a function call -
integer(x),arr(x)andf(x)are all parsed asParenthesis_Name- and only semantic analysis rewrites one intoType_Conversion.pyGHDL.domparses without that pass, so aType_Conversionnode never arrives andParenthesis_Nameis translated toIndexedObjectOrFunctionCallSymbol, which carries the ambiguity.The constructor is kept correct so this class works if semantic analysis is ever run.
Inheritance
- Parameters:
node (Iir)
targetSubtype (SubtypeSymbol)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, targetSubtype, operand)[source]
Initializes a type conversion.
- Parameters:
targetSubtype (
SubtypeSymbol) – Reference to the subtype the expression is converted to.operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property TargetSubtype: SubtypeSymbol
Read-only property to access the target subtype (
_targetSubtype).- Returns:
The target subtype.
- __str__()[source]
Formats the type conversion.
Format:
integer(val)- Return type:
- Returns:
Formatted type conversion.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _targetSubtype: SubtypeSymbol
Reference to the subtype the expression is converted to.
- class pyGHDL.dom.Expression.FunctionCall(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a VHDL model entity.
- Parameters:
parent – The parent model entity of this entity.
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.AscendingRangeExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- property Direction: <pyTooling.Decorators.readonly object at 0x7c5266b39fd0>
Read-only property to access the direction (
_direction).- Returns:
The direction.
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' to ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _direction: ClassVar[Direction] = 0
The range’s direction, either ascending (
to) or descending (downto).
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.DescendingRangeExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- property Direction: <pyTooling.Decorators.readonly object at 0x7c5266b39fd0>
Read-only property to access the direction (
_direction).- Returns:
The direction.
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' downto ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _direction: ClassVar[Direction] = 1
The range’s direction, either ascending (
to) or descending (downto).
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.AdditionExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' + ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.SubtractionExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' - ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.ConcatenationExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' & ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.MultiplyExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' * ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.DivisionExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' / ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.RemainderExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' rem ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.ModuloExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' mod ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.ExponentiationExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', '**', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.AndExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' and ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.NandExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' nand ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.OrExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' or ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.NorExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' nor ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.XorExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' xor ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.XnorExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' xnor ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.UnaryAndExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('and ', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.UnaryNandExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('nand ', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.UnaryOrExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('or ', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.UnaryNorExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('nor ', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.UnaryXorExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('xor ', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.UnaryXnorExpression(node, operand)[source]
Inheritance
- Parameters:
node (Iir)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, operand)[source]
Initializes a unary expression.
- Parameters:
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal) – The expression the operator is applied to.
parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- _FORMAT: ClassVar[Tuple[str, str]] = ('xnor ', '')
The operator’s string representation as (prefix, suffix) around the operand.
- __str__()
Formats the unary expression.
Format:
not operand- Return type:
- Returns:
Formatted unary expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression the operator is applied to.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.EqualExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' = ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.UnequalExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' /= ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.LessThanExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' < ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.LessEqualExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' <= ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.GreaterThanExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' > ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.GreaterEqualExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' >= ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.MatchingEqualExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' ?= ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.MatchingUnequalExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' ?/= ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.MatchingLessThanExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' ?< ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.MatchingLessEqualExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' ?<= ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.MatchingGreaterThanExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' ?> ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.MatchingGreaterEqualExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' ?>= ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.ShiftRightLogicExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' srl ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.ShiftLeftLogicExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' sll ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.ShiftRightArithmeticExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' sra ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.ShiftLeftArithmeticExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' sla ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.RotateRightExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' ror ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.RotateLeftExpression(node, left, right)[source]
Inheritance
- Parameters:
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- __init__(node, left, right)[source]
Initializes a binary expression.
- Parameters:
leftOperand – The expression left of the operator.
rightOperand – The expression right of the operator.
parent – The parent model entity of this entity.
node (Iir)
left (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
right (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property LeftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the left operand (
_leftOperand).- Returns:
The left operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property RightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the right operand (
_rightOperand).- Returns:
The right operand.
- _FORMAT: ClassVar[Tuple[str, str, str]] = ('', ' rol ', '')
The operator’s string representation as (prefix, infix, suffix).
- __str__()
Formats the binary expression.
Format:
lhs + rhs- Return type:
- Returns:
Formatted binary expression.
- _leftOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression left of the operator.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _rightOperand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression right of the operator.
- class pyGHDL.dom.Expression.QualifiedExpression(node, subtype, operand)[source]
Inheritance
- Parameters:
node (Iir)
subtype (Symbol)
operand (BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal)
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
Read-only property to access the operand (
_operand).- Returns:
The operand.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property Subtype: Symbol
Read-only property to access the subtype (
_subtype).- Returns:
The subtype.
- __str__()[source]
Formats the qualified expression.
Format:
byte'(val)- Return type:
- Returns:
Formatted qualified expression.
- _operand: BaseExpression | QualifiedExpression | FunctionCall | TypeConversion | Literal
The expression being qualified.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.SubtypeAllocation(node, subtype)[source]
Inheritance
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property Subtype: Symbol
Read-only property to access the subtype (
_subtype).- Returns:
The subtype.
- __str__()[source]
Formats the subtype allocation.
Format:
new node- Return type:
- Returns:
Formatted subtype allocation.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- class pyGHDL.dom.Expression.QualifiedExpressionAllocation(node, qualifiedExpression)[source]
Inheritance
- Parameters:
node (Iir)
qualifiedExpression (QualifiedExpression)
- __init__(node, qualifiedExpression)[source]
Initializes an allocation initialized by a qualified expression.
- Parameters:
qualifiedExpression (
QualifiedExpression) – The qualified expression the allocated object is initialized with.parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- property QualifiedExpression: <pyTooling.Decorators.readonly object at 0x7c5266b855d0>
Read-only property to access the qualified expression (
_qualifiedExpression).- Returns:
The qualified expression.
- __str__()[source]
Formats the qualified expression allocation.
Format:
new byte'(val)- Return type:
- Returns:
Formatted qualified expression allocation.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.
- _qualifiedExpression: <pyTooling.Decorators.readonly object at 0x7c5266b855d0>
The qualified expression the allocated object is initialized with.
- class pyGHDL.dom.Expression.Aggregate(node, elements)[source]
Inheritance
- Parameters:
node (Iir)
elements (List[AggregateElement])
- __init__(node, elements)[source]
Initializes an aggregate.
- Parameters:
elements (
List[AggregateElement]) – List of all elements of this aggregate, in the order they were written.parent – The parent model entity of this entity.
node (Iir)
- Return type:
None
- property Elements: List[AggregateElement]
Read-only property to access the elements (
_elements).- Returns:
List of elements.
- GetAncestor(type)
Return the closest ancestor of the given
typefound by walking the parent chain upwards.Iterates the parent chain - starting at this model entity - upwards (toward the root of the model) until an ancestor of the requested type is found.
- Parameters:
type (
Type) – Class (type) of the ancestor to find.- Return type:
- Returns:
The closest ancestor of the requested type.
- Raises:
VHDLModelException – If the root of the model is reached without finding an ancestor of the requested type.
- classmethod GetMethodsWithAttributes(predicate: TAttr | Iterable[TAttr] | None = None) Dict[Callable, Tuple[Attribute, ...]]
- Parameters:
predicate (
TypeVar(TAttr) |Iterable[TypeVar(TAttr)] |None) – An attribute class, an iterable of attribute classes, orNoneto accept every attribute.- Return type:
- Returns:
Dictionary of methods and the matching attributes attached to them.
- Raises:
ValueError – If an element of parameter ‘predicate’ is not a sub-class of
Attribute.ValueError – If parameter ‘predicate’ is neither an attribute class nor an iterable of those.
- property Parent: ModelEntity
Property to access the model entity’s parent element reference in a logical hierarchy (
_parent).- Returns:
Reference to the parent entity.
- property Position: <pyTooling.Decorators.readonly object at 0x7c526738b7d0>
Cached read-only property to access an IIR’s position in source code (
_position).If
_positionis None, resolve the position object from_iirNode- Returns:
The IIR’s position in the source file.
- __str__()[source]
Formats the aggregate.
Format:
(1, others => 0)- Return type:
- Returns:
Formatted aggregate.
- _elements: List[AggregateElement]
List of all elements of this aggregate, in the order they were written.
- _parent: ModelEntity
Reference to a parent entity in the logical model hierarchy.