logo elektroda
logo elektroda
X
logo elektroda

LTspice vs ngspice: Why Do I Get Different Results With the Same Netlist?

60 9
ADVERTISEMENT
  • #1 21666434
    Tiziano B
    Anonymous  
  • ADVERTISEMENT
  • #2 21666435
    Todd Hayden
    Anonymous  
  • ADVERTISEMENT
  • #3 21666436
    Tiziano B
    Anonymous  
  • #4 21666437
    Earl Albin
    Anonymous  
  • #5 21666438
    Tiziano B
    Anonymous  
  • #6 21666439
    Steve Lawson
    Anonymous  
  • ADVERTISEMENT
  • #7 21666440
    Earl Albin
    Anonymous  
  • #8 21666441
    Tiziano B
    Anonymous  
  • #9 21666442
    Earl Albin
    Anonymous  
  • ADVERTISEMENT
  • #10 21666443
    Tiziano B
    Anonymous  

Topic summary

A comparison between LTspice and ngspice simulations using the same netlist revealed significant differences in results. The discrepancies are attributed primarily to differences in simulator algorithms, convergence techniques, and simulation parameters such as relative tolerance (reltol), maximum and minimum step times. Both simulators apply trade-offs between accuracy and convergence speed, which can lead to divergent outputs even with identical netlists. Adjusting component values to theoretically correct conditions yielded more comparable results, indicating that simulation accuracy depends on circuit conditions and solver approaches. It is recommended to benchmark against a Berkeley SPICE-compliant simulator to identify which simulator provides more accurate results. The discussion highlights the importance of understanding transient analysis, steady-state conditions, and simulation parameter tuning to achieve meaningful and comparable outcomes in free SPICE tools.
Summary generated by the language model.
ADVERTISEMENT