** NGspice Simulation of 'spice_example7' (Lib: Spice)

***** Note:   to understand non-NGspice commands below,
*****         look at HSPC manual at http://www.cppsim.com/manuals

***** Parameters for Calculation of Diffusion Regions for CMOS Process
> set_mode_diff geo
> set_hdout .66u
> set_hdin .74u
> use_four_sided_perimeter

***** Transistor Model File
***** Specify appropriate CMOS and Bipolar model files below
.include '../../../SpiceModels/cmos_013_bsim4.mod'
.include '../../../SpiceModels/bipolar.mod'
***** Temperature
.temp 25

**** added line below using 'hspc_addline' function ****
.noise v(out) vin dec 1e3 10 100e3

**** added line below using 'hspc_addline_continued' function ****
.probe inoise_spectrum onoise_spectrum

***** Parameters
.param r1_en = 1 r2_en = 1 r3_en = 1 
.param r1_val = 100000000.0 r2_val = 100000.0 r3_val = 100000.0 
.global vdd gnd

***** DC Voltage Sources
**Vsup vdd 0 'vsupply'

***** Simulation Options
.options post=1 delmax=5p relv=1e-6 reli=1e-6 relmos=1e-6 method=gear

