From a3102a704111271aa50ee77e1ede9ad79121fb3c Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 20 Apr 2026 17:02:10 +0200 Subject: [PATCH] Some tiny updates for pss examples --- examples/pss/19-nand-ro-IHP_ctrl.cir | 7 +++++-- examples/pss/hartley_osc_pss_ctrl.cir | 30 +++++++++++++++------------ examples/pss/vackar_osc_pss_ctrl.cir | 2 +- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/examples/pss/19-nand-ro-IHP_ctrl.cir b/examples/pss/19-nand-ro-IHP_ctrl.cir index e3ec97712..75772bdde 100644 --- a/examples/pss/19-nand-ro-IHP_ctrl.cir +++ b/examples/pss/19-nand-ro-IHP_ctrl.cir @@ -47,7 +47,7 @@ set temp=0 option klu run rusage -set xbrushwidth=3 +set xbrushwidth=2 *plot i(Vss) ylimit 0 500u xlimit 50n 60n plot out plot out xlimit 50n 60n @@ -60,8 +60,11 @@ plot mag(out) xlimit 300Meg 2300Meg meas sp fmax MAX_AT out from=1e8 to=1e9 echo reset -pss 500e6 10n out 256 10 5 5e-3 uic +pss 500e6 8n out 1024 10 5 5e-3 uic +setplot pss3 plot out xlimit 300Meg 2300Meg +setplot pss2 +plot out inventory .endc diff --git a/examples/pss/hartley_osc_pss_ctrl.cir b/examples/pss/hartley_osc_pss_ctrl.cir index 6594a93d5..7f41fee25 100644 --- a/examples/pss/hartley_osc_pss_ctrl.cir +++ b/examples/pss/hartley_osc_pss_ctrl.cir @@ -1,31 +1,35 @@ Hartley's Oscillator Circuit * Hartley is an harmonic oscillator (LC based) which use * an inductive partition of resonator to feed the single -* active device. Output is taken on node 2. +* active device. Output is taken on node n2. * Prediceted frequency is about 121.176 Hz. -* -* PLOT V(3) * Models: .model qnl npn(level=1 bf=80 rb=100 ccs=2pf tf=0.3ns tr=6ns cje=3pf cjc=2pf va=50) vcc 1 0 5 pwl 0 0 1e-5 5 -r1 1 2 0.2k -q1 2 3 0 qnl +r1 1 n2 0.2k +q1 n2 3 0 qnl c1 3 4 633n l1 3 0 1.5 l2 0 4 500m -r2 4 2 100 +r2 4 n2 100 .control -set xbrushwidth=3 +set xbrushwidth=2 tran 10u 1 -plot v(2) -linearize v(2) -fft v(2) -plot mag(V(2)) xlimit 0 500 ylimit 0 1.5 +rusage time +plot v(n2) xlimit 0 100m +linearize v(n2) np=65536 +fft v(n2) +plot mag(V(n2)) xlimit 0 500 ylimit 0 1.5 reset -pss 50 200e-3 2 1024 11 10 5e-3 -plot v(2) xlimit 0 500 ylimit 0 1.5 +* gfreq tstab oscnob psspoints harms sciter steadycoeff +pss 120 100e-3 n2 1024 11 10 5e-3 +rusage +setplot pss1 +plot v(n2) xlimit 0 500 ylimit 0 1.5 +setplot pss2 +plot v(n2) .endc diff --git a/examples/pss/vackar_osc_pss_ctrl.cir b/examples/pss/vackar_osc_pss_ctrl.cir index 27f1c8eab..871ed07b4 100644 --- a/examples/pss/vackar_osc_pss_ctrl.cir +++ b/examples/pss/vackar_osc_pss_ctrl.cir @@ -26,7 +26,7 @@ plot mag(v(4)) xlimit 0 10Meg let maxfft=mag(v(4)) meas sp fosc MAX_AT maxfft from=1Meg to=10Meg reset -pss 1.8e6 10e-6 4 1024 10 50 5e-3 uic +pss 1.8e6 20e-6 4 1024 10 50 5e-3 uic plot v(4) xlimit 0 10Meg .endc .end