<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments for Seth on Simulink</title>
	<link>http://blogs.mathworks.com/seth</link>
	<description>This blog is about Simulink.</description>
	<pubDate>Sun, 08 Nov 2009 00:05:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>Comment on Generated Code for Variable Size Signals by wei</title>
		<link>http://blogs.mathworks.com/seth/2009/11/06/generated-code-for-variable-size-signals/#comment-890</link>
		<dc:creator>wei</dc:creator>
		<pubDate>Sat, 07 Nov 2009 14:51:48 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2009/11/06/generated-code-for-variable-size-signals/#comment-890</guid>
		<description>@Ashish, I agree with your observation on compiler optimization but fail to see why Han's code would be less efficient than the original. Would you explain?</description>
		<content:encoded><![CDATA[<p>@Ashish, I agree with your observation on compiler optimization but fail to see why Han&#8217;s code would be less efficient than the original. Would you explain?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generated Code for Variable Size Signals by Ashish Sadanandan</title>
		<link>http://blogs.mathworks.com/seth/2009/11/06/generated-code-for-variable-size-signals/#comment-889</link>
		<dc:creator>Ashish Sadanandan</dc:creator>
		<pubDate>Fri, 06 Nov 2009 18:24:13 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2009/11/06/generated-code-for-variable-size-signals/#comment-889</guid>
		<description>Han,
Sorry for butting in with a reply, but the modification to the for-loop you've suggested is really not an optimization IMHO. Even a moderately competent C compiler will generate identical code for the 2 versions since 'model_Xdim' is not being modified within the for-loop. However, if you have a really non-optimizing compiler, the code generated by your version would be very inefficient. So I feel its better to leave the implementation of that for-loop as it is.

Ashish.</description>
		<content:encoded><![CDATA[<p>Han,<br />
Sorry for butting in with a reply, but the modification to the for-loop you&#8217;ve suggested is really not an optimization IMHO. Even a moderately competent C compiler will generate identical code for the 2 versions since &#8216;model_Xdim&#8217; is not being modified within the for-loop. However, if you have a really non-optimizing compiler, the code generated by your version would be very inefficient. So I feel its better to leave the implementation of that for-loop as it is.</p>
<p>Ashish.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Announcing SimElectronics! by arun kumar</title>
		<link>http://blogs.mathworks.com/seth/2008/06/13/announcing-simelectronics/#comment-888</link>
		<dc:creator>arun kumar</dc:creator>
		<pubDate>Fri, 06 Nov 2009 14:19:44 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2008/06/13/announcing-simelectronics/#comment-888</guid>
		<description>dear seth
i have been involved in developing and simulating asynchronous systems for my VLSI lab. 
in asynchronous systems i have to redefine the basic gates and,or,xor etc. 

so i had build my own customized basic blocks which i did using the existing blocks.

everytime i need to change the size say 2 bit gate to 3 bit gate i have to go to the block replicate the existing logic. 

Is there a way build a system which takes the bit size as input and then generates the required block ... just like we vary the size of ordinary and gate.

basically i want to build a asynchronous library of my own. Where do i start ?</description>
		<content:encoded><![CDATA[<p>dear seth<br />
i have been involved in developing and simulating asynchronous systems for my VLSI lab.<br />
in asynchronous systems i have to redefine the basic gates and,or,xor etc. </p>
<p>so i had build my own customized basic blocks which i did using the existing blocks.</p>
<p>everytime i need to change the size say 2 bit gate to 3 bit gate i have to go to the block replicate the existing logic. </p>
<p>Is there a way build a system which takes the bit size as input and then generates the required block &#8230; just like we vary the size of ordinary and gate.</p>
<p>basically i want to build a asynchronous library of my own. Where do i start ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Generated Code for Variable Size Signals by Han Geerligs</title>
		<link>http://blogs.mathworks.com/seth/2009/11/06/generated-code-for-variable-size-signals/#comment-887</link>
		<dc:creator>Han Geerligs</dc:creator>
		<pubDate>Fri, 06 Nov 2009 12:38:56 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2009/11/06/generated-code-for-variable-size-signals/#comment-887</guid>
		<description>Hi Aarti,

thanks for providing the example! 

I was just wondering why the lines
  model_YDim = model_XDim;
  loop_ub = model_XDim - 1;
  for (tmp = 0; tmp &#60;= loop_ub; tmp++) {
    Y[tmp] = 2.0 * X[tmp];
  }

aren't converted into
  for (tmp = 0; tmp &#60;= model_Xdim-1; tmp++) {
    Y[tmp] = 2.0 * X[tmp];
  }

This would be a special case of expression folding.

I was wondering if this optimisation was considered at design/is planned for implementation?

Han</description>
		<content:encoded><![CDATA[<p>Hi Aarti,</p>
<p>thanks for providing the example! </p>
<p>I was just wondering why the lines<br />
  model_YDim = model_XDim;<br />
  loop_ub = model_XDim - 1;<br />
  for (tmp = 0; tmp &lt;= loop_ub; tmp++) {<br />
    Y[tmp] = 2.0 * X[tmp];<br />
  }</p>
<p>aren&#8217;t converted into<br />
  for (tmp = 0; tmp &lt;= model_Xdim-1; tmp++) {<br />
    Y[tmp] = 2.0 * X[tmp];<br />
  }</p>
<p>This would be a special case of expression folding.</p>
<p>I was wondering if this optimisation was considered at design/is planned for implementation?</p>
<p>Han</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Radar Tracking in Simulink: Variable Size Signals by Seth</title>
		<link>http://blogs.mathworks.com/seth/2009/10/16/radar-tracking-in-simulink-variable-size-signals/#comment-886</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Fri, 06 Nov 2009 01:54:53 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2009/10/16/radar-tracking-in-simulink-variable-size-signals/#comment-886</guid>
		<description>@Han - Aarti's response is in a post titled &lt;a href="http://blogs.mathworks.com/seth/2009/11/06/generated-code-for-variable-size-signals/" rel="nofollow"&gt;Generated Code for Variable Size Signals&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>@Han - Aarti&#8217;s response is in a post titled <a href="http://blogs.mathworks.com/seth/2009/11/06/generated-code-for-variable-size-signals/" rel="nofollow">Generated Code for Variable Size Signals</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bus Objects and Interface Specifications by garla</title>
		<link>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-885</link>
		<dc:creator>garla</dc:creator>
		<pubDate>Thu, 05 Nov 2009 11:13:36 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2008/04/18/bus-objects-and-interface-specifications/#comment-885</guid>
		<description>what is advantage of exporting the bus object with the format as "cell" and "object". what is the difference between them?</description>
		<content:encoded><![CDATA[<p>what is advantage of exporting the bus object with the format as &#8220;cell&#8221; and &#8220;object&#8221;. what is the difference between them?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Answer for Large Scale Modeling: Model Reference by J.r</title>
		<link>http://blogs.mathworks.com/seth/2008/12/05/the-answer-for-large-scale-modeling-model-reference/#comment-884</link>
		<dc:creator>J.r</dc:creator>
		<pubDate>Sat, 31 Oct 2009 03:55:19 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2008/12/05/the-answer-for-large-scale-modeling-model-reference/#comment-884</guid>
		<description>@ Guy - Example sent to your account.  Thank you.</description>
		<content:encoded><![CDATA[<p>@ Guy - Example sent to your account.  Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Answer for Large Scale Modeling: Model Reference by Guy</title>
		<link>http://blogs.mathworks.com/seth/2008/12/05/the-answer-for-large-scale-modeling-model-reference/#comment-883</link>
		<dc:creator>Guy</dc:creator>
		<pubDate>Sat, 31 Oct 2009 00:15:51 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2008/12/05/the-answer-for-large-scale-modeling-model-reference/#comment-883</guid>
		<description>@ J.r - The ability for atomic subsystems and Model Reference to remove the "fake algebraic loop" due to their atomic property depends on where inside the atomic unit the non-directfeedthrough block is.

If you send me a simplified example that demonstrates what you describe, I would be interested to give it a look and try to explain or find a workaround for this behavior.</description>
		<content:encoded><![CDATA[<p>@ J.r - The ability for atomic subsystems and Model Reference to remove the &#8220;fake algebraic loop&#8221; due to their atomic property depends on where inside the atomic unit the non-directfeedthrough block is.</p>
<p>If you send me a simplified example that demonstrates what you describe, I would be interested to give it a look and try to explain or find a workaround for this behavior.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Answer for Large Scale Modeling: Model Reference by J.r</title>
		<link>http://blogs.mathworks.com/seth/2008/12/05/the-answer-for-large-scale-modeling-model-reference/#comment-882</link>
		<dc:creator>J.r</dc:creator>
		<pubDate>Fri, 30 Oct 2009 16:13:05 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2008/12/05/the-answer-for-large-scale-modeling-model-reference/#comment-882</guid>
		<description>Sorry to hit an old thread, but this seems like the best place to solicit help on this topic.

Is there supposed to be subtle differences between 'Minimize algebraic loop occurrences' for atomic systems and model references.  I have created a simple model which exhibits different behavior between the two (in both 2007b and 2009b).  I am ultimately trying to determine if I can help Simulink resolve the generic algebraic loop case with model references for those systems which don't actually have loops.  This is for users who have little experience with the subtleties of model references.

My model is a simple loop of subsystems of a control system.  The plant has no direct pass-through paths.  Here are the two behaviors:

Atomic subsystems: Highlights the loop at update diagram time and does not allow simulation since update diagram fails.  Setting 'MALO' on the block which is not direct pass-through caused the block order to change to make this block first and the algebraic loop is no longer detected.  Viola.  Changing the block order through 'Priority' also succeeds in clearing up the false loop detection.

Model references: Throws warnings about the false algebraic loop, but allows update diagram to complete.  Simulation is possible, but the algebraic loop algorithm is occurring at each time step, slowing the simulation and causing additional IC headaches.  Setting 'MALO' in the model which is not direct pass-through does nothing except throw additional 'Unable to remove algebraic loops' warnings.  Block order remains unchanged and 'Priority' is also unable to change Simulink's mind.

I can send you my example if you are interested.</description>
		<content:encoded><![CDATA[<p>Sorry to hit an old thread, but this seems like the best place to solicit help on this topic.</p>
<p>Is there supposed to be subtle differences between &#8216;Minimize algebraic loop occurrences&#8217; for atomic systems and model references.  I have created a simple model which exhibits different behavior between the two (in both 2007b and 2009b).  I am ultimately trying to determine if I can help Simulink resolve the generic algebraic loop case with model references for those systems which don&#8217;t actually have loops.  This is for users who have little experience with the subtleties of model references.</p>
<p>My model is a simple loop of subsystems of a control system.  The plant has no direct pass-through paths.  Here are the two behaviors:</p>
<p>Atomic subsystems: Highlights the loop at update diagram time and does not allow simulation since update diagram fails.  Setting &#8216;MALO&#8217; on the block which is not direct pass-through caused the block order to change to make this block first and the algebraic loop is no longer detected.  Viola.  Changing the block order through &#8216;Priority&#8217; also succeeds in clearing up the false loop detection.</p>
<p>Model references: Throws warnings about the false algebraic loop, but allows update diagram to complete.  Simulation is possible, but the algebraic loop algorithm is occurring at each time step, slowing the simulation and causing additional IC headaches.  Setting &#8216;MALO&#8217; in the model which is not direct pass-through does nothing except throw additional &#8216;Unable to remove algebraic loops&#8217; warnings.  Block order remains unchanged and &#8216;Priority&#8217; is also unable to change Simulink&#8217;s mind.</p>
<p>I can send you my example if you are interested.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Better If-Else Construct by Bindu</title>
		<link>http://blogs.mathworks.com/seth/2009/08/20/a-better-if-else-construct/#comment-881</link>
		<dc:creator>Bindu</dc:creator>
		<pubDate>Fri, 30 Oct 2009 06:55:18 +0000</pubDate>
		<guid>http://blogs.mathworks.com/seth/2009/08/20/a-better-if-else-construct/#comment-881</guid>
		<description>please tell me how can i get the sampling time used in simulation</description>
		<content:encoded><![CDATA[<p>please tell me how can i get the sampling time used in simulation</p>
]]></content:encoded>
	</item>
</channel>
</rss>
