Hello,

It is not a RubyRequest. The RubyRequest is the input (in CC protocol
defined in  SLICC) .
The output of that is a RequestMsg (auto generated class according to specs
in* Network_test-msg.sm*)

Check outport in :Network_test-cache.sm:

in_port(mandatoryQueue_in, RubyRequest, mandatoryQueue, desc="...") {
....
out_port(requestNetwork_out, RequestMsg, requestFromCache);
...

In order to read the RequestMsg from the Network Interface:


*#include "mem/protocol/RequestMsg.hh"*
*RequestMsg* rm = safe_cast<RequestMsg*>(msg_ptr.get());*

You can add more fields in RequestMsg in file: *Network_test-msg.sm *if
needed.

On 16 September 2014 00:21, Weber, Fabian via gem5-users <
[email protected]> wrote:

>  Hello,
>
>  I try to cast a MessagePtr into a RubyRequest Pointer, but it won't work.
> Does somebody know why?
>
>  The RubyRequest is created in the Network-Tester. Maybe the Message
> passed to the NetworkInterface is not this original RubyRequest? But if so,
> where is it converted?
>
>  This:
>  RubyRequest *new_ruby_request_ptr = safe_cast<RubyRequest
> *>(msg_ptr.get());
>
>  Fails with:
>  gem5.debug: build/ARM/base/cast.hh:49: T safe_cast(U) [with T =
> RubyRequest*; U = Message*]: Assertion `ret' failed.
>
>
>  Best regards,
> Fabian Weber
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to