ali-
Newbie
- Joined
- Jul 13, 2012
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,355
I try to analyse gm-c filter by HSPICE. Below codes is my attempt to change the attached schematics to the SPICE codes with regard to MOSFETs W/L ratio as presented:
M1, M2 10/1
M3, M4, M5 M8 4/1
M6, M7 8/1
M9 16/1
At first circuit is supposed to be designed on the 35um technology, so I choose one of the mosis model from https://www.mosis.com/cgi-bin/cgiwrap/umosis/swp/params/tsmc-035 the first one and then I put it in the file to be used as model file for SPICE analysis.
my question is that
-How can we calculate the MOSFETs W,L with these ratios in 35um technology?
-Dose the HSPICE code and circuit match?
-what about the calculation of the gain for gm-c Filter and input voltage of differential circuit(only 180 degree different in phase)?
-and the last question, is it right to connect vin- and vin+ sources lessen polarity to the vss? or they must be connected to the Node 0(Ground)?
thanks:wink:
M1, M2 10/1
M3, M4, M5 M8 4/1
M6, M7 8/1
M9 16/1
At first circuit is supposed to be designed on the 35um technology, so I choose one of the mosis model from https://www.mosis.com/cgi-bin/cgiwrap/umosis/swp/params/tsmc-035 the first one and then I put it in the file to be used as model file for SPICE analysis.
my question is that
-How can we calculate the MOSFETs W,L with these ratios in 35um technology?
-Dose the HSPICE code and circuit match?
-what about the calculation of the gain for gm-c Filter and input voltage of differential circuit(only 180 degree different in phase)?
-and the last question, is it right to connect vin- and vin+ sources lessen polarity to the vss? or they must be connected to the Node 0(Ground)?
thanks:wink:
PHP:
#OTA#
.OPTION POST accurate
.op
.ac dec 10 1 100G
.probe ac gain=par('(v(out)/(v(7)-v(6)))')
M7 2 1 9 9 cmosp W=8U L=1U
M4 1 1 9 9 cmosp W=4U L=1U
M3 4 4 9 9 cmosp W=4U L=1U
M6 out 4 9 9 cmosp W=8U L=1U
M2 1 6 3 10 CMOSN W=10U L=1U
M1 4 7 3 10 CMOSN W=10U L=1U
M8 2 2 10 10 CMOSN W=4U L=1U
M5 out 2 10 10 CMOSN W=4U L=1U
M9 3 8 10 10 CMOSN W=16U L=1U
Vin+ 7 10 DC 1 ac 0.7
Vin- 6 10 DC 0.7 ac 0.7 180
Vbiass 8 0 DC -1
Vss 10 0 DC -1.65
Vdd 9 0 DC 1.65
c1 out 10 50pf
.inc 'cmos.txt'
.end