finesse.components.wire.Wire

Overview

class finesse.components.wire.Wire(name=None, nodeA=None, nodeB=None, delay=0)[source]

Bases: Connector

A wire represents a flow of information between signal nodes. It connects two specific signal nodes. Signal nodes have a direction associated with them: input, output, or bidirectional. Depending on what direction each node has depends on what the wire will setup when it is connected. The rules for node-to-node connections are:

  • input and output: a connection will be formed from the input to the output node

  • input to input or output to output: is not allowed.

  • input to bidirectional: a connection will be made from the input node into the bidirectional node

  • output to bidirectional: a connection will be made from the bidirectional node into the output node

  • bidirectional to bidirectional: two connections will be made that lets information flow in both directions between the two nodes.

When connecting ports the wire will look at the name of each node in the port and connect nodes with the same name

Parameters:
namestr, optional

Name of newly created wire.

nodeA, nodeBSignalNode

Signal nodes to connect together.

delayfloat, optional

A delay time for the signal to flow from A to B in seconds

Properties

Wire.nodeA

Wire.nodeB

Methods

Wire.__init__(self, name)

Wire.connect(A, B)

Connects two signal nodes together.

Wire.fill(ws)