<@U03QKJRKLK0> create a new directory, copy `..../...
# xschem
s
@milad create a new directory, copy
..../share/pdk/sky130A/libs.tech/xschem/xschemrc
into it and start xschem from there. Does that work?
m
no, result is still the same
s
does
<xschem_install_root>/share/xschem/xschem_library/devices
exist?
if above directory exists , start xschem and in the xschem tcl terminal type:
puts $XSCHEM_LIBRARY_PATH
Is the above devices/ directory listed and correct?
m
no there is no such file. only "device_param_probe.sym"
i need to install from scratch?
s
i just did a clean install of xschem from git, i got all the devices/ directory populated with the primitive devices. Try to do again the xschem installation
m
ok. thank you.
s
git clone <https://github.com/StefanSchippers/xschem> xschem_git
cd xschem_git
./configure --prefix=.....
make -j4
[sudo] make install
use sudo if you install in /usr/local (the default if you don't give any --prefix).
m
@Stefan Schippers i removed, then recloned and reinstalled xschem. when i cloned there is "devices" folder:
Copy code
Milad:~/EDA/xschem_git/xschem_library/devices$ ls 
adc_bridge.sym          iopin.sym                     pmos3.sym
ammeter.sym             ipin.sym                      pmos4.sym
arch_declarations.sym   isource_arith.sym             pmoshv4.sym
architecture.sym        isource_pwl.sym               pmosnat.sym
asrc.sym                isource.sym                   pmos-sub.sym
assign.sym              isource_table.sym             pmos.sym
attributes.sym          jumper.sym                    pnp.sym
bsource.sym             k.sym                         port_attributes.sym
bus_connect_nolab.sym   lab_generic.sym               res3.sym
bus_connect.sym         lab_pin.sym                   res_ac.sym
capa-2.sym              lab_show.sym                  res.sym
capa.sym                lab_wire.sym                  rgb_led.sym
cccs.sym                launcher.sym                  rnmos4.sym
ccvs.sym                led.sym                       spice_probe.sym
code_shown.sym          netlist_at_end.sym            spice_probe_vdiff.sym
code.sym                netlist_not_shown_at_end.sym  sqwsource.sym
conn_10x2.sym           netlist_not_shown.sym         switch_ngspice.sym
conn_14x1.sym           netlist_options.sym           switch.sym
conn_3x1.sym            netlist.sym                   switch_v_xyce.sym
conn_4x1.sym            ngspice_get_expr.sym          title-2.sym
conn_6x1.sym            ngspice_get_value.sym         title.sym
conn_8x1.sym            ngspice_probe.sym             use.sym
connector.sym           nmos3.sym                     var_res.sym
connect.sym             nmos4_depl.sym                vccs.sym
crystal-2.sym           nmos4.sym                     vcr.sym
crystal.sym             nmos-sub.sym                  vcvs.sym
dac_bridge.sym          nmos.sym                      vdd.sym
delay_line.sym          noconn.sym                    verilog_delay.sch
delay.sym               npn.sym                       verilog_delay.sym
device_param_probe.sym  opin.sym                      verilog_preprocessor.sym
diode.sym               package_not_shown.sym         verilog_timescale.sym
flash_cell.sym          package.sym                   vsource_arith.sym
generic_pin.sym         param_agauss.sym              vsource_pwl.sym
gnd.sym                 param.sym                     vsource.sym
ind.sym                 parax_cap.sym                 zener.sym
when i install, the "xschem_library" consists:
Copy code
Milad:/usr/local/share/xschem/xschem_library$ ls
adc_bridge.sym          iopin.sym                     pmos3.sym
ammeter.sym             ipin.sym                      pmos4.sym
arch_declarations.sym   isource_arith.sym             pmoshv4.sym
architecture.sym        isource_pwl.sym               pmosnat.sym
asrc.sym                isource.sym                   pmos-sub.sym
assign.sym              isource_table.sym             pmos.sym
attributes.sym          jumper.sym                    pnp.sym
bsource.sym             k.sym                         port_attributes.sym
bus_connect_nolab.sym   lab_generic.sym               res3.sym
bus_connect.sym         lab_pin.sym                   res_ac.sym
capa-2.sym              lab_show.sym                  res.sym
capa.sym                lab_wire.sym                  rgb_led.sym
cccs.sym                launcher.sym                  rnmos4.sym
ccvs.sym                led.sym                       spice_probe.sym
code_shown.sym          netlist_at_end.sym            spice_probe_vdiff.sym
code.sym                netlist_not_shown_at_end.sym  sqwsource.sym
conn_10x2.sym           netlist_not_shown.sym         switch_ngspice.sym
conn_14x1.sym           netlist_options.sym           switch.sym
conn_3x1.sym            netlist.sym                   switch_v_xyce.sym
conn_4x1.sym            ngspice_get_expr.sym          title-2.sym
conn_6x1.sym            ngspice_get_value.sym         title.sym
conn_8x1.sym            ngspice_probe.sym             use.sym
connector.sym           nmos3.sym                     var_res.sym
connect.sym             nmos4_depl.sym                vccs.sym
crystal-2.sym           nmos4.sym                     vcr.sym
crystal.sym             nmos-sub.sym                  vcvs.sym
dac_bridge.sym          nmos.sym                      vdd.sym
delay_line.sym          noconn.sym                    verilog_delay.sch
delay.sym               npn.sym                       verilog_delay.sym
device_param_probe.sym  opin.sym                      verilog_preprocessor.sym
diode.sym               package_not_shown.sym         verilog_timescale.sym
flash_cell.sym          package.sym                   vsource_arith.sym
generic_pin.sym         param_agauss.sym              vsource_pwl.sym
gnd.sym                 param.sym                     vsource.sym
ind.sym                 parax_cap.sym                 zener.sym
but problem exists
Copy code
Milad:/usr/local/share/pdk/sky130A/libs.tech/xschem$ xschem 
Warning: PDK_ROOT env. var. not found or empty, trying to find an open_pdks install
open_pdks installation: using /usr/local/share/pdk
SKYWATER_MODELS: /usr/local/share/pdk/sky130A/libs.tech/ngspice
SKYWATER_STDCELLS: /usr/local/share/pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/title.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/launcher.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/code.sym
% l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/code_shown.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/title.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/lab_pin.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/isource.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/res.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/capa.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/vsource.sym
l_s_d(): Symbol not found: /usr/local/share/pdk/sky130A/libs.tech/xschem/sky130_tests/devices/code.sym
and when i type
puts $XSCHEM_LIBRARY_PATH
in xschem tcl terminal i get
Copy code
/usr/local/share/xschem/xschem_library:/usr/local/share/pdk/sky130A/libs.tech/xschem:/home/milad/.xschem/xschem_library:/usr/local/share/pdk/sky130A/libs.tech/xschem
s
If i do the install i get this:
schippes@mazinga:~/xschem-git$ cd /usr/local/share/xschem/xschem_library/
schippes@mazinga:/usr/local/share/xschem/xschem_library$ ls
devices
So all the .sym files are under devices/ directory. I don't know why you don't have this directory. Please delete everything:
rm -rf /usr/local/bin/xschem /usr/local/bin/rawtovcd /usr/local/man/man1/xschem.1 /usr/local/share/xschem /usr/local/share/doc/xschem
remove the git repository:
rm -rf xschem_git
please redo the process and post here every single command , if you don't see the /`usr/local/share/xschem/xschem_library/devices` after `make install`Then we must investigate the system. This is the very first time i see
make install
"forgets" to create a
devices/
directory and puts all stuff in the parent directory... Also ensure you have enough free disk space Thank you for your help, this might help others if this issue appears to them.
m
@Stefan Schippers free disk space is about 10 GB.
Copy code
sudo rm -rf /usr/local/bin/xschem /usr/local/bin/rawtovcd /usr/local/man/man1/xschem.1 /usr/local/share/xschem /usr/local/share/doc/xschem
Copy code
rm -rf -v ~/EDA/xschem_git
Copy code
rm -r -v ~/.xschem/
Copy code
git clone <https://github.com/StefanSchippers/xschem> xschem_git
Copy code
Milad:~/EDA/xschem_git$  ./configure
Copy code
Milad:~/EDA/xschem_git$ make
Copy code
Milad:~/EDA/xschem_git$ sudo make install
finally it's working. the two different commands i was doing previously base on tutorial are:
Copy code
schippes@mazinga:~$ sudo rm -rf /usr/local/share/xschem/ /usr/local/share/doc/xschem/
Copy code
schippes@mazinga:~/xschem_git$ ./configure --prefix=/usr/local --user-conf-dir=~/.xschem --user-lib-path=~/share/xschem/xschem_library --sys-lib-path=/usr/local/share/xschem/xschem_library
maybe it was because of
./configure --sys-lib-path=/usr/local/share/xschem/xschem_library
s
Thank you very much!!!! I will fix the tutorial. Really appreciate your effort.
m
i thank you for your time and help.
s
@milad i have fixed the tutorial (refresh/reload browser page), the
--sys-lib-path
is now set to
/usr/local/share/xschem/xschem_library/devices
. Tutorial also shows that the sample
./configure
with all parameters is just doing what
./configure
(with no parameters) does. My fault was to install xschem without following line by line the tutorial. Thanks again.
m
I am glad you found that useful.