<div>Hi Dave,</div>
<div>&nbsp;</div>
<div>How did you define your component? When did you get the error? Compiling time or running time?</div>
<div>&nbsp;</div>
<div>You can try to define your component&#39;s constructor&nbsp;as following:</div>
<div>&nbsp;</div>
<div>XXX(AbstractChip *chip_ptr);</div>
<div>XXX(AbstractChip *chip_ptr, int version);</div>
<div>&nbsp;</div>
<div>In fact, this error also came up when I added a new component to Ruby. But I cannot remember exactly how to solve it. Please try the about method.</div>
<div>&nbsp;</div>
<div>Good luck!</div>
<div>&nbsp;</div>
<div>Hongxia SUN<br><br>&nbsp;</div>
<div><span class="gmail_quote">2007/3/15, Dave Z. &lt;<a href="mailto:zhu_dave@yahoo.com">zhu_dave@yahoo.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">
<div style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">Hi Hongxia,<br><br>I&#39;d like to access the sequencer in the XXX component. But I think I don&#39;t have any problems with accessing the sequencer. Ruby is complaining that my vector size is not 0 (failed assertion &#39;m_size != 0&#39; at fn const TYPE&amp; Vector&lt;TYPE&gt;::ref(int) ... in ../common/Vector.h:156.
<br><br>Thanks,<br><br>Dave 
<div><span class="e" id="q_1115336353623493_1"><br><br>
<div style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman,new york,times,serif">----- Original Message ----<br>From: hongxia sun &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sunhx.seraph@gmail.com" target="_blank">
sunhx.seraph@gmail.com</a>&gt;<br>To: Gems Users &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:gems-users@cs.wisc.edu" target="_blank">gems-users@cs.wisc.edu</a>&gt;<br>Sent: Wednesday, March 14, 2007 6:14:06 PM
<br>Subject: Re: [Gems-users] adding a new component<br><br>
<div>Hi Dave,</div>
<div>&nbsp;</div>
<div>I think it should be enough. And where would you like to access the sequencer? Maybe in SLICC files, it is much more easy to do this.</div>
<div>&nbsp;</div>
<div>Good luck!</div>
<div>&nbsp;</div>
<div>Hongxia SUN<br><br>&nbsp;</div>
<div><span class="gmail_quote">2007/3/15, Dave Z. &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:zhu_dave@yahoo.com" target="_blank" rel="nofollow">zhu_dave@yahoo.com</a>&gt;:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello,<br><br>I&#39;m trying to add a new component to each chip in the system. I&#39;ve created a C++ file in $GEMS/ruby/system/ and modified SLICC files as necessary. I&#39;ve defined: 
<br><br>Vector &lt; XXX * &gt; m_L1Cache_XXX_vec in AbstractChip.h<br><br>to be able to do the following:<br><br>XXX* x_ptr = g_system_ptr-&gt;getChip(...)-&gt;getXXX();<br><br>Within this component I&#39;d like to be able to access the sequencer as well (I don&#39;t know if this changes anything). I&#39;m getting &#39;m_size != 0&#39; assertion, even though the vector size is set to 0 just like the sequencer vector. I&#39;m probably overlooking something. Could you please show me some pointers? 
<br><br>Thanks,<br><br>Dave<br><br><br><br><br><br><br>____________________________________________________________________________________<br>Food fight? Enjoy some healthy debate<br>in the Yahoo! Answers Food &amp; Drink Q&amp;A. 
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://answers.yahoo.com/dir/?link=list&amp;sid=396545367" target="_blank" rel="nofollow">http://answers.yahoo.com/dir/?link=list&amp;sid=396545367</a><br>
<br>_______________________________________________<br>Gems-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Gems-users@cs.wisc.edu" target="_blank" rel="nofollow">Gems-users@cs.wisc.edu
</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.cs.wisc.edu/mailman/listinfo/gems-users" target="_blank" rel="nofollow">https://lists.cs.wisc.edu/mailman/listinfo/gems-users</a><br>Use Google to search the GEMS Users mailing list by adding &quot;site: 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.cs.wisc.edu/archive/gems-users/" target="_blank" rel="nofollow">https://lists.cs.wisc.edu/archive/gems-users/</a>&quot; to your search.<br><br>
</blockquote></div><br>
<div>_______________________________________________<br>Gems-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Gems-users@cs.wisc.edu" target="_blank">Gems-users@cs.wisc.edu</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.cs.wisc.edu/mailman/listinfo/gems-users" target="_blank">https://lists.cs.wisc.edu/mailman/listinfo/gems-users</a><br>Use Google to search the GEMS Users mailing list by adding &quot;site:
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.cs.wisc.edu/archive/gems-users/%22" target="_blank">https://lists.cs.wisc.edu/archive/gems-users/&quot;</a>; to your search.<br><br>&nbsp;</div></div>
<br></span></div></div></div><span class="ad"><br>
<hr size="1">
TV dinner still cooling?<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/" target="_blank">Check out &quot;Tonight&#39;s Picks&quot;</a> on Yahoo! TV.
</span></div><br>_______________________________________________<br>Gems-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Gems-users@cs.wisc.edu">Gems-users@cs.wisc.edu</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.cs.wisc.edu/mailman/listinfo/gems-users" target="_blank">
https://lists.cs.wisc.edu/mailman/listinfo/gems-users</a><br>Use Google to search the GEMS Users mailing list by adding &quot;site:<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.cs.wisc.edu/archive/gems-users/" target="_blank">
https://lists.cs.wisc.edu/archive/gems-users/</a>&quot; to your search.<br><br><br></blockquote></div><br>