Merge pull request #233 from dnltz/WIP/dnltz/csr-registers

plugin: CsrPlugin: Init cycle and instret registers
This commit is contained in:
Dolu1990 2022-01-27 12:05:43 +01:00 committed by GitHub
commit 7d9a50357f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -689,8 +689,8 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
val exceptionCode = Reg(UInt(trapCodeWidth bits))
}
val mtval = Reg(UInt(xlen bits))
val mcycle = Reg(UInt(64 bits)) randBoot()
val minstret = Reg(UInt(64 bits)) randBoot()
val mcycle = Reg(UInt(64 bits)) init(0)
val minstret = Reg(UInt(64 bits)) init(0)
val medeleg = supervisorGen generate new Area {