Stefan Schippers
01/04/2021, 12:32 AMXSCHEM_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.Tom
01/06/2021, 6:45 PMxschem_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?Tom
01/06/2021, 6:46 PMStefan Schippers
01/06/2021, 6:48 PMTom
01/06/2021, 6:50 PMdevices/
are all from Jan 3rd (probably my last install, and the files in devices/../
are all from DecemberTom
01/06/2021, 6:51 PMStefan Schippers
01/06/2021, 7:16 PMTom
01/06/2021, 7:49 PM