An array-like proxy for variable port arrays.
Creates a variable port array
Parameters: |
|
---|
Calls callback(port, p_ref) for each new port.
Retrieves an already existing port in signal
Parameters: | no (int) – Number of port to retrieve |
---|---|
Returns: | a Port object |
Retrieves the current length of the port array.
Base class for objects containing ports. This can either be Components, or hierarchical Port objects.
Creates a new port owner
Parameters: |
|
---|
Retrieve a set of the signals connected to this port owner
Returns: | a set of Signal objects |
---|
A port.
Ports are attached to Components, but sometimes, Ports are contained in Ports (hierarchical ports).
Creates a new port.
Parameters: |
|
---|
Retrieves the specialization of the port.
Returns: | an object implementing SpecializationInterface |
---|
Returns: | the entity name |
---|
Exports the port to the boundary of the architecture. This permits to build hierarchical netlists.
Parameters: |
|
---|
Retrieves the setExternal() information as a tuple.
Returns: | (obj, name) tuple. |
---|
Tells whether this signal got exported to the interface.
Returns: | True or False |
---|
Port name
Retrieves the port connected to the other end of the associated signal.
Returns: | a Port object |
---|---|
Raises : | AssertionError if corresponding signal is not connected exactly twice. |
Tells whether this port is in a port array
Returns: | True or False |
---|
Retrieves the port number of this port in an array.
Only valid for a port that is in a port array.
Returns: | an integer |
---|
Retrieves the base name of the port. This correspond to the port name without the array index.
Returns: | a name string |
---|
Auto-Connects the ports that should auto-connect to the relevant signals passed in.
Parameters: | sigmap (dict) – A mapping of names to signals |
---|
The // operator.
Connects the port to another port through a specially spawned signal.
Parameters: | other (Port) – a compatible port |
---|---|
Returns: | the spawned signal (so that you can use the return value for another connection). |
Returns: | complete name of the port prefixed by the owner |
---|
component name.
Whether this Signal’s implementation has a () operator defined that can connect all subsignals at once.
Returns: | True or False |
---|
Assigns passed signal to this port
Parameters: | sig (Signal) – a signal |
---|---|
Raises : | AssertionError if port already has a signal assigned |
Tells whether the port is already connected to a signal
Returns: | True or False |
---|