-----Original Message-----
From:
gems-users-bounces@xxxxxxxxxxx [mailto:gems-users-bounces@xxxxxxxxxxx] On Behalf Of hongxia sun
Sent: Thursday, February 01, 2007
2:21 AM
To: Gems Users
Subject: Re: [Gems-users] network
in ruby
Another question: I notice that in the
PerfectSwitch.C->wakeup, each "incoming" (including machine and
other input links) has the number of total virtual nets. However, which virtual
net that a message belongs to only depends on its sender and destination. That
means a message will not change its virtual net throughout its transferring
from node to node. In other words, virtual net is set fixed between machines
but not set for adaptive routing. Am I right? If I change a message's virtual
net during its routing process, could the message reach its destination without
fault?
2007/2/1, Mike Marty <mikem@xxxxxxxxxxx>:
> I am working on the
network code of ruby. And I have several questions on
> it.
>
> Firstly, I noticed that the SimpleNetwork, the PerfectSwitch and the
> Throttle all defined several MessageBuffer Vectors. Messages were
> transferred among these MessageBuffers. I was wondering that the
> MessageBuffers in PerfectSwitch and Throttle were only private copies of
> MessageBuffer defined in SimpleNetwork or they were independent
> MessageBuffers used to transferred messages. Were all the MessageBuffers
> defined in *.sm files, were not they?
>
MessageBuffers are all over the place. They are in Slicc-defined
controllers, in Throttles, and in PerfectSwitches. Messages traverse
a
series of MessageBuffers until they reach the endpoint.
> Secondly, I noticed that when PerfectSwitch->addInPort and
> Throttle->addLinks they set them selves as the Consumers of the
> MessageBuffers. And when a message was enqueued to a corresponding
> MessageBuffer, it would wakeup its Consumer. Am I right?
>
Thats correct.
--Mike
_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"
to your search.