From f7c32d5edd89d5c080194ea3b5748f77b9e8e74d Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Tue, 18 Nov 2025 16:01:19 +0100 Subject: [PATCH] Update: add frequency measurement and temperature dependency. --- examples/mos/ro_17_4.cir | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/examples/mos/ro_17_4.cir b/examples/mos/ro_17_4.cir index c4dccaa89..930ccb04a 100644 --- a/examples/mos/ro_17_4.cir +++ b/examples/mos/ro_17_4.cir @@ -42,33 +42,36 @@ mp17 2 18 1 1 p1 l=0.1u w=10u ad=5p pd=6u as=5p ps=6u mn17 2 18 0 0 n1 l=0.1u w=5u ad=5p pd=6u as=5p ps=6u c1 18 0 .1p -* .ic v(2)=1.0 v(3)=1.0 v(4)=1.0 -* .ic v(2)=2.0 v(3)=0.0 v(4)=2.0 -* .ic v(2)=2.0 v(3)=0.0 v(4)=2.0 v(5)=0.0 v(6)=2.0 -* .ic v(7)=0.0 v(8)=2.0 v(9)=0.0 v(10)=2.0 v(11)=0.0 v(12)=2.0 -* .ic v(13)=0.0 v(14)=2.0 v(15)=0.0 v(16)=2.0 v(17)=0.0 v(18)=2.0 -* .ic V(10)=5 v(2)=5 v(3)=5 v(4)=5 v(5)=5 v(6)=5 - -* .ic v(18)=1 - .tran .1ns 150ns uic -* .option xmu = 0.49 -* .print tran v(5) - .control * reduce current ringing option xmu = 0.49 -* set xmu=0.49 -set num_threads=8 set noinit -run +run ; temp is 27°C * current and output in a single plot plot v(18) 1000*(-I(vdd)) ylimit -1 6 +meas tran tdiff TRIG v(18) VAL=0.5 RISE=10 TARG v(18) VAL=0.5 RISE=20 +let freq = 10/tdiff +let delay = tdiff/17 +print freq delay +echo +echo + +set temp=100 +run ; temp is 100°C + +* current and output in a single plot +plot v(18) 1000*(-I(vdd)) ylimit -1 6 + +meas tran tdiff TRIG v(18) VAL=0.5 RISE=10 TARG v(18) VAL=0.5 RISE=20 +let freq = 10/tdiff +let delay = tdiff/17 +print freq delay .endc * Short channel models from CMOS Circuit Design, Layout, and Simulation,