Support for ICache stat counters.

This commit is contained in:
jon
2020-12-15 14:49:16 +00:00
parent 73d25bf8f5
commit b6a397df52
5 changed files with 44 additions and 10 deletions

View File

@@ -372,6 +372,9 @@ interface ICoCache;
method Action flush;
method Bool flush_done;
interface Perf#(L1IPerfType) perf;
`ifdef PERFORMANCE_MONITORING
method EventsCache events;
`endif
interface ChildCacheToParent#(L1Way, void) to_parent;
@@ -442,6 +445,9 @@ module mkICoCache(ICoCache);
`endif
endmethod
endinterface
`ifdef PERFORMANCE_MONITORING
method EventsCache events = cache.events;
`endif
interface to_parent = cache.to_parent;