BYUCamachoLab / simphony

A simulator for photonic integrated circuits.
https://simphonyphotonics.rtfd.io
Other
117 stars 35 forks source link

Interface command resurrection! On a circuit level #98

Open parkeraa opened 1 year ago

parkeraa commented 1 year ago

In a previous version, there existed an interface command, which took in 2 components and connected ports on those components which had the same name. This command is similar to spice's functionality of naming nodes, etc, and them being automatically connected. This interface command could be especially useful at a circuit level, or with large subcircuits/components. In the case of connecting large components, the ports on each component could be named to make the connections easier to keep track of or understand. It is similar to the way a list of ports can all be connected at once, but the user doesn't have to make the list themself. A more extreme (and potentially useful) version relies on being able to add components to a circuit without connecting them (see other issue). In this case, a large component or a large number of components could be added to the circuit with the ports named appropriately, and the interface command would search through all the components in the circuit and connect all ports with the same name. This way, naming ports could replace having to explicitly connect them.

sequoiap commented 1 year ago

Decision: We will create a function called autoconnect().