* Z:\home\khalils\Downloads\files\data\raw_asc\46e14fb7ea05_HW4_P1.asc
* Generated by LTspice 26.0.1 for Windows.
* --- Operating Point ---\n \nV(vin): 2.5 voltage\nV(vout): 2.31419 voltage\nV(n002): 2.31419 voltage\nV(n001): 5 voltage\nId(M1): -0.0013555 device_current\nIg(M1): -0 device_current\nIs(M1): 0.0013555 device_current\nIb(M1): 2.69581e-12 device_current\nI(ID): 0.0013555 device_current\nI(V2): 0 device_current\nI(V1): -0.0013555 device_current\nId(M2): 0.0013555 device_current\nIg(M2): 0 device_current\nIs(M2): -0.0013555 device_current\nIb(M2): -2.32419e-12 device_current
* --- MOSFET Transistors ---\nName: M1 M2\nModel: mp_p1 mn_p1\nId: -1.36e-03 1.36e-03\nVgs: -2.50e+00 2.50e+00\nVds: -2.69e+00 2.31e+00\nVbs: 0.00e+00 0.00e+00\nVth: -1.30e+00 1.20e+00\nVdsat: -1.20e+00 1.30e+00\nGm: 2.26e-03 2.09e-03\nGds: 4.90e-05 3.80e-05\nGmb: 7.58e-04 6.33e-04\nCbd: 0.00e+00 0.00e+00\nCbs: 0.00e+00 0.00e+00\nCgsov: 0.00e+00 0.00e+00\nCgdov: 0.00e+00 0.00e+00\nCgbov: 0.00e+00 0.00e+00\nCgs: 0.00e+00 0.00e+00\nCgd: 0.00e+00 0.00e+00\nCgb: 0.00e+00 0.00e+00
M1 N002 Vin N001 N001 MP_P1 l=1u w=17u m=1
V1 N001 0 {VDD}
VID N002 Vout 0
V2 Vin 0 {Vin}
M2 Vout Vin 0 0 MN_P1 l=1u w=5u m=1
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.option logopinfo
.param VDD 5
.param Vin 2.5
.model MP_P1 PMOS(Kp=100u Vto=-1.3 Lambda=0.04 Gamma=0.52 Phi=0.6)
.model MN_P1 NMOS(Kp=300u Vto=1.2 Lambda=0.03 Gamma=0.47 Phi=0.6)
.op
.dc V2 0 5 1m
.backanno
.end

* LTspice schematic (.asc):
Version 4.1
SHEET 1 1548 720
WIRE 224 -48 224 -96
WIRE 272 -48 224 -48
WIRE 224 0 224 -48
WIRE 176 16 112 16
WIRE 272 48 272 -48
WIRE 272 48 224 48
WIRE 224 144 224 96
WIRE 16 272 -16 272
WIRE 112 272 112 16
WIRE 112 272 16 272
WIRE 224 272 224 224
WIRE 288 272 224 272
WIRE 16 304 16 272
WIRE 224 416 224 272
WIRE 272 464 224 464
WIRE 112 496 112 272
WIRE 176 496 112 496
WIRE 224 544 224 512
WIRE 272 544 272 464
WIRE 272 544 224 544
WIRE 224 608 224 544
SYMBOL pmos4 176 96 M180
WINDOW 123 56 4 Left 2
SYMATTR Value2 l=1u w=17u m=1
SYMATTR InstName M1
SYMATTR Value MP_P1
SYMBOL voltage 224 -80 R180
WINDOW 0 24 96 Left 2
WINDOW 3 24 16 Left 2
SYMATTR InstName V1
SYMATTR Value {VDD}
SYMBOL voltage 224 128 R0
SYMATTR InstName ID
SYMATTR Value 0
SYMBOL voltage 16 288 R0
SYMATTR InstName V2
SYMATTR Value {Vin}
SYMBOL nmos4 176 416 R0
WINDOW 123 56 100 Left 2
SYMATTR Value2 l=1u w=5u m=1
SYMATTR InstName M2
SYMATTR Value MN_P1
FLAG -16 272 Vin
FLAG 288 272 Vout
FLAG 224 -176 0
FLAG 224 608 0
FLAG 16 384 0
TEXT 512 -192 Left 2 !.option logopinfo\n.param VDD 5\n.param Vin 2.5\n.model MP_P1 PMOS(Kp=100u Vto=-1.3 Lambda=0.04 Gamma=0.52 Phi=0.6)\n.model MN_P1 NMOS(Kp=300u Vto=1.2 Lambda=0.03 Gamma=0.47 Phi=0.6)
TEXT 512 32 Left 2 !.op
TEXT 512 80 Left 2 ;--- Operating Point ---\n \nV(vin):          2.5             voltage\nV(vout):         2.31419         voltage\nV(n002):         2.31419         voltage\nV(n001):         5               voltage\nId(M1):          -0.0013555      device_current\nIg(M1):          -0              device_current\nIs(M1):          0.0013555       device_current\nIb(M1):          2.69581e-12     device_current\nI(ID):           0.0013555       device_current\nI(V2):           0               device_current\nI(V1):           -0.0013555      device_current\nId(M2):          0.0013555       device_current\nIg(M2):          0               device_current\nIs(M2):          -0.0013555      device_current\nIb(M2):          -2.32419e-12    device_current
TEXT 1032 80 Left 2 ;--- MOSFET Transistors ---\nName:           M1          M2\nModel:        mp_p1       mn_p1\nId:         -1.36e-03    1.36e-03\nVgs:        -2.50e+00    2.50e+00\nVds:        -2.69e+00    2.31e+00\nVbs:         0.00e+00    0.00e+00\nVth:        -1.30e+00    1.20e+00\nVdsat:      -1.20e+00    1.30e+00\nGm:          2.26e-03    2.09e-03\nGds:         4.90e-05    3.80e-05\nGmb:         7.58e-04    6.33e-04\nCbd:         0.00e+00    0.00e+00\nCbs:         0.00e+00    0.00e+00\nCgsov:       0.00e+00    0.00e+00\nCgdov:       0.00e+00    0.00e+00\nCgbov:       0.00e+00    0.00e+00\nCgs:         0.00e+00    0.00e+00\nCgd:         0.00e+00    0.00e+00\nCgb:         0.00e+00    0.00e+00
TEXT 568 32 Left 2 !.dc V2 0 5 1m