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

Reply via email to