Take a look at NetworkInterface.cc<http://NetworkInterface.cc>
Here is where packets and flits are created and allocated VCs. You can add any 
attributes you want to flit.hh and set them when the flit is created.
If you are routing specific flits in specific statically allocated VCs, you 
should also modify the vc selection function in SwitchAllocator which currently 
dynamically allocates the next free VC inside the specific virtual network.
Check out the garnet2.0 wiki page for more details.

Cheers,
Tushar

On Jul 3, 2017, at 12:54 PM, Mohammadsadegh Sadeghi 
<mohsas...@yahoo.com<mailto:mohsas...@yahoo.com>> wrote:

Hello all,

I have a workload that is categorized for different types of benchmarks. I want 
to route packets of each benchmark type in its isolated (specified) VCs. I want 
to run them in FS mode under x86 with garnet 2.0.

I want to know:
1- Where should I modify the code to define a field as a new attribute for each 
packet/phlit which can specify its type ( based on different benchmark types). 
It needs to know where packets generated and assign this attribute to follow in 
all paths that packets travel?

2- How to place each packet/phlit in its appropriate VC when arrive to each 
router based on its type?

3- How to distinguish VCs regarding to different types that I want to consider?

Best regards,
Mohammad
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org<mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to