Fix CsrPlugin FPU access
This commit is contained in:
parent
8c1e69b872
commit
83606a9eb0
|
@ -766,7 +766,7 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
|
||||||
buffer.ready := injectionPort.fire
|
buffer.ready := injectionPort.fire
|
||||||
val fpu = withDebugFpuAccess generate new Area {
|
val fpu = withDebugFpuAccess generate new Area {
|
||||||
val access = service(classOf[FpuPlugin]).access
|
val access = service(classOf[FpuPlugin]).access
|
||||||
access.start := buffer.valid && buffer.op === DebugDmToHartOp.REG_READ || buffer.op === DebugDmToHartOp.REG_WRITE
|
access.start := buffer.valid && (buffer.op === DebugDmToHartOp.REG_READ || buffer.op === DebugDmToHartOp.REG_WRITE)
|
||||||
access.regId := buffer.address
|
access.regId := buffer.address
|
||||||
access.write := buffer.op === DebugDmToHartOp.REG_WRITE
|
access.write := buffer.op === DebugDmToHartOp.REG_WRITE
|
||||||
access.writeData := dataCsrw.value.take(2).asBits
|
access.writeData := dataCsrw.value.take(2).asBits
|
||||||
|
|
Loading…
Reference in New Issue