tnt
10/25/2023, 6:52 PMTim Edwards
10/25/2023, 7:38 PMTim Edwards
10/25/2023, 7:41 PMStefan Schippers
10/25/2023, 8:54 PMtnt
10/25/2023, 8:59 PMStefan Schippers
10/25/2023, 9:12 PMFilippo
10/26/2023, 7:21 AMStefan Schippers
10/26/2023, 10:40 AMset num_threads=n
is set in .spiceinit) In this example below ngspice is using 4 threads (358% CPU). Ngspice can also parallelize the solver, as explained in section 19.6 of the manual. This is not a simple setup however.Filippo
10/26/2023, 12:01 PMtnt
10/26/2023, 12:04 PMStefan Schippers
10/26/2023, 12:42 PMnum_threads
above 4 does in any case not give any benefit, as far as I can tell.Filippo
10/27/2023, 7:58 AMset num_threads=4
set ngbehavior=hsa
set ng_nomodcheck
set enable_noisy_r
Filippo
10/27/2023, 8:04 AMHolger Vogt
10/27/2023, 11:59 AMStefan Schippers
10/27/2023, 3:05 PMStefan Schippers
10/30/2023, 9:31 PM203 seconds
with ngspice (same result in 2 runs)
> Simulation of a sky130 testbench with some 256 bit adders (CLA vs ripple carry, 23k MOS) took:
> ⢠1075 sec. with Ngspice
> ⢠750 sec. with Xyce
This testbench is now solved by ngspice in 1200 seconds
So I see an improvement in one case, not in the other.
Doing another run of the latest testcase --> confirmed 1203 seconds
Xyce test run again, done in 650 sec.
Simulation results are accurate and correct.
All tests done on a Core i7 laptop with Devuan Linux.
In latest test Xyce did save all voltages (I did not want it to):
Ngspice:
Raw file data read: /home/schippes/.xschem/simulations/test_carry_lookahead_ngspice.raw
points=1353, vars=1381, datasets=1 sim_type=tran
Xyce:
Raw file data read: /home/schippes/.xschem/simulations/test_carry_lookahead_xyce.spice.raw
points=1448, vars=10799, datasets=1 sim_type=tran
So I guess Xyce could do somewhat better if saving only the top level voltages I am interested in, although i don't think there are I/O bottlenecks on these examples.Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.
Powered by