Hello, I would like to know if it is possible to do a "complicated" Monte Carlo simulation in Xschem/NGspice. This would be a transient simulation where the result is the frequency of an oscillating signal at the output. (Before, I was measuring this frequency "by hand" by plotting the signal but this is clarly unfeasable for Monte Carlo)
s
Stefan Schippers
02/13/2025, 6:05 PM
I think you can run many transient runs and measure the period of the waveform automatically in ngspice by using .meas commands. See the manual. You can then create a vector with the measured period or its inverse (frequency) and save the data.
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.