* Z:\home\khalils\Downloads\files\data\raw_asc\4893b8f822a6_QDCFinal.asc
* Generated by LTspice 26.0.1 for Windows.
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
.model D D
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.dio
.model NMOS NMOS
.model PMOS PMOS
.lib C:\users\khalils\AppData\Local\LTspice\lib\cmp\standard.mos
.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
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 3204 900
WIRE 560 -48 0 -48
WIRE 1056 -48 560 -48
WIRE 560 0 560 -48
WIRE 1008 96 960 96
WIRE 1152 96 1088 96
WIRE 432 128 320 128
WIRE 560 128 560 80
WIRE 560 128 496 128
WIRE 0 176 0 -48
WIRE 400 176 0 176
WIRE 1056 176 1056 -48
WIRE 864 192 800 192
WIRE 960 192 960 96
WIRE 960 192 944 192
WIRE 1024 192 960 192
WIRE 0 208 0 176
WIRE 800 208 800 192
WIRE 1152 208 1152 96
WIRE 1152 208 1088 208
WIRE 1200 208 1152 208
WIRE 1264 208 1200 208
WIRE 1456 208 1328 208
WIRE 1584 208 1536 208
WIRE 320 224 320 128
WIRE 512 224 384 224
WIRE 1024 224 928 224
WIRE 1584 224 1584 208
WIRE 2000 240 1776 240
WIRE 2160 240 2080 240
WIRE 2272 240 2160 240
WIRE 2416 240 2352 240
WIRE 2528 240 2416 240
WIRE 400 272 400 176
WIRE 1056 272 1056 240
WIRE 1056 272 992 272
WIRE 2160 272 2160 240
WIRE 2416 272 2416 240
WIRE 320 288 320 224
WIRE 320 288 288 288
WIRE 368 288 320 288
WIRE 1328 288 1328 208
WIRE 0 304 0 288
WIRE 0 304 -64 304
WIRE 512 304 512 224
WIRE 512 304 432 304
WIRE 560 304 560 208
WIRE 560 304 512 304
WIRE 720 304 560 304
WIRE 768 304 720 304
WIRE 928 304 928 224
WIRE 928 304 848 304
WIRE 1008 304 928 304
WIRE 1152 304 1152 208
WIRE 1152 304 1088 304
WIRE -64 320 -64 304
WIRE 0 320 0 304
WIRE 368 320 336 320
WIRE 336 336 336 320
WIRE 1312 336 1248 336
WIRE 1472 336 1408 336
WIRE 560 352 560 304
WIRE 1248 352 1248 336
WIRE 928 368 928 304
WIRE 2160 368 2160 336
WIRE 2160 368 1920 368
WIRE 2416 368 2416 336
WIRE 2416 368 2160 368
WIRE 1472 384 1472 336
WIRE 1776 384 1776 240
WIRE 1776 384 1472 384
WIRE 1920 384 1920 368
WIRE 1936 384 1920 384
WIRE 1936 400 1936 384
WIRE 1360 432 1360 336
WIRE 320 464 320 288
WIRE 432 464 320 464
WIRE 560 464 560 432
WIRE 560 464 496 464
WIRE 560 496 560 464
WIRE 928 512 928 432
WIRE 720 544 720 304
WIRE 1280 544 720 544
WIRE 1296 544 1280 544
WIRE 1456 544 1344 544
WIRE 1584 544 1536 544
WIRE 1584 560 1584 544
WIRE 0 592 0 400
WIRE 400 592 400 336
WIRE 400 592 0 592
WIRE 2048 592 1872 592
WIRE 2176 592 2128 592
WIRE 2288 592 2176 592
WIRE 2432 592 2368 592
WIRE 2544 592 2432 592
WIRE 1344 624 1344 544
WIRE 2176 624 2176 592
WIRE 2432 624 2432 592
WIRE 1328 672 1248 672
WIRE 1472 672 1424 672
WIRE 1248 688 1248 672
WIRE 0 704 0 592
WIRE 560 704 560 576
WIRE 560 704 0 704
WIRE 992 704 992 272
WIRE 992 704 560 704
WIRE 2176 720 2176 688
WIRE 2176 720 1936 720
WIRE 2432 720 2432 688
WIRE 2432 720 2176 720
WIRE 1472 736 1472 672
WIRE 1872 736 1872 592
WIRE 1872 736 1472 736
WIRE 1936 736 1936 720
WIRE 1952 736 1936 736
WIRE 208 752 208 288
WIRE 1200 752 1200 208
WIRE 1200 752 208 752
WIRE 1952 752 1952 736
WIRE 1376 768 1376 672
FLAG -64 320 0
FLAG 336 336 0
FLAG 800 208 0
FLAG 928 512 0
FLAG 1152 208 VoscI
FLAG 1584 640 0
FLAG 1584 304 0
FLAG 1248 432 0
FLAG 1248 768 0
FLAG 1360 432 0
FLAG 1376 768 0
FLAG 1776 240 Vif
FLAG 1872 592 Viq
FLAG 1936 400 0
FLAG 1952 752 0
FLAG 2544 592 SINEout
FLAG 2528 240 COSINEout
FLAG 720 544 VoscQ
SYMBOL voltage 0 192 R0
SYMATTR InstName V1
SYMATTR Value 8
SYMBOL voltage 0 304 R0
SYMATTR InstName V2
SYMATTR Value 8
SYMBOL OpAmps\\opamp2 400 240 R0
SYMATTR InstName U1
SYMATTR Value UA741
SYMBOL OpAmps\\opamp2 1056 144 R0
SYMATTR InstName U2
SYMATTR Value UA741
SYMBOL res 304 272 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value {R}
SYMBOL cap 384 208 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName C1
SYMATTR Value 0.7n
SYMBOL diode 432 144 R270
WINDOW 0 32 32 VTop 2
WINDOW 3 0 32 VBottom 2
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL res 544 112 R0
SYMATTR InstName R2
SYMATTR Value 50
SYMBOL res 544 -16 R0
SYMATTR InstName R3
SYMATTR Value 1Meg
SYMBOL res 544 336 R0
SYMATTR InstName R4
SYMATTR Value 50
SYMBOL res 544 480 R0
SYMATTR InstName R5
SYMATTR Value 1Meg
SYMBOL diode 496 448 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName D2
SYMATTR Value 1N4148
SYMBOL res 864 288 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value {2*R}
SYMBOL res 960 176 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value {2*R}
SYMBOL res 1104 80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R8
SYMATTR Value {2*R}
SYMBOL res 1104 288 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R9
SYMATTR Value {2*R}
SYMBOL cap 912 368 R0
SYMATTR InstName C2
SYMATTR Value 0.7n
SYMBOL cap 1328 192 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName Cc1
SYMATTR Value 100p
SYMBOL cap 1344 528 R90
WINDOW 0 0 32 VBottom 2
WINDOW 3 32 32 VTop 2
SYMATTR InstName Cc2
SYMATTR Value 100p
SYMBOL res 1552 528 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Rbias2
SYMATTR Value 100k
SYMBOL res 1552 192 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName Rbias1
SYMATTR Value 100k
SYMBOL voltage 1584 208 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vbias1
SYMATTR Value 1.1V
SYMBOL voltage 1584 544 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vbias2
SYMATTR Value 1.1V
SYMBOL nmos4 1408 288 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 1424 624 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 1248 672 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vin2
SYMATTR Value SINE(0 100m 101k)
SYMBOL voltage 1248 336 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName Vin1
SYMATTR Value SINE(0 100m 101k)
SYMBOL res 2096 224 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R14
SYMATTR Value 2.974k
SYMBOL res 2368 224 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R15
SYMATTR Value 2.974k
SYMBOL res 2144 576 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R16
SYMATTR Value 2.974k
SYMBOL res 2384 576 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R17
SYMATTR Value 2.974k
SYMBOL cap 2160 624 R0
SYMATTR InstName C7
SYMATTR Value 10n
SYMBOL cap 2416 624 R0
SYMATTR InstName C8
SYMATTR Value 10n
SYMBOL cap 2400 272 R0
SYMATTR InstName C9
SYMATTR Value 10n
SYMBOL cap 2144 272 R0
SYMATTR InstName C10
SYMATTR Value 10n
TEXT 104 -152 Left 2 !.include "C:\\Users\\Srihari\\Downloads\\TSMC_180nm.txt"
TEXT 104 -128 Left 2 !.include "C:\\Users\\Srihari\\AppData\\Local\\LTspice\\UA741.301
TEXT 1400 -16 Left 2 !.param LAMBDA=0.09u
TEXT 1400 8 Left 2 !.param widthN = 1.8u
TEXT -80 808 Left 2 !.tran 10m uic
TEXT 704 40 Left 2 !.param R = 1.77k