I tried using the "short" symbol thinking it was a...
# xschem
t
I tried using the "short" symbol thinking it was a special way to do that, but it still throws an error when creating the spice netlist
s
@tnt there are various ways to short two nets together. Below image shows 3 cases: A) Add a
short.sym
component. The net to be shorted (the one that goes to the
PLUS
opamp input) must not have a label. Shorting two nets with different attached labels or pins is illegal. B) Add an
ammeter.sym
component. This is a 0V voltage source. The shorted net maintains its name, it will have the same voltage as the other net. C) You can add attribute
spice_ignore=short
to a component. All its ports will be shorted together. As in case A) only one net should have a label/pin attached to it. In all 3 cases the net PANEL is highlighted in yellow. You see short components propagate nodal information.
t
Thanks, but those don't work for pins as noted.
Like I wanted to define a component that has two external ports and those are internally shorted.
s
@tnt I don't know what you exactly need to do. If you want to create a symbol with two shorted pins you can: • create two pins with the same name in the symbol • in the schematic representation of the symbol short the two pins with an ammeter.sym (see image).
t
Well I'm creating a schematic that represent a design to be taped out. It needs to have a certain number of pins/external ports to be integrated and some of these are basically kelvin sense wires, so they're internally shorted electrically.
Creating two pins with the same name might work.
s
If you want to attach different names to the sense wires then you should internally join the nets with 0V voltage sources (this is what the
ammeter.sym
does) Using ports with identical names is a brutal short, it means if node XX is connected on one of the ports the other port will also be XX and you can't name it to YY, since having a piece of wire with different labels on its end is considered an electrical short and in 99.999% of the cases a design mistake. Joining different nets with ammeters allows you to have different aliases of the same net, with identical voltages, adding negligible simulation overhead. You can later replace the ammeters with small resistors without changing the net topology (no change in net names).
@tnt in some cases a small metal resistor is used to short different named nodes. This allows to pass LVS checks. A metal resistor is just a regular metal line (that you use to connect nodes together) with a resistor identification layer. In sky130 we have res_generic_m1, res_generic_m2 and so on.
👍 2