* SPICE netlist
V1 N001 0 8
V2 0 N009 8
XU1 0 N003 N001 N009 VoscQ UA741 ;pnba In+)In-)V+)V-)OUT
XU2 N007 N002 N001 N009 VoscI UA741 ;pnba In+)In-)V+)V-)OUT
R1 N003 VoscI {R}
C1 VoscQ N003 0.7n
D1 N003 N004 1N4148
R2 N004 VoscQ 50
R3 N001 N004 1Meg
R4 VoscQ N011 50
R5 N011 N009 1Meg
D2 N011 N003 1N4148
R6 N007 VoscQ {2*R}
R7 N002 0 {2*R}
R8 VoscI N002 {2*R}
R9 VoscI N007 {2*R}
C2 N007 0 0.7n
Cc1 N005 VoscI 100p
Cc2 N012 VoscQ 100p
Rbias2 N013 N012 100k
Rbias1 N006 N005 100k
Vbias1 N006 0 1.1V
Vbias2 N013 0 1.1V
M1 Vif N005 N010 0 CMOSN l={2*LAMBDA} w={widthN} ad={5*widthN*LAMBDA} as={5*widthN*LAMBDA} pd={10*LAMBDA + 2*widthN} ps={10*LAMBDA + 2*widthN}
M3 Viq N012 N015 0 CMOSN l={2*LAMBDA} w={widthN} ad={5*widthN*LAMBDA} as={5*widthN*LAMBDA} pd={10*LAMBDA + 2*widthN} ps={10*LAMBDA + 2*widthN}
Vin2 N015 0 SINE(0 100m 101k)
Vin1 N010 0 SINE(0 100m 101k)
R14 N008 Vif 2.974k
R15 COSINEout N008 2.974k
R16 N014 Viq 2.974k
R17 SINEout N014 2.974k
C7 N014 0 10n
C8 SINEout 0 10n
C9 COSINEout 0 10n
C10 N008 0 10n
.include "C:\Users\Srihari\Downloads\TSMC_180nm.txt"
.include "C:\Users\Srihari\AppData\Local\LTspice\UA741.301
.param LAMBDA=0.09u
.param widthN = 1.8u
.tran 10m uic
.param R = 1.77k

* LTspice schematic (.asc)
Version 4
SHEET 1 2608 816
WIRE -680 -408 -1240 -408
WIRE -184 -408 -680 -408
WIRE -680 -360 -680 -408
WIRE -232 -264 -280 -264
WIRE -88 -264 -152 -264
WIRE -808 -232 -920 -232
WIRE -680 -232 -680 -280
WIRE -680 -232 -744 -232
WIRE -1240 -184 -1240 -408
WIRE -840 -184 -1240 -184
WIRE -184 -184 -184 -408
WIRE -376 -168 -440 -168
WIRE -280 -168 -280 -264
WIRE -280 -168 -296 -168
WIRE -216 -168 -280 -168
WIRE -1240 -152 -1240 -184
WIRE -440 -152 -440 -168
WIRE -88 -152 -88 -264
WIRE -88 -152 -152 -152
WIRE -40 -152 -88 -152
WIRE 24 -152 -40 -152
WIRE 216 -152 88 -152
WIRE 344 -152 296 -152
WIRE -920 -136 -920 -232
WIRE -728 -136 -856 -136
WIRE -216 -136 -312 -136
WIRE 344 -136 344 -152
WIRE 760 -120 536 -120
WIRE 920 -120 840 -120
WIRE 1032 -120 920 -120
WIRE 1176 -120 1112 -120
WIRE 1288 -120 1176 -120
WIRE -840 -88 -840 -184
WIRE -184 -88 -184 -120
WIRE -184 -88 -248 -88
WIRE 920 -88 920 -120
WIRE 1176 -88 1176 -120
WIRE -920 -72 -920 -136
WIRE -920 -72 -952 -72
WIRE -872 -72 -920 -72
WIRE 88 -72 88 -152
WIRE -1240 -56 -1240 -72
WIRE -1240 -56 -1304 -56
WIRE -728 -56 -728 -136
WIRE -728 -56 -808 -56
WIRE -680 -56 -680 -152
WIRE -680 -56 -728 -56
WIRE -520 -56 -680 -56
WIRE -472 -56 -520 -56
WIRE -312 -56 -312 -136
WIRE -312 -56 -392 -56
WIRE -232 -56 -312 -56
WIRE -88 -56 -88 -152
WIRE -88 -56 -152 -56
WIRE -1304 -40 -1304 -56
WIRE -1240 -40 -1240 -56
WIRE -872 -40 -904 -40
WIRE -904 -24 -904 -40
WIRE 72 -24 8 -24
WIRE 232 -24 168 -24
WIRE -680 -8 -680 -56
WIRE 8 -8 8 -24
WIRE -312 8 -312 -56
WIRE 920 8 920 -24
WIRE 920 8 680 8
WIRE 1176 8 1176 -24
WIRE 1176 8 920 8
WIRE 232 24 232 -24
WIRE 536 24 536 -120
WIRE 536 24 232 24
WIRE 680 24 680 8
WIRE 696 24 680 24
WIRE 696 40 696 24
WIRE 120 72 120 -24
WIRE -920 104 -920 -72
WIRE -808 104 -920 104
WIRE -680 104 -680 72
WIRE -680 104 -744 104
WIRE -680 136 -680 104
WIRE -312 152 -312 72
WIRE -520 184 -520 -56
WIRE 40 184 -520 184
WIRE 56 184 40 184
WIRE 216 184 104 184
WIRE 344 184 296 184
WIRE 344 200 344 184
WIRE -1240 232 -1240 40
WIRE -840 232 -840 -24
WIRE -840 232 -1240 232
WIRE 808 232 632 232
WIRE 936 232 888 232
WIRE 1048 232 936 232
WIRE 1192 232 1128 232
WIRE 1304 232 1192 232
WIRE 104 264 104 184
WIRE 936 264 936 232
WIRE 1192 264 1192 232
WIRE 88 312 8 312
WIRE 232 312 184 312
WIRE 8 328 8 312
WIRE -1240 344 -1240 232
WIRE -680 344 -680 216
WIRE -680 344 -1240 344
WIRE -248 344 -248 -88
WIRE -248 344 -680 344
WIRE 936 360 936 328
WIRE 936 360 696 360
WIRE 1192 360 1192 328
WIRE 1192 360 936 360
WIRE 232 376 232 312
WIRE 632 376 632 232
WIRE 632 376 232 376
WIRE 696 376 696 360
WIRE 712 376 696 376
WIRE -1032 392 -1032 -72
WIRE -40 392 -40 -152
WIRE -40 392 -1032 392
WIRE 712 392 712 376
WIRE 136 408 136 312
FLAG -1304 -40 0
FLAG -904 -24 0
FLAG -440 -152 0
FLAG -312 152 0
FLAG -88 -152 VoscI
FLAG 344 280 0
FLAG 344 -56 0
FLAG 8 72 0
FLAG 8 408 0
FLAG 120 72 0
FLAG 136 408 0
FLAG 536 -120 Vif
FLAG 632 232 Viq
FLAG 696 40 0
FLAG 712 392 0
FLAG 1304 232 SINEout
FLAG 1288 -120 COSINEout
FLAG -520 184 VoscQ
SYMBOL voltage -1240 -168 R0
SYMATTR InstName V1
SYMATTR Value 8
SYMBOL voltage -1240 -56 R0
SYMATTR InstName V2
SYMATTR Value 8
SYMBOL OpAmps\\opamp2 -840 -120 R0
SYMATTR InstName U1
SYMATTR Value UA741
SYMBOL OpAmps\\opamp2 -184 -216 R0
SYMATTR InstName U2
SYMATTR Value UA741
SYMBOL res -936 -88 R90
SYMATTR InstName R1
SYMATTR Value {R}
SYMBOL cap -856 -152 R90
SYMATTR InstName C1
SYMATTR Value 0.7n
SYMBOL diode -808 -216 R270
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL res -696 -248 R0
SYMATTR InstName R2
SYMATTR Value 50
SYMBOL res -696 -376 R0
SYMATTR InstName R3
SYMATTR Value 1Meg
SYMBOL res -696 -24 R0
SYMATTR InstName R4
SYMATTR Value 50
SYMBOL res -696 120 R0
SYMATTR InstName R5
SYMATTR Value 1Meg
SYMBOL diode -744 88 R90
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL res -376 -72 R90
SYMATTR InstName R6
SYMATTR Value {2*R}
SYMBOL res -280 -184 R90
SYMATTR InstName R7
SYMATTR Value {2*R}
SYMBOL res -136 -280 R90
SYMATTR InstName R8
SYMATTR Value {2*R}
SYMBOL res -136 -72 R90
SYMATTR InstName R9
SYMATTR Value {2*R}
SYMBOL cap -328 8 R0
SYMATTR InstName C2
SYMATTR Value 0.7n
SYMBOL cap 88 -168 R90
SYMATTR InstName Cc1
SYMATTR Value 100p
SYMBOL cap 104 168 R90
SYMATTR InstName Cc2
SYMATTR Value 100p
SYMBOL res 312 168 R90
SYMATTR InstName Rbias2
SYMATTR Value 100k
SYMBOL res 312 -168 R90
SYMATTR InstName Rbias1
SYMATTR Value 100k
SYMBOL voltage 344 -152 R0
SYMATTR InstName Vbias1
SYMATTR Value 1.1V
SYMBOL voltage 344 184 R0
SYMATTR InstName Vbias2
SYMATTR Value 1.1V
SYMBOL nmos4 168 -72 R90
SYMATTR InstName M1
SYMATTR Value CMOSN
SYMATTR Value2 l={2*LAMBDA} w={widthN} ad={5*widthN*LAMBDA} as={5*widthN*LAMBDA} pd={10*LAMBDA + 2*widthN} ps={10*LAMBDA + 2*widthN}
SYMBOL nmos4 184 264 R90
SYMATTR InstName M3
SYMATTR Value CMOSN
SYMATTR Value2 l={2*LAMBDA} w={widthN} ad={5*widthN*LAMBDA} as={5*widthN*LAMBDA} pd={10*LAMBDA + 2*widthN} ps={10*LAMBDA + 2*widthN}
SYMBOL voltage 8 312 R0
SYMATTR InstName Vin2
SYMATTR Value SINE(0 100m 101k)
SYMBOL voltage 8 -24 R0
SYMATTR InstName Vin1
SYMATTR Value SINE(0 100m 101k)
SYMBOL res 856 -136 R90
SYMATTR InstName R14
SYMATTR Value 2.974k
SYMBOL res 1128 -136 R90
SYMATTR InstName R15
SYMATTR Value 2.974k
SYMBOL res 904 216 R90
SYMATTR InstName R16
SYMATTR Value 2.974k
SYMBOL res 1144 216 R90
SYMATTR InstName R17
SYMATTR Value 2.974k
SYMBOL cap 920 264 R0
SYMATTR InstName C7
SYMATTR Value 10n
SYMBOL cap 1176 264 R0
SYMATTR InstName C8
SYMATTR Value 10n
SYMBOL cap 1160 -88 R0
SYMATTR InstName C9
SYMATTR Value 10n
SYMBOL cap 904 -88 R0
SYMATTR InstName C10
SYMATTR Value 10n