From 3f6d5110cd575fded9f4e12a15162f9e39afa103 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Wed, 28 Jun 2017 14:15:05 -0700 Subject: [PATCH] rocket: dtim is not a dcache --- src/main/scala/rocket/RocketTiles.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/rocket/RocketTiles.scala b/src/main/scala/rocket/RocketTiles.scala index ab91fab3..a393cb15 100644 --- a/src/main/scala/rocket/RocketTiles.scala +++ b/src/main/scala/rocket/RocketTiles.scala @@ -42,7 +42,7 @@ class RocketTile(val rocketParams: RocketTileParams, val hartid: Int)(implicit p val c = if (rocketParams.core.useCompressed) "c" else "" val isa = s"rv${p(XLen)}i$m$a$f$d$c" - val dcache = rocketParams.dcache.map(d => Map( + val dcache = rocketParams.dcache.filter(!_.scratch.isDefined).map(d => Map( "d-cache-block-size" -> ofInt(block), "d-cache-sets" -> ofInt(d.nSets), "d-cache-size" -> ofInt(d.nSets * d.nWays * block))).getOrElse(Map())