drcachesim: add config file for more complex cache configs #1715

Closed
derekbruening opened this Issue Jun 29, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@derekbruening
Contributor

derekbruening commented Jun 29, 2015

Split from #1703.

Initially our cache simulator only supports a simple 2-level hierarchy
with homogeneous L1 caches. To support more complex cache layouts we
would want to add a configuration-file-based input to describe them.

We would want to support heterogeneous peers at any level, any number of
levels, and in fact perhaps any arbitrary tree. The only constraints
would be that I vs D splits must be at the lower levels.

We would need to add a tree data struct to the cache handling code.

*** TODO have a default that doesn't need file

The default would be our existing 2-level, with perhaps the parameters
matching the current underlying cpu.

*** TODO file format

Maybe something like this:

{
  type=unified
  associativity=16
  linesize=64
  size=8M
  replace=LRU
  children = {
    type=unified
    associativity=8
    linesize=64
    size=512K
    replace=LRU
    children = {
      type=data
      associativity=8
      linesize=64
      size=32K
      replace=LRU
    } repeat=4
    {
      type=instruction
      associativity=8
      linesize=64
      size=32K
      replace=LRU
    } repeat=4
  } repeat=4
}
@derekbruening

This comment has been minimized.

Show comment
Hide comment
@derekbruening

derekbruening Jun 26, 2018

Contributor

Adding a manual link as fa4cc4a from #3045 failed to include a reference.

Contributor

derekbruening commented Jun 26, 2018

Adding a manual link as fa4cc4a from #3045 failed to include a reference.

@kharbutli kharbutli closed this in 27e7682 Jun 27, 2018

kharbutli added a commit that referenced this issue Jun 27, 2018

i#1715: Fix flaky test (#3070)
The test tool.drcachesim.missfile-config-file is flaky and this commit fixes it by relaxing the output template.

Issue: #1715
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment