chichan
Newbie level 4
Hi,
I am trying to implement the integrator shown in the file integrator.jpg. But I don't know why the output of the integrator is always constant and doesn't vary with time. I have attached the schematic of the OTA used in this integrator. Below is my spice code. Could anyone please take a look and tell me what the problem is?
*
.protect
.lib 'mm0355v.l' TT
.unprotect
.option ACCURATE METHOD=gear
***Current Mirror***
Rs vdd q2s 25k
MQ2 q0g q2g q2s q2s pch W= 3.6um L= 1um
MQ3 q2g q2g vdd vdd pch W= 3um L= 1um
MQ0 q2g q0g gnd gnd nch W= 1um L= 1um
MQ1 q0g q0g gnd gnd nch W= 1um L= 1um
*** First stage ***
M1 o1 vin cm cm pch W= 6um L= 1um, M=4
M2 o2 vip cm cm pch W= 6um L= 1um, M=4
M3 o1 o1 gnd gnd nch W= 2um L= 4um
M4 o2 o2 gnd gnd nch W= 2um L= 4um
M10 cm q2g vdd vdd pch W= 3um L= 1um, M=4
*** Second stage ***
M7 m7d m7d vdd vdd pch W= 1um L= 5um
M8 out m7d vdd vdd pch W= 1um L= 5um
M5 m7d o1 gnd gnd nch W= 2um L= 4um
M6 out o2 gnd gnd nch W= 2um L= 4um
Cout out gnd 1p
*************************************************************
C vin out 1.28p
R ref vin 100k
Vref ref gnd -1V $ac =1V
****** SOURCE ******
vdd vdd gnd dc=3.3v
$Vin vin gnd dc= 1.65V AC =0.5V, 180
Vip vip gnd dc= 1.65V $AC =0.5V, 0 $
***SIMULATED COMMAND
.op
.TRAN 0.1U 250U
.probe tran v(out)
.end
I am trying to implement the integrator shown in the file integrator.jpg. But I don't know why the output of the integrator is always constant and doesn't vary with time. I have attached the schematic of the OTA used in this integrator. Below is my spice code. Could anyone please take a look and tell me what the problem is?
*
.protect
.lib 'mm0355v.l' TT
.unprotect
.option ACCURATE METHOD=gear
***Current Mirror***
Rs vdd q2s 25k
MQ2 q0g q2g q2s q2s pch W= 3.6um L= 1um
MQ3 q2g q2g vdd vdd pch W= 3um L= 1um
MQ0 q2g q0g gnd gnd nch W= 1um L= 1um
MQ1 q0g q0g gnd gnd nch W= 1um L= 1um
*** First stage ***
M1 o1 vin cm cm pch W= 6um L= 1um, M=4
M2 o2 vip cm cm pch W= 6um L= 1um, M=4
M3 o1 o1 gnd gnd nch W= 2um L= 4um
M4 o2 o2 gnd gnd nch W= 2um L= 4um
M10 cm q2g vdd vdd pch W= 3um L= 1um, M=4
*** Second stage ***
M7 m7d m7d vdd vdd pch W= 1um L= 5um
M8 out m7d vdd vdd pch W= 1um L= 5um
M5 m7d o1 gnd gnd nch W= 2um L= 4um
M6 out o2 gnd gnd nch W= 2um L= 4um
Cout out gnd 1p
*************************************************************
C vin out 1.28p
R ref vin 100k
Vref ref gnd -1V $ac =1V
****** SOURCE ******
vdd vdd gnd dc=3.3v
$Vin vin gnd dc= 1.65V AC =0.5V, 180
Vip vip gnd dc= 1.65V $AC =0.5V, 0 $
***SIMULATED COMMAND
.op
.TRAN 0.1U 250U
.probe tran v(out)
.end