* SPICE netlist
XU1 0 N008 N001 N013 SINEPART UA741 ;pnba In+)In-)V+)V-)OUT
R1 N008 OUTTT 15.9k
C1 SINEPART N008 77.08p
D1 N008 N009 1N4148
R2 N004 N009 12.75k
V1 N004 0 -50m
R3 N009 SINEPART 2.7k
R4 SINEPART N014 2.7k
D2 N014 N008 1N4148
V2 0 N017 -50m
R5 N014 N017 12.75k
R6 N010 SINEPART 31.8k
C2 N010 0 77.08p
XU2 N010 N006 N001 N013 OUTTT UA741 ;pnba In+)In-)V+)V-)OUT
R7 OUTTT N010 31.8k
R8 N006 0 31.8k
R9 OUTTT N006 31.8k
V3 0 N013 8
V4 N001 0 8
XU3 OUTTT COSPART N001 N013 COSPART UA741 ;pnba In+)In-)V+)V-)OUT
Cc1 N002 COSPART 100p
RBias1 N003 N002 100k
Vbias1 N003 0 1
Vin1 N007 0 SINE(0 100m 101k)
M1 Vif N002 N007 0 CMOSN l={2*LAMBDA} w={width_N} ad={5*width_N*LAMBDA} as={5*width_N*LAMBDA} pd={10*LAMBDA + 2*width_N} ps={10*LAMBDA + 2*width_N} m=1
RL1 Vif 0 1k
R10 N005 Vif 8k
C3 N005 0 10n
R11 VoutCOS N005 8k
C4 VoutCOS 0 10n
Cc2 N011 SINEPART 100p
RBias2 N012 N011 100k
Vbias2 N012 0 1
Vin2 N016 0 SINE(0 100m 101k)
M2 Viq N011 N016 0 CMOSN l={2*LAMBDA} w={width_N} ad={5*width_N*LAMBDA} as={5*width_N*LAMBDA} pd={10*LAMBDA + 2*width_N} ps={10*LAMBDA + 2*width_N} m=1
RL2 Viq 0 1k
R12 N015 Viq 8k
C5 N015 0 10n
R13 VoutSINE N015 8k
C6 VoutSINE 0 10n
.inc "C:\Users\varun\OneDrive\Documents\Sem2\AEC\Project\UA741.301"
.tran 50m uic
.param LAMBDA=0.09u
.param width_N=1.8u
.include "C:\Users\varun\OneDrive\Documents\Sem2\AEC\Project\TSMC_180nm.txt"

* LTspice schematic (.asc)
Version 4
SHEET 1 3504 1104
WIRE -136 -552 -1288 -552
WIRE -360 -488 -968 -488
WIRE -712 -456 -744 -456
WIRE -744 -440 -744 -456
WIRE -712 -440 -712 -456
WIRE 616 -376 552 -376
WIRE 696 -376 680 -376
WIRE 760 -376 696 -376
WIRE 952 -376 840 -376
WIRE 952 -344 952 -376
WIRE 424 -312 136 -312
WIRE 552 -312 552 -376
WIRE 552 -312 424 -312
WIRE -136 -296 -136 -552
WIRE 72 -296 -136 -296
WIRE -744 -280 -744 -360
WIRE 696 -280 696 -376
WIRE 1224 -280 1128 -280
WIRE 1352 -280 1304 -280
WIRE 1560 -280 1352 -280
WIRE 1688 -280 1640 -280
WIRE 1752 -280 1688 -280
WIRE -360 -248 -360 -488
WIRE -344 -248 -360 -248
WIRE 952 -248 952 -264
WIRE 1352 -248 1352 -280
WIRE 1688 -248 1688 -280
WIRE 872 -232 776 -232
WIRE -1288 -216 -1288 -552
WIRE -1288 -216 -1480 -216
WIRE -968 -216 -968 -488
WIRE -968 -216 -1288 -216
WIRE -328 -216 -408 -216
WIRE -104 -216 -248 -216
WIRE 1128 -216 1128 -280
WIRE 1128 -216 968 -216
WIRE 680 -200 680 -232
WIRE 680 -200 552 -200
WIRE 728 -200 728 -232
WIRE -856 -184 -1048 -184
WIRE 552 -184 552 -200
WIRE 872 -184 872 -232
WIRE 968 -184 968 -216
WIRE 968 -184 872 -184
WIRE -1480 -168 -1480 -216
WIRE -856 -168 -856 -184
WIRE -744 -168 -744 -200
WIRE -744 -168 -792 -168
WIRE 872 -168 872 -184
WIRE -744 -152 -744 -168
WIRE -344 -152 -344 -248
WIRE 136 -152 136 -312
WIRE 136 -152 24 -152
WIRE 1352 -152 1352 -184
WIRE 1352 -152 1128 -152
WIRE 1464 -152 1352 -152
WIRE 1688 -152 1688 -184
WIRE 1688 -152 1464 -152
WIRE 1752 -152 1688 -152
WIRE -1048 -136 -1048 -184
WIRE -888 -136 -984 -136
WIRE -552 -136 -584 -136
WIRE -408 -136 -408 -216
WIRE -408 -136 -472 -136
WIRE -376 -136 -408 -136
WIRE 1128 -136 1128 -152
WIRE 1464 -136 1464 -152
WIRE -584 -120 -584 -136
WIRE -104 -120 -104 -216
WIRE -104 -120 -312 -120
WIRE -376 -104 -424 -104
WIRE 72 -88 72 -296
WIRE 552 -88 552 -104
WIRE -1480 -72 -1480 -88
WIRE -1480 -72 -1544 -72
WIRE -968 -72 -968 -216
WIRE 24 -72 24 -152
WIRE 40 -72 24 -72
WIRE -1544 -56 -1544 -72
WIRE -1048 -56 -1048 -136
WIRE -1048 -56 -1096 -56
WIRE -1000 -56 -1048 -56
WIRE 136 -56 136 -152
WIRE 136 -56 104 -56
WIRE 872 -56 872 -88
WIRE -1480 -40 -1480 -72
WIRE -888 -40 -888 -136
WIRE -888 -40 -936 -40
WIRE -856 -40 -888 -40
WIRE -808 -40 -856 -40
WIRE -744 -40 -744 -72
WIRE -744 -40 -808 -40
WIRE -616 -40 -744 -40
WIRE -424 -40 -424 -104
WIRE -424 -40 -536 -40
WIRE -312 -40 -424 -40
WIRE -136 -40 -232 -40
WIRE -104 -40 -104 -120
WIRE -104 -40 -136 -40
WIRE 40 -40 -104 -40
WIRE -1000 -24 -1032 -24
WIRE -1032 -8 -1032 -24
WIRE -744 -8 -744 -40
WIRE 600 24 536 24
WIRE 680 24 664 24
WIRE 744 24 680 24
WIRE 936 24 824 24
WIRE -424 40 -424 -40
WIRE -968 56 -968 -8
WIRE -968 56 -1416 56
WIRE 936 56 936 24
WIRE -1480 104 -1480 40
WIRE -1416 104 -1416 56
WIRE -1416 104 -1480 104
WIRE -1048 104 -1048 -56
WIRE -984 104 -1048 104
WIRE 536 104 536 24
WIRE 536 104 456 104
WIRE -920 120 -920 104
WIRE -744 120 -744 72
WIRE -744 120 -920 120
WIRE 680 120 680 24
WIRE 1208 120 1112 120
WIRE 1336 120 1288 120
WIRE 1544 120 1336 120
WIRE 1672 120 1624 120
WIRE 1736 120 1672 120
WIRE -1416 136 -1416 104
WIRE -1416 136 -1752 136
WIRE 456 136 456 104
WIRE -424 152 -424 104
WIRE 936 152 936 136
WIRE 1336 152 1336 120
WIRE 1672 152 1672 120
WIRE -744 168 -744 120
WIRE 856 168 760 168
WIRE 1112 184 1112 120
WIRE 1112 184 952 184
WIRE 664 200 664 168
WIRE 664 200 536 200
WIRE 712 200 712 168
WIRE 536 216 536 200
WIRE 856 216 856 168
WIRE 952 216 952 184
WIRE 952 216 856 216
WIRE 856 232 856 216
WIRE 1336 248 1336 216
WIRE 1336 248 1112 248
WIRE 1448 248 1336 248
WIRE 1672 248 1672 216
WIRE 1672 248 1448 248
WIRE 1736 248 1672 248
WIRE 1112 264 1112 248
WIRE 1448 264 1448 248
WIRE -744 296 -744 248
WIRE 536 312 536 296
WIRE 856 344 856 312
WIRE -1176 440 -1176 -56
WIRE -104 440 -104 -40
WIRE -104 440 -1176 440
WIRE -1416 456 -1416 136
WIRE -344 456 -344 -88
WIRE -344 456 -1416 456
WIRE -1752 504 -1752 136
WIRE 72 504 72 -24
WIRE 72 504 -1752 504
WIRE -856 552 -856 -40
WIRE 456 552 456 136
WIRE 456 552 -856 552
FLAG -1032 -8 0
FLAG -712 -440 0
FLAG -808 -40 out
FLAG -744 376 0
FLAG -424 152 0
FLAG -584 -120 0
FLAG -1544 -56 0
FLAG -136 -40 OUTTT
FLAG 952 -248 0
FLAG 728 -200 0
FLAG 552 -88 0
FLAG 872 -56 0
FLAG 968 -184 Vif
FLAG 1128 -136 0
FLAG 1464 -136 0
FLAG 1752 -280 VoutCOS
FLAG 424 -312 COSPART
FLAG 936 152 0
FLAG 712 200 0
FLAG 536 312 0
FLAG 856 344 0
FLAG 952 216 Viq
FLAG 1112 264 0
FLAG 1448 264 0
FLAG 1736 120 VoutSINE
FLAG 456 136 SINEPART
SYMBOL OpAmps\\opamp2 -968 -104 R0
SYMATTR InstName U1
SYMATTR Value UA741
SYMBOL res -1080 -72 R90
SYMATTR InstName R1
SYMATTR Value 15.9k
SYMBOL cap -984 -152 R90
SYMATTR InstName C1
SYMATTR Value 77.08p
SYMBOL diode -856 -152 R270
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL res -760 -296 R0
SYMATTR InstName R2
SYMATTR Value 12.75k
SYMBOL voltage -744 -344 R180
SYMATTR InstName V1
SYMATTR Value -50m
SYMBOL res -760 -168 R0
SYMATTR InstName R3
SYMATTR Value 2.7k
SYMBOL res -760 -24 R0
SYMATTR InstName R4
SYMATTR Value 2.7k
SYMBOL diode -920 88 R90
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL voltage -744 392 R180
SYMATTR InstName V2
SYMATTR Value -50m
SYMBOL res -760 152 R0
SYMATTR InstName R5
SYMATTR Value 12.75k
SYMBOL res -520 -56 R90
SYMATTR InstName R6
SYMATTR Value 31.8k
SYMBOL cap -440 40 R0
SYMATTR InstName C2
SYMATTR Value 77.08p
SYMBOL OpAmps\\opamp2 -344 -184 R0
SYMATTR InstName U2
SYMATTR Value UA741
SYMBOL res -216 -56 R90
SYMATTR InstName R7
SYMATTR Value 31.8k
SYMBOL res -456 -152 R90
SYMATTR InstName R8
SYMATTR Value 31.8k
SYMBOL res -232 -232 R90
SYMATTR InstName R9
SYMATTR Value 31.8k
SYMBOL voltage -1480 -56 R0
SYMATTR InstName V3
SYMATTR Value 8
SYMBOL voltage -1480 -184 R0
SYMATTR InstName V4
SYMATTR Value 8
SYMBOL OpAmps\\opamp2 72 -120 R0
SYMATTR InstName U3
SYMATTR Value UA741
SYMBOL cap 680 -392 R90
SYMATTR InstName Cc1
SYMATTR Value 100p
SYMBOL res 856 -392 R90
SYMATTR InstName RBias1
SYMATTR Value 100k
SYMBOL voltage 952 -360 R0
SYMATTR InstName Vbias1
SYMATTR Value 1
SYMBOL voltage 552 -200 R0
SYMATTR InstName Vin1
SYMATTR Value SINE(0 100m 101k)
SYMBOL nmos4 776 -280 R90
SYMATTR InstName M1
SYMATTR Value CMOSN
SYMATTR Value2 l={2*LAMBDA} w={width_N} ad={5*width_N*LAMBDA} as={5*width_N*LAMBDA} pd={10*LAMBDA + 2*width_N} ps={10*LAMBDA + 2*width_N} m=1
SYMBOL res 856 -184 R0
SYMATTR InstName RL1
SYMATTR Value 1k
SYMBOL res 1320 -296 R90
SYMATTR InstName R10
SYMATTR Value 8k
SYMBOL cap 1336 -248 R0
SYMATTR InstName C3
SYMATTR Value 10n
SYMBOL res 1656 -296 R90
SYMATTR InstName R11
SYMATTR Value 8k
SYMBOL cap 1672 -248 R0
SYMATTR InstName C4
SYMATTR Value 10n
SYMBOL cap 664 8 R90
SYMATTR InstName Cc2
SYMATTR Value 100p
SYMBOL res 840 8 R90
SYMATTR InstName RBias2
SYMATTR Value 100k
SYMBOL voltage 936 40 R0
SYMATTR InstName Vbias2
SYMATTR Value 1
SYMBOL voltage 536 200 R0
SYMATTR InstName Vin2
SYMATTR Value SINE(0 100m 101k)
SYMBOL nmos4 760 120 R90
SYMATTR InstName M2
SYMATTR Value CMOSN
SYMATTR Value2 l={2*LAMBDA} w={width_N} ad={5*width_N*LAMBDA} as={5*width_N*LAMBDA} pd={10*LAMBDA + 2*width_N} ps={10*LAMBDA + 2*width_N} m=1
SYMBOL res 840 216 R0
SYMATTR InstName RL2
SYMATTR Value 1k
SYMBOL res 1304 104 R90
SYMATTR InstName R12
SYMATTR Value 8k
SYMBOL cap 1320 152 R0
SYMATTR InstName C5
SYMATTR Value 10n
SYMBOL res 1640 104 R90
SYMATTR InstName R13
SYMATTR Value 8k
SYMBOL cap 1656 152 R0
SYMATTR InstName C6
SYMATTR Value 10n