SPICELib.tutorial.norcmos

Nor gate

Information


Nor CMOS

The modeling and transient analysis of the CMOS nor gate shown in Figure 1 is discussed.
The transient analysis plot obtained using SPICELib and ORCAD PSpice are shown.

Figure 1. CMOS Nor Gate.

Circuit modeling

Transient (time) analysis (TRAN)

TRANSIENT ANALYSIS

Figure 10 shows the input stimuli. Figure 11 shows the results obtaines with SPICELib and ORCAD PSPICE and in Figure 12 the difference between the results obtained with SPICELib and ORCAD PSpice is presented.


Figure 10. Input stimuli.


Figure 11. Results obtained with SPICELib and ORCAD PSpice.


Figure 12. Difference between the results obtained with SPICELib and ORCAD.

NameDescription
schematic  
TRAN  


SPICELib.tutorial.norcmos.schematic

SPICELib.tutorial.norcmos.schematic

Information

        
Please, see SPICELib.tutorial.norcmos documentation

Modelica definition

model schematic 
  parts.breakout.Spice2MOS1P MPA(
    CJ=0.0004138, 
    L=2e-6, 
    LAMBDA=0.01525, 
    LD=1.063e-7, 
    MJSW=0.5, 
    PB=0.7485, 
    TOX=1.6e-8, 
    W=20e-6, 
    GAMMA=0.4, 
    KP=16e-6, 
    PHI=0.6, 
    VTO=-1, 
    CGBO=2e-8, 
    CGDO=2.248e-8, 
    CGSO=2.28e-8, 
    CJSW=1.004e-8, 
    PD=0.5e-7, 
    PS=0.5e-7, 
    AD=1e-8, 
    AS=1e-8);
  parts.breakout.Spice2MOS1P MPB(
    CJ=0.0004138, 
    L=2e-6, 
    LAMBDA=0.01525, 
    LD=1.063e-7, 
    MJSW=0.5, 
    PB=0.7485, 
    TOX=1.6e-8, 
    W=20e-6, 
    GAMMA=0.4, 
    KP=16e-6, 
    PHI=0.6, 
    VTO=-1, 
    CGBO=2e-8, 
    CGDO=2.248e-8, 
    CGSO=2.28e-8, 
    CJSW=1.004e-8, 
    PD=0.5e-7, 
    PS=0.5e-7);
  parts.breakout.Spice2MOS1 MNA(
    L=2e-6, 
    W=4e-6, 
    CJ=0.0003002, 
    LAMBDA=0.01302, 
    LD=1.526e-7, 
    MJ=0.5, 
    MJSW=0.5, 
    PB=0.7365, 
    TOX=1.6e-8, 
    RS=10, 
    RB=10, 
    CJSW=1.376e-15, 
    GAMMA=0.37, 
    KP=40e-6, 
    PHI=0.6, 
    VTO=1, 
    CGBO=2e-8, 
    CGDO=3.227e-8, 
    CGSO=3.227e-8, 
    PD=0.5e-7, 
    PS=0.5e-7);
  parts.breakout.Spice2MOS1 MNB(
    L=2e-6, 
    W=4e-6, 
    CJ=0.0003002, 
    LAMBDA=0.01302, 
    LD=1.526e-7, 
    MJ=0.5, 
    MJSW=0.5, 
    PB=0.7365, 
    TOX=1.6e-8, 
    RS=10, 
    RB=10, 
    CJSW=1.376e-15, 
    GAMMA=0.37, 
    KP=40e-6, 
    PHI=0.6, 
    VTO=1, 
    CGBO=2e-8, 
    CGDO=3.227e-8, 
    CGSO=3.227e-8, 
    PD=0.5e-7, 
    PS=0.5e-7);
  parts.source.VCONST VDD(
    AC_MAG=0, 
    DC_VALUE=5, 
    OFF=5);
  parts.breakout.Ground Ground2;
  parts.breakout.Ground Ground4;
  parts.source.VPULSE V1(
    PW=500e-9, 
    AC_MAG=0, 
    DC_VALUE=5, 
    S2=0, 
    S1=5, 
    TD=0e-9, 
    TF=20e-9, 
    TR=20e-9, 
    PER=1040e-9);
  parts.breakout.Ground Ground1;
  parts.source.VPULSE V2(
    AC_MAG=0, 
    TD=0e-9, 
    DC_VALUE=5, 
    S2=0, 
    S1=5, 
    PW=1000e-9, 
    PER=2040e-9, 
    TF=20e-9, 
    TR=20e-9);
  parts.breakout.Ground Ground3;
equation 
  connect(MNA.b, MNA.s);
  connect(MNB.b, MNB.s);
  connect(MNA.s, MNB.s);
  connect(MNA.d, MNB.d);
  connect(VDD.n, Ground4.p);
  connect(VDD.p, MPA.s);
  connect(MPB.s, MPA.d);
  connect(MPA.b, VDD.p);
  connect(MPB.b, VDD.p);
  connect(MPB.g, MNB.g);
  connect(MPA.g, MNA.g);
  connect(MNB.d, MPB.d);
  connect(V1.n, Ground2.p);
  connect(V1.p, MPA.g);
  connect(MNA.s, Ground1.p);
  connect(V2.n, Ground3.p);
  connect(V2.p, MPB.g);
end schematic;

SPICELib.tutorial.norcmos.TRAN

SPICELib.tutorial.norcmos.TRAN

Information

        
Please, see SPICELib.tutorial.norcmos documentation

Modelica definition

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

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