* SPICE netlist
XU1 0 N009 N001 N012 out UA741 ;pnba In+)In-)V+)V-)OUT
R1 N009 OUTTT 15.9k
C1 out N009 77.546p
D1 N009 N010 1N4148
R2 N004 N010 12.75k
V1 N004 0 -50m
R3 N010 out 2.7k
R4 out N015 2.7k
D2 N015 N009 1N4148
V2 0 N019 -50m
R5 N015 N019 12.75k
R6 N011 out 31.8k
C2 N011 0 77.546p
XU2 N011 N007 N001 N012 OUTTT UA741 ;pnba In+)In-)V+)V-)OUT
R7 OUTTT N011 31.8k
R8 N007 0 31.8k
R9 OUTTT N007 31.8k
V3 0 N012 8
V4 N001 0 8
XU3 OUTTT COSPART N001 N012 COSPART UA741 ;pnba In+)In-)V+)V-)OUT
Cc1 N002 COSPART 100p
RBias1 N003 N002 100k
Vbias1 N003 0 0.7
Vin1 N008 0 SINE(0 100m 101k 0 0 90)
M1 Vif N002 N008 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 N006 N005 8k
C3 N006 0 10n
R11 VoutCOS N006 8k
C4 VoutCOS 0 10n
Cc2 N013 SINEPART 100p
RBias2 N014 N013 100k
Vbias2 N014 0 0.7
Vin2 N018 0 SINE(0 100m 101k 0 0 90)
M2 Viq N013 N018 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 N017 N016 8k
C5 N017 0 10n
R13 VoutSINE N017 8k
C6 VoutSINE 0 10n
XU4 out SINEPART N001 N012 SINEPART UA741 ;pnba In+)In-)V+)V-)OUT
XU5 Viq N016 N001 N012 N016 UA741 ;pnba In+)In-)V+)V-)OUT
XU6 Vif N005 N001 N012 N005 UA741 ;pnba In+)In-)V+)V-)OUT
.inc "C:\Users\varun\OneDrive\Documents\Sem2\AEC\Project\UA741.301"
.tran 50m uic
.param LAMBDA=0.09u
.param width_N=1.8u
.inc "C:\Users\varun\OneDrive\Documents\Sem2\AEC\Project\TSMC_180nm.txt"

* LTspice schematic (.asc)
Version 4
SHEET 1 3696 1200
WIRE -232 -600 -1384 -600
WIRE 952 -600 -232 -600
WIRE 952 -568 952 -600
WIRE 1848 -568 952 -568
WIRE -456 -536 -1064 -536
WIRE -808 -504 -840 -504
WIRE -840 -488 -840 -504
WIRE -808 -488 -808 -504
WIRE 520 -424 456 -424
WIRE 600 -424 584 -424
WIRE 664 -424 600 -424
WIRE 856 -424 744 -424
WIRE 856 -392 856 -424
WIRE 328 -360 40 -360
WIRE 456 -360 456 -424
WIRE 456 -360 328 -360
WIRE -232 -344 -232 -600
WIRE -24 -344 -232 -344
WIRE -840 -328 -840 -408
WIRE 600 -328 600 -424
WIRE 1128 -328 1032 -328
WIRE 1256 -328 1208 -328
WIRE 1464 -328 1256 -328
WIRE 1592 -328 1544 -328
WIRE 1656 -328 1592 -328
WIRE -456 -296 -456 -536
WIRE -440 -296 -456 -296
WIRE 856 -296 856 -312
WIRE 1032 -296 1032 -328
WIRE 1032 -296 904 -296
WIRE 1256 -296 1256 -328
WIRE 1592 -296 1592 -328
WIRE 776 -280 680 -280
WIRE 952 -280 952 -568
WIRE -1384 -264 -1384 -600
WIRE -1384 -264 -1576 -264
WIRE -1064 -264 -1064 -536
WIRE -1064 -264 -1384 -264
WIRE -424 -264 -504 -264
WIRE -200 -264 -344 -264
WIRE 904 -264 904 -296
WIRE 920 -264 904 -264
WIRE 584 -248 584 -280
WIRE 584 -248 456 -248
WIRE 632 -248 632 -280
WIRE 1032 -248 1032 -296
WIRE 1032 -248 984 -248
WIRE -952 -232 -1144 -232
WIRE 456 -232 456 -248
WIRE 776 -232 776 -280
WIRE 872 -232 776 -232
WIRE 920 -232 872 -232
WIRE -1576 -216 -1576 -264
WIRE -952 -216 -952 -232
WIRE -840 -216 -840 -248
WIRE -840 -216 -888 -216
WIRE 776 -216 776 -232
WIRE -840 -200 -840 -216
WIRE -440 -200 -440 -296
WIRE 40 -200 40 -360
WIRE 40 -200 -72 -200
WIRE 1256 -200 1256 -232
WIRE 1256 -200 1032 -200
WIRE 1368 -200 1256 -200
WIRE 1592 -200 1592 -232
WIRE 1592 -200 1368 -200
WIRE -1144 -184 -1144 -232
WIRE -984 -184 -1080 -184
WIRE -648 -184 -680 -184
WIRE -504 -184 -504 -264
WIRE -504 -184 -568 -184
WIRE -472 -184 -504 -184
WIRE 1032 -184 1032 -200
WIRE 1368 -184 1368 -200
WIRE -680 -168 -680 -184
WIRE -200 -168 -200 -264
WIRE -200 -168 -408 -168
WIRE -24 -168 -24 -344
WIRE 88 -168 -24 -168
WIRE -472 -152 -520 -152
WIRE -24 -136 -24 -168
WIRE 456 -136 456 -152
WIRE -1576 -120 -1576 -136
WIRE -1576 -120 -1640 -120
WIRE -1064 -120 -1064 -264
WIRE -72 -120 -72 -200
WIRE -56 -120 -72 -120
WIRE -1640 -104 -1640 -120
WIRE -1144 -104 -1144 -184
WIRE -1144 -104 -1192 -104
WIRE -1096 -104 -1144 -104
WIRE 40 -104 40 -200
WIRE 40 -104 8 -104
WIRE 776 -104 776 -136
WIRE -1576 -88 -1576 -120
WIRE -984 -88 -984 -184
WIRE -984 -88 -1032 -88
WIRE -952 -88 -984 -88
WIRE -904 -88 -952 -88
WIRE -840 -88 -840 -120
WIRE -840 -88 -904 -88
WIRE -712 -88 -840 -88
WIRE -520 -88 -520 -152
WIRE -520 -88 -632 -88
WIRE -408 -88 -520 -88
WIRE -232 -88 -328 -88
WIRE -200 -88 -200 -168
WIRE -200 -88 -232 -88
WIRE -56 -88 -200 -88
WIRE 952 -88 952 -216
WIRE 1816 -88 952 -88
WIRE -1096 -72 -1128 -72
WIRE -1128 -56 -1128 -72
WIRE -840 -56 -840 -88
WIRE 504 -24 440 -24
WIRE 584 -24 568 -24
WIRE 648 -24 584 -24
WIRE 840 -24 728 -24
WIRE -520 -8 -520 -88
WIRE -1064 8 -1064 -56
WIRE -1064 8 -1512 8
WIRE 840 8 840 -24
WIRE 1848 8 1848 -568
WIRE 1848 8 936 8
WIRE -1576 56 -1576 -8
WIRE -1512 56 -1512 8
WIRE -1512 56 -1576 56
WIRE -1144 56 -1144 -104
WIRE -1080 56 -1144 56
WIRE 440 56 440 -24
WIRE 440 56 360 56
WIRE -1016 72 -1016 56
WIRE -840 72 -840 24
WIRE -840 72 -1016 72
WIRE 584 72 584 -24
WIRE 1112 72 1016 72
WIRE 1240 72 1192 72
WIRE 1448 72 1240 72
WIRE 1576 72 1528 72
WIRE 1640 72 1576 72
WIRE -1512 88 -1512 56
WIRE -1512 88 -1848 88
WIRE 360 88 360 56
WIRE -520 104 -520 56
WIRE 840 104 840 88
WIRE 1016 104 1016 72
WIRE 1016 104 888 104
WIRE 1240 104 1240 72
WIRE 1576 104 1576 72
WIRE -840 120 -840 72
WIRE 760 120 664 120
WIRE 936 120 936 8
WIRE 888 136 888 104
WIRE 904 136 888 136
WIRE 568 152 568 120
WIRE 568 152 440 152
WIRE 616 152 616 120
WIRE 1016 152 1016 104
WIRE 1016 152 968 152
WIRE 440 168 440 152
WIRE 760 168 760 120
WIRE 856 168 760 168
WIRE 904 168 856 168
WIRE 760 184 760 168
WIRE 1240 200 1240 168
WIRE 1240 200 1016 200
WIRE 1352 200 1240 200
WIRE 1576 200 1576 168
WIRE 1576 200 1352 200
WIRE 1016 216 1016 200
WIRE 1352 216 1352 200
WIRE -840 248 -840 200
WIRE 440 264 440 248
WIRE 760 296 760 264
WIRE 184 376 24 376
WIRE 360 376 360 88
WIRE 360 376 184 376
WIRE 936 376 936 184
WIRE 1816 376 1816 -88
WIRE 1816 376 936 376
WIRE -1272 392 -1272 -104
WIRE -200 392 -200 -88
WIRE -200 392 -1272 392
WIRE -1512 408 -1512 88
WIRE -440 408 -440 -136
WIRE -440 408 -1512 408
WIRE -1848 456 -1848 88
WIRE -24 456 -24 -72
WIRE -24 456 -1848 456
WIRE 88 472 88 -168
WIRE 24 488 24 376
WIRE 56 488 24 488
WIRE 184 504 184 376
WIRE 184 504 120 504
WIRE -952 520 -952 -88
WIRE 56 520 -952 520
WIRE 88 584 88 536
WIRE 936 584 936 376
WIRE 936 584 88 584
WIRE -24 600 -24 456
WIRE 88 600 88 584
WIRE 88 600 -24 600
FLAG -1128 -56 0
FLAG -808 -488 0
FLAG -904 -88 out
FLAG -840 328 0
FLAG -520 104 0
FLAG -680 -168 0
FLAG -1640 -104 0
FLAG -232 -88 OUTTT
FLAG 856 -296 0
FLAG 632 -248 0
FLAG 456 -136 0
FLAG 776 -104 0
FLAG 872 -232 Vif
FLAG 1032 -184 0
FLAG 1368 -184 0
FLAG 1656 -328 VoutCOS
FLAG 328 -360 COSPART
FLAG 840 104 0
FLAG 616 152 0
FLAG 440 264 0
FLAG 760 296 0
FLAG 856 168 Viq
FLAG 1016 216 0
FLAG 1352 216 0
FLAG 1640 72 VoutSINE
FLAG 360 88 SINEPART
SYMBOL OpAmps\\opamp2 -1064 -152 R0
SYMATTR InstName U1
SYMATTR Value UA741
SYMBOL res -1176 -120 R90
SYMATTR InstName R1
SYMATTR Value 15.9k
SYMBOL cap -1080 -200 R90
SYMATTR InstName C1
SYMATTR Value 77.546p
SYMBOL diode -952 -200 R270
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL res -856 -344 R0
SYMATTR InstName R2
SYMATTR Value 12.75k
SYMBOL voltage -840 -392 R180
SYMATTR InstName V1
SYMATTR Value -50m
SYMBOL res -856 -216 R0
SYMATTR InstName R3
SYMATTR Value 2.7k
SYMBOL res -856 -72 R0
SYMATTR InstName R4
SYMATTR Value 2.7k
SYMBOL diode -1016 40 R90
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL voltage -840 344 R180
SYMATTR InstName V2
SYMATTR Value -50m
SYMBOL res -856 104 R0
SYMATTR InstName R5
SYMATTR Value 12.75k
SYMBOL res -616 -104 R90
SYMATTR InstName R6
SYMATTR Value 31.8k
SYMBOL cap -536 -8 R0
SYMATTR InstName C2
SYMATTR Value 77.546p
SYMBOL OpAmps\\opamp2 -440 -232 R0
SYMATTR InstName U2
SYMATTR Value UA741
SYMBOL res -312 -104 R90
SYMATTR InstName R7
SYMATTR Value 31.8k
SYMBOL res -552 -200 R90
SYMATTR InstName R8
SYMATTR Value 31.8k
SYMBOL res -328 -280 R90
SYMATTR InstName R9
SYMATTR Value 31.8k
SYMBOL voltage -1576 -104 R0
SYMATTR InstName V3
SYMATTR Value 8
SYMBOL voltage -1576 -232 R0
SYMATTR InstName V4
SYMATTR Value 8
SYMBOL OpAmps\\opamp2 -24 -168 R0
SYMATTR InstName U3
SYMATTR Value UA741
SYMBOL cap 584 -440 R90
SYMATTR InstName Cc1
SYMATTR Value 100p
SYMBOL res 760 -440 R90
SYMATTR InstName RBias1
SYMATTR Value 100k
SYMBOL voltage 856 -408 R0
SYMATTR InstName Vbias1
SYMATTR Value 0.7
SYMBOL voltage 456 -248 R0
SYMATTR InstName Vin1
SYMATTR Value SINE(0 100m 101k 0 0 90)
SYMBOL nmos4 680 -328 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 760 -232 R0
SYMATTR InstName RL1
SYMATTR Value 1k
SYMBOL res 1224 -344 R90
SYMATTR InstName R10
SYMATTR Value 8k
SYMBOL cap 1240 -296 R0
SYMATTR InstName C3
SYMATTR Value 10n
SYMBOL res 1560 -344 R90
SYMATTR InstName R11
SYMATTR Value 8k
SYMBOL cap 1576 -296 R0
SYMATTR InstName C4
SYMATTR Value 10n
SYMBOL cap 568 -40 R90
SYMATTR InstName Cc2
SYMATTR Value 100p
SYMBOL res 744 -40 R90
SYMATTR InstName RBias2
SYMATTR Value 100k
SYMBOL voltage 840 -8 R0
SYMATTR InstName Vbias2
SYMATTR Value 0.7
SYMBOL voltage 440 152 R0
SYMATTR InstName Vin2
SYMATTR Value SINE(0 100m 101k 0 0 90)
SYMBOL nmos4 664 72 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 744 168 R0
SYMATTR InstName RL2
SYMATTR Value 1k
SYMBOL res 1208 56 R90
SYMATTR InstName R12
SYMATTR Value 8k
SYMBOL cap 1224 104 R0
SYMATTR InstName C5
SYMATTR Value 10n
SYMBOL res 1544 56 R90
SYMATTR InstName R13
SYMATTR Value 8k
SYMBOL cap 1560 104 R0
SYMATTR InstName C6
SYMATTR Value 10n
SYMBOL OpAmps\\opamp2 88 440 R0
SYMATTR InstName U4
SYMATTR Value UA741
SYMBOL OpAmps\\opamp2 936 88 R0
SYMATTR InstName U5
SYMATTR Value UA741
SYMBOL OpAmps\\opamp2 952 -312 R0
SYMATTR InstName U6
SYMATTR Value UA741