Skip to content

Commit 2753c5e

Browse files
authored
feat(LLCParam): fix parseAddress in case PAddrBits > CHI Addr width (#60)
1 parent 09c89f2 commit 2753c5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/openLLC/LLCParam.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import freechips.rocketchip.diplomacy._
2323
import org.chipsalliance.cde.config.{Field, Parameters}
2424
import coupledL2.L2Param
2525
import huancun.CacheParameters
26+
import utility.ZeroExt
2627

2728
case class ResourceConfig(refill: Int, response: Int, snoop: Int, memory: Int)
2829

@@ -100,7 +101,7 @@ trait HasOpenLLCParameters {
100101
val bank = offset >> offsetBits
101102
val set = bank >> bankBits
102103
val tag = set >> setBits
103-
(tag(tagBits - 1, 0), set(setBits - 1, 0), if (bankBits == 0) 0.U(0.W) else bank(bankBits - 1, 0),
104+
(ZeroExt(tag, tagBits), set(setBits - 1, 0), if (bankBits == 0) 0.U(0.W) else bank(bankBits - 1, 0),
104105
offset(offsetBits - 1, 0))
105106
}
106107

0 commit comments

Comments
 (0)