SPICELib.tutorial.circ2

Example 2 of SPICELib tutorial

Information


Example 2

The modeling and transient analysis of the CMOS inverter shown in Figure 1 is discussed.
The transient analysis plot obtained using SPICELib is shown.

Figure 1. CMOS Inverter.

Circuit modeling

Transient (time) analysis (TRAN)

TRANSIENT ANALYSIS SIMULATED WITH SPICELIB


Figure 10. Transient analysis simulated with SPICELib.

NameDescription
schematic  
circ2_Tran  


SPICELib.tutorial.circ2.schematic

SPICELib.tutorial.circ2.schematic

Information

        
Please, see SPICELib.tutorial.circ2 documentation

Modelica definition

partial model schematic 
  parts.breakout.Spice2MOS1 NMOS(
    L=2e-6, 
    W=4e-6, 
    CGDO=3.227e-10, 
    CGSO=3.227e-10, 
    CJ=0.0003002, 
    CJSW=1.376e-10, 
    GAMMA=0.2844, 
    KP=5.317e-5, 
    LAMBDA=0.01302, 
    LD=1.526e-7, 
    MJ=0.5, 
    MJSW=0.5, 
    PB=0.7365, 
    PHI=0.7095, 
    TOX=1.6e-8, 
    VTO=0.8307, 
    RS=10, 
    RB=10);
  parts.breakout.Ground Ground1;
  parts.breakout.Ground Ground2;
  parts.source.VPULSE VPULSE1(
    PW=500e-9, 
    AC_MAG=0, 
    TD=500e-9, 
    PER=1020e-9, 
    DC_VALUE=5, 
    S2=0, 
    S1=5, 
    TF=70e-9, 
    TR=70e-9);
  parts.breakout.Spice2MOS1P PMOS(
    CGDO=2.248e-10, 
    CGSO=2.28e-10, 
    CJ=0.0004138, 
    CJSW=1.004e-10, 
    KP=2.239e-5, 
    L=2e-6, 
    LAMBDA=0.01525, 
    LD=1.063e-7, 
    MJSW=0.5, 
    PB=0.7485, 
    PHI=0.7054, 
    TOX=1.6e-8, 
    VTO=-0.8407, 
    W=20e-6);
  parts.breakout.Ground Ground3;
  parts.source.VSIN VDD(
    OFF=5, 
    AMPL=0, 
    FREQ=0, 
    DC_VALUE=5, 
    AC_MAG=0);
equation 
  connect(Ground1.p, NMOS.s);
  connect(PMOS.g, NMOS.g);
  connect(PMOS.d, NMOS.d);
  connect(VPULSE1.p, NMOS.g);
  connect(NMOS.b, Ground1.p);
  connect(VPULSE1.n, Ground3.p);
  connect(VDD.n, Ground2.p);
  connect(VDD.p, PMOS.s);
  connect(PMOS.s, PMOS.b);
end schematic;

SPICELib.tutorial.circ2.circ2_Tran

SPICELib.tutorial.circ2.circ2_Tran

Information

        
Please, see SPICELib.tutorial.circ2 documentation

Modelica definition

model circ2_Tran 
  analyses.TRAN TRAN(
    LogResults=0, 
    redeclare model Circuit = schematic, 
    TSTOP=1e-6, 
    SOLVE_STATIC=0, 
    TimeScale=1e-7, 
    SKIPBP=false);
end circ2_Tran;

HTML-documentation generated by Dymola Tue Oct 14 18:26:40 2003 .