Questions tagged [ngspice]
Anything related to NGSPICE, an open-source SPICE simulation program.
147 questions
1
vote
1
answer
118
views
Why does the following simulation not work regarding a zener diode regulating a LED?
Approximate schematic (for visualizing the topology only; the part identifiers are not accurate):
simulate this circuit – Schematic created using CircuitLab
Simulation:
...
0
votes
1
answer
75
views
Can ngspice be prevented from keeping the whole history in memory?
I would like to run a lengthy ngspice simulation. I notice the bottleneck is not CPU time (I am willing to wait quite a while for results) but memory (...
1
vote
0
answers
66
views
Simulating and understanding an old circuit board from old electric vehicle (NGGSPICE)
I have been recently working on a really old electric vehicle and going through all electronics to understand how it works. I stumbled across this rather weird analogue circuit which uses comparators ...
0
votes
1
answer
170
views
What is the explanation for this strange simulation result?
What is wrong with the below simulation? Why does V(cmpout) eventually go to 2.5V?
The file lm393.cir is available from: https://...
0
votes
0
answers
95
views
meas directive has issues with expressions and parameters [ngspice]
In a netlist being simulated using ngspice, why do the following expressions evaluate to different results:
...
2
votes
0
answers
108
views
CMOS analog design: Is there a difference between sizing using multiplier and width?
I'm beginning to learn about analog design in CMOS technology using the SkyWater 130 nm PDK on ngspice.
Doing some research I started to implement the \$g_m/I_D\$ approach to avoid excessive iteration ...
1
vote
0
answers
246
views
No compatibility mode selected in ngspice
I have just started using ngspice and moving from LTSpice due to its higher speed when processing very large netlists, and thus would like to take advantage of the ltps compatibility mode to be able ...
2
votes
2
answers
179
views
Discrepancy on Ngspice Simulation
I'm trying to simulate a boost converter on Ngspice. Purely for interest I decided to simulate the "real" circuit as well as a more idealized version of it. However, the simulated results do ...
3
votes
2
answers
525
views
KiCad Simulation: Automatically changing (stepping) the input voltage during the simulation?
I am using a VDC spice simulation power source, and the power is set to dc(24) (24 volts).
I want to change this so that I have a list of voltages and timesteps ...
0
votes
0
answers
68
views
Follow-up: Why doesn’t ngspice show any current variation with RD in this LED switching circuit?
This is a follow-up to my previous question.
I'm simulating a small switching stage in ngspice that should turn on an LED when the input signal goes LOW.
The circuit is this:
The logic is invertive: ...
0
votes
0
answers
199
views
Static Noise Margin (SNM) computations as described in an old paper
I have recently read an old paper that describes a way to implement a simple circuit by which we can calculate the SNM for 4T and 6T SRAM. I have partially implemented the circuit to see if it works, ...
0
votes
2
answers
130
views
Model PT100 in ngspice
I have the next subcircuit about PT100, SPICE gives me an error and I would like to fix it to use it.
...
2
votes
1
answer
146
views
Trying to replicate a full-wave rectifier circuit in ngspice, but I'm running into an issue where the output isn't behaving as expected
I am in 12th grade, and I have just started learning ngspice. I was experimenting with a part of a circuit that works as a full-wave rectifier, which I found online. I was trying to apply it and ...
9
votes
3
answers
622
views
How to fix my envelope detector script
I am 17 years old. I'm still in 12th grade. However, I love discovering new things and learning so I can be a more informed person.
So, it was suggested to me that I try to script an envelope detector ...
4
votes
3
answers
1k
views
Simulating a basic bridge-rectifier circuit
I went through this SE post before asking my question:
How do you design a bridge rectifier circuit?
I have been continuously trying to simulate bridge-rectifier circuit in KiCAD and have kept failing....