Skip to content

Commit

Permalink
Merge pull request #176 from OpenXiangShan/tmp_use_maxhartidbits
Browse files Browse the repository at this point in the history
configs: Use MaxHartIdBits for hartIdLen
  • Loading branch information
linjuanZ authored May 11, 2024
2 parents 33d2ece + 3e2798e commit 6e2322e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/huancun/HuanCun.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import org.chipsalliance.cde.config.Parameters
import chisel3._
import chisel3.util._
import freechips.rocketchip.diplomacy._
import freechips.rocketchip.tile.MaxHartIdBits
import freechips.rocketchip.tilelink._
import freechips.rocketchip.tilelink.TLMessages._
import freechips.rocketchip.util.{BundleField, BundleFieldBase, UIntToOH1}
Expand Down Expand Up @@ -103,7 +104,7 @@ trait HasHuanCunParameters {

lazy val outerSinkBits = edgeOut.bundle.sinkBits

lazy val hartIdLen: Int = log2Up(cacheParams.hartIds.length)
lazy val hartIdLen: Int = p(MaxHartIdBits)

val block_granularity = if (!cacheParams.inclusive && cacheParams.clientCaches.nonEmpty) {
cacheParams.clientCaches.head.blockGranularity
Expand Down

0 comments on commit 6e2322e

Please sign in to comment.