Hi <@U01819B63HP> , i included the .spiceinit file...
# xschem
r
Hi @Stefan Schippers , i included the .spiceinit file , but still seems slow. The crash was gone after i closed the other xschem terminals . Seems some memory issue at my virtual bocx , but not sure. Any suggestions.
m
@Ryan R Stefan's instructions were to create a
simulations/.spiceinit
file with the following contents:
Copy code
set ngbehavior=hsa
set ng_nomodcheck 
# set filetype=ascii
You said that you included it, which is not the same thing. Hopefully this helps. Besides the total elapsed run time, the only major difference I see between your result and Stefan's is the library pages.
r
@Mitch Bailey , yes i created the file and included the commands.. Am i missing anything ?
m
Hmm. Let me test it here.
s
@Mitch Bailey I just installed
open_pdks
, which takes care of downloading skywater spice models and patching them in many places. My open_pdks version is :
Copy code
commit 3a2a72e112d12771f528ed8b79b799222728e7eb (HEAD -> master, tag: 1.0.316, origin/open_pdks-1.0, origin/master, origin/HEAD)
Author: Tim Edwards <tim@opencircuitdesign.com>
Date:   Mon Jun 27 14:08:22 2022 -0400

    Corrected the sky130 JSON file to add a couple of missing commas
    that break JSON syntax.
installed using the usual:
./configure --enable-sky130-pdk --prefix=/home/schippes
make
[sudo] make install
in my case no sudo is necessary since i install in my home dir.
m
Thanks @Stefan Schippers. The cause might be in the pdk then. I get results closer to @Ryan R
Copy code
Total analysis time (seconds) = 12.1835

Total CPU time (seconds) = 2714.315 

Total DRAM available = 128931.973 MB.
DRAM currently available = 96590.703 MB.
Maximum ngspice program size = 1526.375 MB.
Current ngspice program size = 1499.145 MB.

Shared ngspice pages =    9.801 MB.
Text (code) pages =    5.574 MB.
Stack = 0 bytes.
Library pages = 1489.930 MB.


real	45m14.954s
user	45m9.544s
sys	0m4.787s
I'll try building the pdk locally instead of using the canned version and see what the difference is.
s
@Mitch Bailey During the 45' simulation is the CPU (at least the cores allocated to ngspice) running at full 100%? If not there is some other bottleneck, mat be some I/O issue...
m
I didn't watch the whole time, but when I did look, it was at 100%.
Well I tried the pdks for mpw-7a and got the same run times. I tried creating the pdks from the latest open_pdks, but still no change.
@Ryan R Try putting the
.spiceinit
in the same directory that you run
ngspice
. That worked for me.
Copy code
Total analysis time (seconds) = 12.0473

Total CPU time (seconds) = 34.669 

Total DRAM available = 128931.973 MB.
DRAM currently available = 41720.793 MB.
Maximum ngspice program size =  691.812 MB.
Current ngspice program size =  664.605 MB.

Shared ngspice pages =    9.629 MB.
Text (code) pages =    5.574 MB.
Stack = 0 bytes.
Library pages =  655.367 MB.


real	0m34.696s
user	0m31.774s
sys	0m2.920s
r
done. Thanks @Mitch Bailey
👍 1