cbadc.circuit.Port

class cbadc.circuit.Port(terminals: Tuple[Terminal, Terminal])[source]

Bases: object

A port is a collection of terminals that are connected together

Parameters

terminals (Tuple[Terminal, Terminal]) – The terminals that are connected together

Methods

__init__(terminals)

add_terminal(terminal)

Add a terminal to the port

merge(other)

Merge another port into this port

Attributes

id_iter

terminals

name

add_terminal(terminal: Terminal)[source]

Add a terminal to the port

Parameters

terminal (Terminal) – The terminal to add

merge(other)[source]

Merge another port into this port

Parameters

other (Port) – The port to merge into this port