Skip to content
This repository was archived by the owner on Jul 9, 2022. It is now read-only.

Commit 3ff93bb

Browse files
add table with example cache configurations
1 parent cb7816b commit 3ff93bb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

selfie.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,18 @@ uint64_t L1_CACHE_ENABLED = 0;
12491249
// is no code modification during runtime)
12501250
uint64_t L1_CACHE_COHERENCY = 1;
12511251

1252+
// example configurations:
1253+
// +-------------------+---------------+-----------------------------+------------+
1254+
// | name | cache size | associativity | block size |
1255+
// +===================+===============+=============================+============+
1256+
// | CORE-V CVA6 | dcache: 32 KB | dcache: 8 | 16 B |
1257+
// | | icache: 16 KB | icache: 4 | |
1258+
// +-------------------+---------------+-----------------------------+------------+
1259+
// | direct-mapped | 2^x B | 1 | 2^y B |
1260+
// +-------------------+---------------+-----------------------------+------------+
1261+
// | fully associative | 2^x B | (cache size) / (block size) | 2^y B |
1262+
// +-------------------+---------------+-----------------------------+------------+
1263+
12521264
// L1-cache size in byte
12531265
// assert: cache sizes are powers of 2
12541266
uint64_t L1_DCACHE_SIZE = 32768; // 32 KB data cache

0 commit comments

Comments
 (0)