<@U01H2JMLFLL>, check your `XSCHEM_LIBRARY_PATH` i...
# xschem
s
@User, check your
XSCHEM_LIBRARY_PATH
in your
xschemrc
file, ensure there are no multiple directories like:
append XSCHEM_LIBRARY_PATH  :${XSCHEM_SHAREDIR}/xschem_library/devices
append XSCHEM_LIBRARY_PATH  :${XSCHEM_SHAREDIR}/xschem_library
if this is the case you could have
vsource.sym
and
devices/vsource.sym
in your design. See this tutorial for details In situations like this you have to make a decision, either specify your
XSCHEM_LIBRARY_PATH
to go down to the directory containing your symbols (so you instantiate just '`vsource.sym`') or stop one or two levels above and so your instances will be named for example
devices/vsource.sym
. Another case where xschem might be confused is if you have a symbol with identical name (for example:
diode.sym
) in 2 different directories that are specified in your
XSCHEM_LIBARY_PATH
list of directories. In such cases when loading a schematic xschem will scan the
XSCHEM_LIBRARY_PATH
list of directories in the order they are defined and pick the first matching symbol name. There is no easy solution to specify the first one or the second one, one simple possibility is to switch the order of directories in the
XSCHEM_LIBRARY_PATH
search path. The other suggestion is to avoid having the search path going down to the last level directory containing the symbols but stop one level above (as explained in the tutorial linked above). If you instantiate
devices/diode.sym
and
mylib/diode.sym
and the search path ends one level dir above
mylib
and
devices
there is no confusion, since
mylib/diode.sym
!=
devices/diode.sym
. Keep in mind however that spice does not allow anyway to have 2 '`diode.sym'` models with the same name, so never use in your design components with identical names from different directories.
t
@Stefan Schippers why do
xschem_library/devices/
and
xschem_library/
contain a lot of duplicates? It doesn't seem to on your github repo. but I guess the installer did that?
E.g.
s
@Tom try to look at the date of some of these files, are they all very recent?
t
Ah,
devices/
are all from Jan 3rd (probably my last install, and the files in
devices/../
are all from December
did you update the lib folder structure?
s
no i did not, will check history, i have tried an install here but did not see problems. Just delete the old files,
t
That's strange. I'm not sure how it happened then. Anyway, I deleted the old files and reinstalled and they remained deleted, but thanks for the confirmation