Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Simulating T-flip Flop in Pspice

Status
Not open for further replies.

maitouk

Newbie level 1
Newbie level 1
Joined
May 10, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
pspice d flip-flop

Hello,

I'm trying to simulate a T-flip flop in P-spice I've written the netlist and it runs when i trace the outputs it doesn't Flip or Flop as it has to. i dunno what the problem.

Here is my netlist

Code:
cmos


vclk 2 0 pulse(0 5 1n 1n 1n 50u 100u)
vT 1 0 dc 5



X1 1 2 6 3 and3
X2 1 2 5 4 and33

X3 3 6 5 and2
X4 4 5 6 and22






.subckt inverter 2 3
M1 3 2 1 1 modp 	l=5u 	w=100u 	AS=40p PS=246u AD=54p PD=30u	
M2 0 3 3 3 modpdep l=5u w=30u AS=40p PS=246u AD=54p PD=30u

Vdd 1 0 dc 5
*vin 4 0 pulse ( 0 5 0 1n 1n 2u 4u)

.ends inverter


.subckt and3 2 4 6 3
M1 0 0 3 3 modpdep l=10u w=20u
M2 3 2 1 1 modp l=10u w=100u
M4 3 6 1 1 modp l=10u w=100u
M3 3 4 1 1 modp l=10u w=100u

Vdd 1 0 dc 5

.ends and3


.subckt and33 2 4 6 3
M1 0 0 3 3 modpdep l=.5u w=25u
M2 3 2 1 1 modp l=5u w=100u
M4 3 6 1 1 modp l=5u w=100u
M3 3 4 1 1 modp l=5u w=100u

Vdd 1 0 dc 5

.ends and33


.subckt and2 2 6 3
M1 0 0 3 3 modpdep l=10u w=20u
M2 3 2 1 1 modp l=.5u w=100u
M4 3 6 1 1 modp l=.5u w=100u

Vdd 1 0 dc 5

.ends and2


.subckt and22 2 6 3
M1 0 0 3 3 modpdep l=1u w=20u
M2 3 2 1 1 modp l=.5u w=100u
M4 3 6 1 1 modp l=.5u w=100u

Vdd 1 0 dc 5

.ends and22




.MODEL modp PMOS (                                LEVEL   = 7
+VERSION = 3.1            TNOM    = 27             TOX     = 5.7E-9
+XJ      = 1E-7           NCH     = 4.1589E17      VTH0    = -0.5787177
+K1      = 0.635996       K2      = 1.380646E-3    K3      = 0
+K3B     = 10.0951255     W0      = 1E-6           NLX     = 9.729342E-9
+DVT0W   = 0              DVT1W   = 0              DVT2W   = 0
+DVT0    = 2.0857552      DVT1    = 0.7947098      DVT2    = -0.1828928
+U0      = 109.770631     UA      = 1.297165E-9    UB      = 1E-21
+UC      = -1E-10         VSAT    = 1.758693E5     A0      = 1.1837275
+AGS     = 0.1940279      B0      = 4.348043E-8    B1      = -1E-7
+KETA    = 8.233118E-3    A1      = 0.0239481      A2      = 0.3
+RDSW    = 1.608502E3     PRWG    = -0.0283154     PRWB    = -0.1464045
+WR      = 1              WINT    = 0              LINT    = 2.710959E-8
+XL      = 0              XW      = -4E-8          DWG     = -3.836858E-8
+DWB     = 1.80516E-9     VOFF    = -0.1226156     NFACTOR = 1.2563609
+CIT     = 0              CDSC    = 2.4E-4         CDSCD   = 0
+CDSCB   = 0              ETA0    = 0.659241       ETAB    = -0.3006951
+DSUB    = 1.5            PCLM    = 1.2973063      PDIBLC1 = 0.0122384
+PDIBLC2 = 5.404201E-8    PDIBLCB = -5.969391E-4   DROUT   = 0.1640624
+PSCBE1  = 1.093973E10    PSCBE2  = 3.344252E-7    PVAG    = 2.77822E-3
+DELTA   = 0.01           RSH     = 3.2            MOBMOD  = 1
+PRT     = 0              UTE     = -1.5           KT1     = -0.11
+KT1L    = 0              KT2     = 0.022          UA1     = 4.31E-9
+UB1     = -7.61E-18      UC1     = -5.6E-11       AT      = 3.3E4
+WL      = 0              WLN     = 1              WW      = 0
+WWN     = 1              WWL     = 0              LL      = 0
+LLN     = 1              LW      = 0              LWN     = 1
+LWL     = 0              CAPMOD  = 2              XPART   = 0.5
+CGDO    = 6.49E-10       CGSO    = 6.49E-10       CGBO    = 1E-12
+CJ      = 1.878589E-3    PB      = 0.9780486      MJ      = 0.4653036
+CJSW    = 3.439462E-10   PBSW    = 0.8485755      MJSW    = 0.3562412
+CJSWG   = 2.5E-10        PBSWG   = 0.8485755      MJSWG   = 0.3562412
+CF      = 0              PVTH0   = 4.600436E-3    PRDSW   = -8.0409318
+PK2     = 2.471543E-3    WKETA   = 0.02672        LKETA   = -6.003097E-3    )

.MODEL modpdep PMOS (                                LEVEL   = 7
+VERSION = 3.1            TNOM    = 27             TOX     = 5.7E-9
+XJ      = 1E-7           NCH     = 4.1589E17      VTH0    = 0.5787177
+K1      = 0.635996       K2      = 1.380646E-3    K3      = 0
+K3B     = 10.0951255     W0      = 1E-6           NLX     = 9.729342E-9
+DVT0W   = 0              DVT1W   = 0              DVT2W   = 0
+DVT0    = 2.0857552      DVT1    = 0.7947098      DVT2    = -0.1828928
+U0      = 109.770631     UA      = 1.297165E-9    UB      = 1E-21
+UC      = -1E-10         VSAT    = 1.758693E5     A0      = 1.1837275
+AGS     = 0.1940279      B0      = 4.348043E-8    B1      = -1E-7
+KETA    = 8.233118E-3    A1      = 0.0239481      A2      = 0.3
+RDSW    = 1.608502E3     PRWG    = -0.0283154     PRWB    = -0.1464045
+WR      = 1              WINT    = 0              LINT    = 2.710959E-8
+XL      = 0              XW      = -4E-8          DWG     = -3.836858E-8
+DWB     = 1.80516E-9     VOFF    = -0.1226156     NFACTOR = 1.2563609
+CIT     = 0              CDSC    = 2.4E-4         CDSCD   = 0
+CDSCB   = 0              ETA0    = 0.659241       ETAB    = -0.3006951
+DSUB    = 1.5            PCLM    = 1.2973063      PDIBLC1 = 0.0122384
+PDIBLC2 = 5.404201E-8    PDIBLCB = -5.969391E-4   DROUT   = 0.1640624
+PSCBE1  = 1.093973E10    PSCBE2  = 3.344252E-7    PVAG    = 2.77822E-3
+DELTA   = 0.01           RSH     = 3.2            MOBMOD  = 1
+PRT     = 0              UTE     = -1.5           KT1     = -0.11
+KT1L    = 0              KT2     = 0.022          UA1     = 4.31E-9
+UB1     = -7.61E-18      UC1     = -5.6E-11       AT      = 3.3E4
+WL      = 0              WLN     = 1              WW      = 0
+WWN     = 1              WWL     = 0              LL      = 0
+LLN     = 1              LW      = 0              LWN     = 1
+LWL     = 0              CAPMOD  = 2              XPART   = 0.5
+CGDO    = 6.49E-10       CGSO    = 6.49E-10       CGBO    = 1E-12
+CJ      = 1.878589E-3    PB      = 0.9780486      MJ      = 0.4653036
+CJSW    = 3.439462E-10   PBSW    = 0.8485755      MJSW    = 0.3562412
+CJSWG   = 2.5E-10        PBSWG   = 0.8485755      MJSWG   = 0.3562412
+CF      = 0              PVTH0   = 4.600436E-3    PRDSW   = -8.0409318
+PK2     = 2.471543E-3    WKETA   = 0.02672        LKETA   = -6.003097E-3    )

.tran 0 1m 0.01u
.probe
.end

I'm using here arbitrary feature length and width values for testing.

thanks
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top