Re: [Gems-users] MessageBuffer


Date: Mon, 6 Nov 2006 11:41:29 -0600 (CST)
From: Mike Marty <mikem@xxxxxxxxxxx>
Subject: Re: [Gems-users] MessageBuffer
Grep for "triggerQueue" in the protocols directory.  There are many
examples of using a MessageBuffer in this way.

--Mike


> Does anybody know how to use MessageBuffer the way I described? I did a
> search on the list archive and couldn't find anything close. I think the
> GEMS author might know how to do it.  I'm stuck on this and really
> appreciate your comments!
>
> Thanks in advance.
> Lei
> ----- Original Message -----
> From: <lya755@xxxxxxxxxxxxxxxxxxxx>
> To: <Gems-users@xxxxxxxxxxx>
> Sent: Monday, November 06, 2006 1:42 AM
> Subject: [Gems-users] MessageBuffer
>
>
> > Dear list,
> >
> > I have a question regarding the use of MessageBuffer. I am using
> > MSI_MOSI_CMP_directory protocol. I want to create a MessageBuffer that
> > connects an in_port and an out_port, both belong to the
> > L2Cache_Controller.
> > Basically the L2 controller sends message to the out_port and the in_port
> > just
> > process each message in FIFO order. No data needs to go in or out of the
> > L2
> > cache.
> >
> > Right now I defined the following in my MSI_MOSI_CMP_directory-L2cache.sm
> > file:
> >
> > MessageBuffer LocalL2Request, ordered="true";
> >
> > out_port(LocalL2Request_out, RequestMsg, LocalL2Request);
> >
> > in_port(LocalL2Request_in, RequestMsg, LocalL2Request) {
> >  if(LocalL2Request_in.isReady()) {
> >    peek(LocalL2Request_in, RequestMsg) {
> >      // Do something;
> >    }
> >  }
> > }
> >
> > However it seems that the two ports are not "connected" even if they share
> > the
> > same MessageBuffer. The simulator goes to an infinite loop when I send
> > requests to the out_port, which implies that those requests were never
> > processed by the in_port.
> >
> > Please help!!
> >
> > Thanks a lot!
> > Lei
> >
> >
> > _________________________________________________________
> > This message was sent through the NU ECE webmail gateway.
> > _______________________________________________
> > 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.
> >
> >
>
>
> _______________________________________________
> 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.
>
[← Prev in Thread] Current Thread [Next in Thread→]