The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 16th, 2024, 10:18am
Pages: 1
Send Topic Print
modelling switched cap integrator in MATLAB (Read 4538 times)
manodipan
Community Member
***
Offline



Posts: 83

modelling switched cap integrator in MATLAB
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...
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: modelling switched cap integrator in MATLAB
Reply #1 - 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 ?

Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
manodipan
Community Member
***
Offline



Posts: 83

Re: modelling switched cap integrator in MATLAB
Reply #2 - 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...
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: modelling switched cap integrator in MATLAB
Reply #3 - 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.
Back to top
 
« Last Edit: Jul 1st, 2009, 8:05am by pancho_hideboo »  
View Profile WWW Top+Secret Top+Secret   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.