Sorry but I think I didn't get what you said
.
>You can ask the system what a specific master ID corresponds to (and get a
string back).
What I undesrtand is that I have to define a table that maps the
master id to a meaning full string. If that is true, then I have to
manually change the code and add/modify the number of cpus and their
corresponding master id every time.
However I am pretty sure that gem5 should have such a table as the
simulation starts.

Another thing is the contextId. In a single core simulation, I see
this variable is 0 for all requests and on a 2 core simulation, it
toggles (0 and 1).
Don't you think contextId is what I asked in the first post?

On 1/25/13, Andreas Hansson <[email protected]> wrote:
> Hi Mahmood,
>
> You can ask the system what a specific master ID corresponds to (and get a
> string back).
>
> Each master in the system gets an ID. That includes DMAs etc. Thus, every
> block that on its own generates requests should have a master id.
>
> Good luck.
>
> Andreas
>
> On 25/01/2013 10:56, "Mahmood Naderan" <[email protected]> wrote:
>
>>I see this in stride.cc
>>
>>MasterID master_id = useMasterId ? pkt->req->masterId() : 0;
>>
>>However, on a single core simulation, I see that master_id is 6. How
>>that is possible?
>>
>>On 1/25/13, Andreas Hansson <[email protected]> wrote:
>>> Hi Mahmood,
>>>
>>> Have a look at the MasterID.
>>>
>>> The src/dest field is hop to hop and is only used by (de)multiplexing
>>> components to send responses to the right port.
>>>
>>> Andreas
>>>
>>> On 25/01/2013 10:27, "Mahmood Naderan" <[email protected]> wrote:
>>>
>>>>Hi,
>>>>How can I find which core send a message? As I read packet.hh, there
>>>>is no member like core_id or something else.
>>>>
>>>>The only thing that I guess is
>>>>    /**
>>>>     * Device address (e.g., bus ID) of the source of the
>>>>     * transaction. The source is not responsible for setting this
>>>>     * field; it is set implicitly by the interconnect when the packet
>>>>     * is first sent.
>>>>     */
>>>>    NodeID src;
>>>>
>>>>However don't know how many devices are defined. For example, if L2
>>>>receives a packet, how can I check the id of the sender core?
>>>>
>>>>
>>>>--
>>>>Regards,
>>>>Mahmood
>>>>_______________________________________________
>>>>gem5-users mailing list
>>>>[email protected]
>>>>http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>>
>>>
>>>
>>> -- IMPORTANT NOTICE: The contents of this email and any attachments are
>>> confidential and may also be privileged. If you are not the intended
>>> recipient, please notify the sender immediately and do not disclose the
>>> contents to any other person, use it for any purpose, or store or copy
>>>the
>>> information in any medium.  Thank you.
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>>--
>>Regards,
>>Mahmood
>>_______________________________________________
>>gem5-users mailing list
>>[email protected]
>>http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
> -- IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium.  Thank you.
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>


-- 
Regards,
Mahmood
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to