Post processing the ngspice simulation outputs using Hspice Toolbox and matlabBefore proceeding with the postprocessing we need to note a few issues:
1. give up visualizing the simulation outputs through electric and use ngspice CLI instead
set filetype=binary 2. start ngspice, load the simulation data, and re-save it in binary format 3. edit the control session (.control … .endc) of the schematic (or netlist) and write the raw file both in ascii and binary format
.control ... set filetype=ascii write ./spiceout/C5_inverter_VTC_ngsp.raw v(in) v(out) dvout VSW VIL VIH VOH VOL set filetype=binary write ./spiceout/C5_inverter_VTC_ngsp_bin.raw v(in) v(out) dvout VSW VIL VIH VOL ... .endc For the moment we will “stick” with option 2. matlab script |