cbadc.circuit.simulator.NGSpiceSimulator
- class cbadc.circuit.simulator.NGSpiceSimulator(testbench: TestBench, step: float, t_end: float, netlist_filename: str = 'ngspice_sim.cir', raw_output_filename: str = 'ngspice_sim.raw', stdout_filename: str = 'ngspice_sim.stdout', stderr_filename: str = 'ngspice_sim.stderr', ac_freq_range=(1000.0, 10000000.0), options: dict[str] = {})[source]
Bases:
Iterator[ndarray]Simulate a testbench using NGSpice
Methods
__init__(testbench, step, t_end[, ...])cleanup()Cleanup the simulation files
Get the input signals from the simulation
Get the state trajectories from the simulation
Make the netlist for the simulation
parse()Parse the simulation results
run()Run the simulation
save_control_vector(filename)Save the control vector to a numpy file
Attributes
stept_endcontrol_vectortestbenchnetlist_filenameraw_output_filenameraw_filestdout_filenamestderr_filenamesimulation_time