<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Hongxia,<br><br>I'd like to access the sequencer in the XXX component. But I think I don't have any problems with accessing the sequencer. Ruby is complaining that my vector size is not 0 (failed assertion 'm_size != 0' at fn const TYPE&amp; Vector&lt;TYPE&gt;::ref(int) ... in ../common/Vector.h:156.<br><br>Thanks,<br><br>Dave<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: hongxia sun &lt;sunhx.seraph@gmail.com&gt;<br>To: Gems Users &lt;gems-users@cs.wisc.edu&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 rel="nofollow" target="_blank" href="mailto:zhu_dave@yahoo.com">zhu_dave@yahoo.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hello,<br><br>I'm trying to add a new component to each chip in the system. I've created a C++ file in $GEMS/ruby/system/ and modified SLICC files as necessary. I'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'd like to be able to access the sequencer as well (I don't know if this changes anything). I'm getting 'm_size != 0' assertion, even though the vector size is set to 0 just like the sequencer vector. I'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 rel="nofollow" target="_blank" href="http://answers.yahoo.com/dir/?link=list&amp;sid=396545367">http://answers.yahoo.com/dir/?link=list&amp;sid=396545367</a><br><br>_______________________________________________<br>Gems-users mailing list<br><a rel="nofollow" target="_blank" href="mailto:Gems-users@cs.wisc.edu">
Gems-users@cs.wisc.edu</a><br><a rel="nofollow" target="_blank" href="https://lists.cs.wisc.edu/mailman/listinfo/gems-users">https://lists.cs.wisc.edu/mailman/listinfo/gems-users</a><br>Use Google to search the GEMS Users mailing list by adding "site:
<a rel="nofollow" target="_blank" href="https://lists.cs.wisc.edu/archive/gems-users/">https://lists.cs.wisc.edu/archive/gems-users/</a>" to your search.<br><br></blockquote></div><br>
<div>_______________________________________________<br>Gems-users mailing list<br>Gems-users@cs.wisc.edu<br><a target="_blank" href="https://lists.cs.wisc.edu/mailman/listinfo/gems-users">https://lists.cs.wisc.edu/mailman/listinfo/gems-users</a><br>Use Google to search the GEMS Users mailing list by adding "site:<a target="_blank" href="https://lists.cs.wisc.edu/archive/gems-users/%22">https://lists.cs.wisc.edu/archive/gems-users/"</a>; to your search.<br><br></div></div><br></div></div><br>

<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.</body></html>