The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Modeling >> Behavioral Models >> modelling switched cap integrator in MATLAB
https://designers-guide.org/forum/YaBB.pl?num=1246280081

Message started by manodipan on Jun 29th, 2009, 5:54am

Title: modelling switched cap integrator in MATLAB
Post by manodipan on Jun 29th, 2009, 5:54am

Hi all,
can you guys help me about designing an SC integrator in MATLAB?right now i am using some verilog coding,but i have less flexibility and that's why i want to have a model in MATLAB.
Thanks a lot...

Title: Re: modelling switched cap integrator in MATLAB
Post by pancho_hideboo on Jun 29th, 2009, 8:24am


manodipan wrote on Jun 29th, 2009, 5:54am:
can you guys help me about designing an SC integrator in MATLAB?
MATLAB is different from Simulink.
Do you truely intend to mean MATLAB without Simulink ?
Or do you intend to model an integrator by M-file as S-Function block of Simulink ?

What type of non-ideality for SC integrator do you want to model ?


Title: Re: modelling switched cap integrator in MATLAB
Post by manodipan on Jul 1st, 2009, 12:25am

Hi,
Simulink is also a part of MATLAB.....yes i want a lossy integrator ,but for my case equation is not suffcient as the charge transfer mechanism is different...so better if i can include capacitors,current sources and digital logic using simulink....is it possible???again thanks a lot...

Title: Re: modelling switched cap integrator in MATLAB
Post by pancho_hideboo on Jul 1st, 2009, 3:45am


manodipan wrote on Jul 1st, 2009, 12:25am:
Simulink is also a part of MATLAB.....
Not correct.
Simulink is another product although it requires MATLAB and works on MATLAB.
http://www.mathworks.com/products/product_listing/index.html

Modeling methdologies and their simulations are completely different between MATLAB and Simulink.
If you use S-Function block of Simulink written by M-file, you can make use of some MATLAB modeling efforts in Simulink.

Maybe I think you want to use Simulink not MATLAB for modeling SC integrators.
Is this correct ?

The followings are general notes.
- Use correct terminologies.
- Warnigns are different from Errors.
- ADS is not name of simulator.
- There is no tool which name is Cadence.
- MATLAB are different from Simulink.
- There are many vendor's simulators which have analyses called as PSS, Pnoise and PAC,etc.


manodipan wrote on Jul 1st, 2009, 12:25am:
yes i want a lossy integrator
If your interest is only this, this is just z-domain transfer function realization.
Use delay and feedback with gain block.
http://www.designers-guide.org/Forum/YaBB.pl?num=1206966312


manodipan wrote on Jul 1st, 2009, 12:25am:
but for my case equation is not suffcient as the charge transfer mechanism is different...
so better if i can include capacitors,current sources and digital logic using simulink....is it possible???

In physical integrator, an input is current and an output is voltage generally.
However models of Simulink are no more than signal flow system not energy conservative system which have flow and potential,
although Simulink have continuous time solver as well as discrete time solver.
There is no concept of voltage and current in Simulink.
Do you understand signal flow simulator ?

We can model behaviors of voltage and current in capacitors even in Simulink which is signal flow simulator inherently,
however I think simulations based on Verilog-A(AMS) are suitable for your purpose.

http://www.designers-guide.org/Forum/YaBB.pl?num=1238242506/7#7

If you have following Blocksets for Simulink, it will be easy to do physical modeling.
http://www.mathworks.com/products/simelectronics/
http://www.mathworks.com/products/simpower/

I don't have these Blocksets because I don't feel needs for them.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.