Questions tagged [ngspice]
6 questions
                    
                    1
                    
            vote
                
                1 answer
            
        how can output data from a rawfile or svg?
there! I'm using Ngspice to do circuit simulations. and plot a vector,but i don't know how to export data from an svg or raw file.The circuit is like below.
and the netlist is below
ivdd 0 nd_pkg_pad 0 ac 1.0
.ac dec 100 10meg 10g
.save…
        
        Fo Oc
        
- 33
 - 5
 
                    0
                    
            votes
                
                0 answers
            
        How to introduce a behavioural condenser into a circuit in PySpice?
Recently switched to PySpice from ngSPICE. Immediately a question arose - how to introduce a behavioural capacitor or other behavioural element (current source, resistor, inductance) into the circuit. In ngSPICE the element is described directly via…
        
        Ivan Oreshko
        
- 1
 - 2
 
                    0
                    
            votes
                
                0 answers
            
        SciPy constrains set-up
I am getting a bit confused, probably due to my engineering back ground rather than Mathematics.
I would like to use SciPy to find a coefficient of a function for instance:
def function(x, coeff):
A, B, C, D, E = coeff
return (A * x ** 2 + B * x)/(C…
        
        bonito
        
- 11
 - 2
 
                    0
                    
            votes
                
                0 answers
            
        Monitoring progress in an ngspice simulation
In order to create a GUI for ngspice using PyQt, I was in search for some numbers that I could use to indicate the progress of a simulation for a progress bar. Even after reading a lot of the documentation I wasn't able to find any. Are there any…
        
        theunixdisaster
        
- 45
 - 2
 - 6
 
                    0
                    
            votes
                
                0 answers
            
        Can NGSPICE run average measurements
I am trying to run ngspice
.meas tran normal_bias AVG v( i_in_normal )
.meas tran normal_bias_from AVG v( i_in_normal ) from=1e-7 to=1e-6
And I got:
Error: measure  normal_bias  (TRIG) : bad syntax of ??
.meas tran normal_bias avg v( i_in_normal )…
        
        user1134991
        
- 3,003
 - 2
 - 25
 - 35
 
                    0
                    
            votes
                
                0 answers
            
        adding comments in the control section of ngspice netlist
In an ngspice netlist, one can add analysis, and other commands, in the control section.
For example:
.control
unset askquit
save vcc # branch
tran 1 n 500 n
plot vcc # branch
rusage all
.endc
Is there a way to add comments within the control…
        
        user1134991
        
- 3,003
 - 2
 - 25
 - 35