Thank you, that helps a lot.

Best Regards,
*Eng. Karim Soliman*
Teaching Assistant
Computer Engineering Department
Pharos University in Alexandria (P.U.A)


On Thu, Mar 30, 2023 at 10:32 AM Srikant Bharadwaj <srikan...@gmail.com>
wrote:

> Hi Karim,
> Adding to what Tushar and Gabriel mentioned, you can use Garnet standalone
> to do this.
>
> From what I understand, you want to create a custom traffic pattern
> according to your calculations. You can create your own traffic pattern by
> modifying the traffic injector.
> You can follow the following steps in that case:
> 1. Add your custom traffic pattern name
> to src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.hh and
> in initTrafficType()
> src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.cc under
> the rest of them.
> 2. Add your calculation for your traffic pattern
> in src/cpu/testers/garnet_synthetic_traffic/GarnetSyntheticTraffic.cc. You
> can look at the other traffic patterns to see how you can set the input and
> destination of each message.
> 3. Use your custom traffic pattern name when you launch experiments in
> your command line instead of uniform-random traffic.
>
> Thanks,
> Srikant
>
>
> On Wed, Mar 29, 2023 at 7:03 PM Karim Soliman via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Thank you for your response, I'm actually interested in routing and not
>> coherency protocols, so i rebuild gem5 with the following command to use
>> Garnet Standalone protocol
>> scons build/NULL/gem5.debug PROTOCOL=Garnet_standalone
>> Thanks for the help about using the appropriate protocol.
>> What I want to do is to inject the messages or the flits inside each one
>> of the three vnets 0, 1, and 2 based on some calculations I'm gonna to do
>> and I will use in these calculations as input parameters the source and
>> destination Ids of the message / flits to achieve my results.
>> In other words, Garnet Stand Alone classifies messages injections based
>> on the type of the message LD / IFETCH / ST to be injected in vnet 0, 1 and
>> 2 respectively.
>> What I'm trying to do is to classify the messages based on my
>> calculations which need as input the Ids of the source and the destination
>> of each message.
>>
>> Is that possible?
>>
>>
>> Best Regards,
>> *Eng. Karim Soliman*
>> Teaching Assistant
>> Computer Engineering Department
>> Pharos University in Alexandria (P.U.A)
>>
>>
>> On Wed, Mar 29, 2023 at 5:59 PM gabriel.busnot--- via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> Hi Karim,
>>>
>>> Can you be more specific about what you are trying to achieve for us to
>>> provide accurate answers?
>>>
>>> You seem to be really focused on the transport and not so much on the
>>> coherency protocol. In that case, I recommend using the garnet standalone
>>> protocol:
>>>
>>>    -
>>>
>>>
>>>    https://www.gem5.org/documentation/general_docs/ruby/Garnet_standalone/
>>>    -
>>>
>>>
>>>    
>>> https://www.gem5.org/documentation/general_docs/ruby/garnet_synthetic_traffic/
>>>
>>> Then check what Garnet is natively capable of
>>>
>>>    -
>>>
>>>    https://www.gem5.org/documentation/general_docs/ruby/heterogarnet/
>>>
>>> And if that does not work for you, then you need to hack the model to
>>> bring your features in. For instance, you can modify the garnet standalone
>>> protocol to inject traffic on different vnets but it is up to you to define
>>> how that should happen.
>>>
>>> Regards,
>>>
>>> Gabriel
>>> _______________________________________________
>>> gem5-users mailing list -- gem5-users@gem5.org
>>> To unsubscribe send an email to gem5-users-le...@gem5.org
>>>
>> _______________________________________________
>> gem5-users mailing list -- gem5-users@gem5.org
>> To unsubscribe send an email to gem5-users-le...@gem5.org
>>
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to