CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Protected Attributes | List of all members
aig.Object Class Reference
Collaboration diagram for aig.Object:
Collaboration graph
[legend]

Public Member Functions

str __str__ (self)
 
str __repr__ (self)
 
List[Instanceinstance_path (self)
 
str name (self)
 
int bit_pos (self)
 

Public Attributes

 instance_path
 

Static Protected Attributes

_LongestPathObject _object
 

Detailed Description

  Represents a signal or port object in the dataflow graph.
  This class encapsulates a specific signal within the hardware hierarchy,
  including its location in the instance hierarchy, signal name, and bit position
  for multi-bit signals.
  Attributes:
      instance_path: Hierarchical path to the module containing this object
      name: The signal/port name within the module
      bit_pos: Bit position for multi-bit signals (0 for single-bit)

Definition at line 43 of file aig.py.

Member Function Documentation

◆ __repr__()

str aig.Object.__repr__ (   self)

Definition at line 68 of file aig.py.

◆ __str__()

str aig.Object.__str__ (   self)
    Generate a human-readable string representation of this object.
    Format: "module1:instance1/module2:instance2 signal_name[bit_pos]"

Definition at line 59 of file aig.py.

◆ bit_pos()

int aig.Object.bit_pos (   self)
Get the bit position for multi-bit signals.

Definition at line 84 of file aig.py.

References aig.Object._object.

◆ instance_path()

List[Instance] aig.Object.instance_path (   self)
Get the hierarchical instance path to this object.

Definition at line 72 of file aig.py.

References aig.Object._object.

◆ name()

str aig.Object.name (   self)
Get the name of this signal/port.

Definition at line 79 of file aig.py.

References aig.Object._object.

Member Data Documentation

◆ _object

_LongestPathObject aig.Object._object
staticprotected

Definition at line 55 of file aig.py.

Referenced by aig.Object.bit_pos(), aig.Object.instance_path(), and aig.Object.name().

◆ instance_path

aig.Object.instance_path

Definition at line 65 of file aig.py.


The documentation for this class was generated from the following file: