cc:ing the users list as this might be useful info...

Hi Xuhao,
The constructor for SimpleNetwork is actually being called from python in 
configs/ruby/Ruby.py
Note that I am not very familiar with the python-C++ interface …

The total number of vnets are defined in src/mem/ruby/network/Network.py
This is an arbitrary number.
The actual virtual networks are created from the protocol files:
src/mem/protocol/<protocol>.sm

All virtual networks defined in the protocol files are marked active by the 
code, while the remaining are inactive.

cheers,
Tushar


On Apr 11, 2012, at 11:45 AM, Xuhao Chen wrote:

> Hi Tushar,
> Thank you very much for your explanation.  Currently I want to add an extra 
> virtual network to support fast register-to-register communication as 
> described in "ASPLOS'2010 - Flexible Architectural Support for Fine-Grain 
> Scheduling". It is said that "This only requires a moderate amount of extra 
> buffering in the routers (e.g. 9KB of SRAM space in a 64-node CMP), and 
> avoids deadlocks due to interference with the coherence protocol traffic."
> I find that each virtual network has two state: active and inactive. There 
> are three active virtual networks initially. If I want to add one, I only 
> need to set the fourth active and allocate a group of message buffers for it, 
> right? But I didn't find where the constructor of class SimpleNetwork is 
> called, that is, who instantiate the object of SimpleNetwork?
>  
> Best regards,
> Xuhao Chen

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

Reply via email to