avadhpatel / marss

PTLsim and QEMU based Computer Architecture Research Simulator
http://www.marss86.org
129 stars 63 forks source link

Use MARSS's cache module separately #32

Open amiralish opened 11 years ago

amiralish commented 11 years ago

I'm wondering if the cache module can be used separately on some other platforms (if those platforms support an external module. e.g. Synposis Processor Designer, etc.) or it is only applicable in MARSS full-system simulator.

Thanks, -Amir

avadhpatel commented 11 years ago

Yes you can convert cache code to a module, in early development we used to do that, but that feature was never updated. The interface to access all cache code is via MemoryController so you should be able to compile all cache code into a module and use MemoryController interface to access any cache.

On Fri, Aug 9, 2013 at 8:44 AM, amiralish notifications@github.com wrote:

I'm wondering if the cache module can be used separately on some other platforms (if those platforms support an external module. e.g. Synposis Processor Designer, etc.) or it is only applicable in MARSS full-system simulator.

Thanks, -Amir

— Reply to this email directly or view it on GitHubhttps://github.com/avadhpatel/marss/issues/32 .

amiralish commented 11 years ago

Oh great. and there is no restriction on using cache module over Qemu platform, right? I can just make it as a module code and access it via its interface in any other platform, yes?

and also I assume that the interface to access cache from cpu is in cpuController.h. So all needed to use the cache interface are: cpuController.h and memoryController.h correct?

Thanks, -Amir

On Fri, Aug 9, 2013 at 10:07 AM, Avadh Patel notifications@github.comwrote:

Yes you can convert cache code to a module, in early development we used to do that, but that feature was never updated. The interface to access all cache code is via MemoryController so you should be able to compile all cache code into a module and use MemoryController interface to access any cache.

  • Avadh

On Fri, Aug 9, 2013 at 8:44 AM, amiralish notifications@github.com wrote:

I'm wondering if the cache module can be used separately on some other platforms (if those platforms support an external module. e.g. Synposis Processor Designer, etc.) or it is only applicable in MARSS full-system simulator.

Thanks, -Amir

— Reply to this email directly or view it on GitHub< https://github.com/avadhpatel/marss/issues/32> .

— Reply to this email directly or view it on GitHubhttps://github.com/avadhpatel/marss/issues/32#issuecomment-22400436 .