Does `xschem` always add `.GLOBAL VPWR` / `.GLOBAL...
# xschem
t
Does
xschem
always add
.GLOBAL VPWR
/
.GLOBAL VGND
? I was trying to define a symbol/module with
VPWR
/
VGND
pins that I could use to feed power to, but the generated
.spice
behave weirdly and looking into it it has those global definitions. If I remove them, then it behaves as expected.
m
@tnt The default
vdd
and
gnd
symbols have a
global=true
property. I copied these symbols to a local directory and removed the global property. That allowed me to use the symbols as local power and ground. You might want to modify it slightly (maybe color?) to differentiate.
t
Oh, I see ...
Thanks for the pointer.
👍 1
s
@tnt the gnd and vdd symbols create global nets, so you can place these anywhere in a hierarchy and a
.global
is added to the netlist. You can either use @Mitch Bailey suggestion or transform the
gnd.sym
instances in a circuit into
lab_pin.sym
. You can do this in one shot by selecting all
gnd.sym
symbols. Same thing for all
vdd.sym
symbols. See image.
t
Yup, I understand now. I'm going with @Mitch Bailey suggestion as I like the "look" of GND/VDD ...
👍 1