Hi,

I only know in ruby fs mode, some .py files write like this:

...
l1_cntrl = L1Cache_Controller(version = i,
                                      L1Icache = l1i_cache, 
                                      L1Dcache = l1d_cache, // separate 
instance of I and D cache. 
                                      l2_select_num_bits = l2_bits,
                                      send_evictions = (
                                          options.cpu_type == "detailed"),
                                      prefetcher = prefetcher,
                                      ruby_system = ruby_system,
                                      clk_domain=system.cpu[i].clk_domain,
                                      transitions_per_cycle=options.ports,
                                      enable_prefetch = False)

...

You can substitute the l1d with you model.

Wei
----- Original Message -----
From: "Noah" <[email protected]>
To: [email protected]
Sent: Friday, October 16, 2015 7:15:39 AM
Subject: [gem5-users] adding a new L1 cache

Hi,

I'm working on gem5 and relatively new to it. I wanted to know if it's 
possible to add a new Level 1 cache other the existing instruction and Data 
cache. Make it work like a buffer etc. 

I have thought about duplicating the existing cache model of the data or 
instruction cache depending on what it has to handle. I have connected the 
ports to the cpu and L2 cache. However, I'm stuck when it comes to the actual 
data transfer or instruction transfer. How to enable data to go to my new 
cache and how do I check what data/instruction goes into the my new cache?

Thanks for any help in advance!!!

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

Reply via email to