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

fix(TP): fix hardcoding issues in Common.scala to support sv48 #180

Merged
merged 1 commit into from
Sep 3, 2024
Merged
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/huancun/Common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,13 @@ class PrefetchRecv extends Bundle {
class TPmetaReq(implicit p: Parameters) extends HuanCunBundle {
// FIXME: parameterize the hard code
val hartid = UInt(hartIdLen.W)
val set = UInt(32.W)
val set = UInt(32.W) // determined by TP
val way = UInt(4.W)
val wmode = Bool()
val rawData = Vec(16, UInt((36-6).W))
val rawData = Vec(16, UInt((fullAddressBits - offsetBits).W))
}

class TPmetaResp(implicit p: Parameters) extends HuanCunBundle {
val hartid = UInt(hartIdLen.W)
val rawData = Vec(16, UInt((36-6).W))
val rawData = Vec(16, UInt((fullAddressBits - offsetBits).W))
}
Loading