Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FASED] Default to line length of 64B in LLC #147

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/scala/midas/models/dram/LastLevelCache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class LLCProgrammableSettings(llcKey: LLCParams) extends Bundle
val registers = Seq(
wayBits -> RuntimeSetting(llcKey.ways.maxBits, "Log2(ways per set)"),
setBits -> RuntimeSetting(llcKey.sets.maxBits, "Log2(sets per bank"),
blockBits -> RuntimeSetting(llcKey.blockBytes.maxBits, "Log2(cache-block bytes"),
blockBits -> RuntimeSetting(6, "Log2(cache-block bytes"), // 64B is the typical line length in RC
activeMSHRs -> RuntimeSetting(llcKey.mshrs.max, "Number of MSHRs", min = 1, max = Some(llcKey.mshrs.max))
)

Expand All @@ -96,8 +96,8 @@ class LLCProgrammableSettings(llcKey: LLCParams) extends Bundle
def setLLCSettings(bytesPerBlock: Option[Int] = None): Unit = {
Console.println(s"\n${UNDERLINED}Last-Level Cache Settings${RESET}")

regMap(blockBits).set(log2Ceil(requestInput("Block size in bytes",
default = llcKey.blockBytes.max,
regMap(blockBits).set(log2Ceil(requestInput("Block size in bytes (must be a power of two)",
default = 64,
min = Some(llcKey.blockBytes.min),
max = Some(llcKey.blockBytes.max))))
regMap(setBits).set(log2Ceil(requestInput("Number of sets in LLC",
Expand Down