CIRCT 24.0.0git
Loading...
Searching...
No Matches
synth.Object Class Reference

Public Member Functions

str __str__ (self)
str __repr__ (self)
List[Instance] instance_path (self)
str name (self)
int bit_pos (self)
Optional[Value] value (self)
bool is_output_port (self)

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 synth.py.

Member Function Documentation

◆ __repr__()

str synth.Object.__repr__ ( self)

Definition at line 68 of file synth.py.

◆ __str__()

str synth.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 synth.py.

References msft.DynamicInstanceOp.instance_path(), and instance_path().

◆ bit_pos()

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

Definition at line 84 of file synth.py.

◆ instance_path()

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

Definition at line 72 of file synth.py.

Referenced by __str__().

◆ is_output_port()

◆ name()

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

Definition at line 79 of file synth.py.

◆ value()

Optional[Value] synth.Object.value ( self)
Get the MLIR value associated with this object, if any.

Definition at line 89 of file synth.py.

Referenced by is_output_port().


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