Skip to content

Commit

Permalink
feat: full 32bit version for rv-mini and NutShell(patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeddonShen committed Aug 26, 2024
1 parent 8e68f41 commit 2650dde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/main/scala/rvspeccore/checker/ArbitraryGenerater.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ object ArbitraryRegFile {
}
def init(implicit XLEN: Int): Vec[UInt] = {
val rf = Wire(Vec(32, UInt(XLEN.W)))
rf.map(_ := DontCare)
rf(0) := 0.U
// rf.map(_ := DontCare)
rf.map(_ := 0.U)
rf(1) := DontCare
rf(2) := DontCare
BoringUtils.addSource(rf, uniqueIdArbitraryRegFile)
rf
}
Expand Down
7 changes: 6 additions & 1 deletion src/main/scala/rvspeccore/checker/Checker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ class CheckerWithResult(checkMem: Boolean = true, enableReg: Boolean = false)(im
assert(io.mem.get.read.addr === specCore.io.mem.read.addr)
assert(io.mem.get.read.memWidth === specCore.io.mem.read.memWidth)
}
assert(io.mem.get.write.valid === specCore.io.mem.write.valid)
assert(io.mem.get.write.valid === specCore.io.mem.write.valid)
when(io.mem.get.write.valid || specCore.io.mem.write.valid){
assert(io.mem.get.write.addr === specCore.io.mem.write.addr)
assert(io.mem.get.write.data === specCore.io.mem.write.data)
assert(io.mem.get.write.memWidth === specCore.io.mem.write.memWidth)
}
specCore.io.mem.read.data := io.mem.get.read.data
} else {
specCore.io.mem.read.data := DontCare
Expand Down

0 comments on commit 2650dde

Please sign in to comment.