Hello,

I need to communicate to the SLICC objects while I am configuring the memory 
systems topology.

In the topology files for the Ruby memory system (located in 
gem5/configs/topologies), It has these lines of code:

    def __init__(self, controllers):
        self.nodes = controllers

I printed the controllers variable in python and I got:

[<m5.objects.L1Cache_Controller.L1Cache_Controller object at 0x2f57790>, 
<m5.objects.L1Cache_Controller.L1Cache_Controller object at 0x2f57a90>, 
<m5.objects.L1Cache_Controller.L1Cache_Controller object at 0x2f57d50>, 
<m5.objects.L1Cache_Controller.L1Cache_Controller object at 0x2f59050>, 
<m5.objects.Directory_Controller.Directory_Controller object at 0x2f59410>, 
<m5.objects.Directory_Controller.Directory_Controller object at 0x2f596d0>]

I believe these are the SLICC objects that have been created. I am wondering if 
there is anyway how I can access the variables and functions that I declared in 
the SLICC objects. Can I do the following for example:

controllers[0].doSomething()
controllers[0].foo  = 0

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

Reply via email to