ahmad_abdulghany
Advanced Member level 4

- Joined
- Apr 12, 2005
- Messages
- 1,206
- Helped
- 102
- Reputation
- 206
- Reaction score
- 22
- Trophy points
- 1,318
- Location
- San Jose, California, USA
- Activity points
- 11,769
Please see first the shown figure .. it shows a snap shot to the text file that i need to get some data from it automatically with the aid of Matlab..
referring to this topic:
We can say that the MOSFET states are like this:
*Cut off: Vgs < Vt for all Vds
*Linear(triode) : Vgs > Vt and Vds < Vgs-Vt ( I am not sure is it also defined Vds<Vds sat ??)
*Saturation(active): Vgs >Vt and Vds > Vgs-Vt (i have the same wondering about Vds>Vds sat, does this mean MOS is in saturaion??)
How can extract this from the PSPICE output file using Matlab?
I think i have to know some things :
1. How to let Matlab read this text file?
2. How to let Matlab analyze it? i.e. it can search for words like Vgs and take its value that is corresponding to a MOSFET say M_1 as well as its model (n or p) for example
3. Make the required mathematical operations on this data (Vgs-Vt and taking absolute values of Vgs and Vt in case of PMOS) as well as decisions to check state. (cut of, linear, saturation)
4. finally, generate a new Matlab output file saying which MOSFET is in saturation, linear, and which is in cutoff.
I know that this problem needs one to be aware to circuits as well as Matlab programming.. and i hope that i find the person that can help
Thanks in advance,
Ahmad,
referring to this topic:
We can say that the MOSFET states are like this:
*Cut off: Vgs < Vt for all Vds
*Linear(triode) : Vgs > Vt and Vds < Vgs-Vt ( I am not sure is it also defined Vds<Vds sat ??)
*Saturation(active): Vgs >Vt and Vds > Vgs-Vt (i have the same wondering about Vds>Vds sat, does this mean MOS is in saturaion??)
How can extract this from the PSPICE output file using Matlab?
I think i have to know some things :
1. How to let Matlab read this text file?
2. How to let Matlab analyze it? i.e. it can search for words like Vgs and take its value that is corresponding to a MOSFET say M_1 as well as its model (n or p) for example
3. Make the required mathematical operations on this data (Vgs-Vt and taking absolute values of Vgs and Vt in case of PMOS) as well as decisions to check state. (cut of, linear, saturation)
4. finally, generate a new Matlab output file saying which MOSFET is in saturation, linear, and which is in cutoff.
I know that this problem needs one to be aware to circuits as well as Matlab programming.. and i hope that i find the person that can help
Thanks in advance,
Ahmad,
Last edited by a moderator: