Skip to content

Commit

Permalink
icache: switch dataArrays' size to ramDepth (#619)
Browse files Browse the repository at this point in the history
Co-authored-by: lijue <lijue@pku.edu.cn>
  • Loading branch information
lee9352 and lijue committed Jan 4, 2023
1 parent 426bcf9 commit 570d135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/ifu/icache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class ICacheModule(outer: ICache) extends LazyModuleImp(outer)
DescribedSRAM(
name = s"dataArrayWay_${x}",
desc = "ICache Data Array",
size = nSets * refillCycles,
size = ramDepth,
data = UInt((wordBits).W)
)
}
Expand All @@ -205,14 +205,14 @@ class ICacheModule(outer: ICache) extends LazyModuleImp(outer)
DescribedSRAM(
name = s"dataArrayB0Way_${x}",
desc = "ICache Data Array",
size = nSets * refillCycles,
size = ramDepth,
data = UInt((wordBits/nBanks).W)
)} ++
(0 until nWays).map { x =>
DescribedSRAM(
name = s"dataArrayB1Way_${x}",
desc = "ICache Data Array",
size = nSets * refillCycles,
size = ramDepth,
data = UInt((wordBits/nBanks).W)
)}
}
Expand Down

0 comments on commit 570d135

Please sign in to comment.