I'm guessing the value 4 is at one of the corner routers where there is perhaps 
one L1, one Dir, and 2 network ports.

From a router's perspective, all input/output ports are the same. If you want 
to know which ones are connected to the directory, I think you will need to set 
some variables in the router when the corresponding NI is created during 
startup.

- Tushar


On Sep 26, 2012, at 2:55 AM, tejasi pimpalkhute wrote:

> Hi,
> 
> I tried printing the number of input ports and output ports from 
> SWallocator.cc using this 
> 
> m_num_inports = m_router->get_num_inports();     //return m_input_unit.size()
> m_num_outports = m_router->get_num_outports(); 
> 
> It prints the values as 4 input ports and 4 output ports. I had read 
> somewhere in the users forum that each of L1, L2, directory connections add a 
> port to the router. If this is correct, shouldn't we see those additions 
> here? Also, can we know which input/output port of router is connected to the 
> directory/off-chip memory?
> 
> Thanks!
> 
> 
> _______________________________________________
> gem5-users mailing list
> 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