1
0

Correct DMINFO Fields

This commit is contained in:
Megan Wachs 2016-06-03 10:48:01 -07:00 committed by Andrew Waterman
parent 7e550ab07c
commit 3e8322816b

View File

@ -353,6 +353,7 @@ class DebugModule ()(implicit val p:cde.Parameters)
val access32 = Bool() val access32 = Bool()
val access16 = Bool() val access16 = Bool()
val accesss8 = Bool() val accesss8 = Bool()
val dramsize = UInt(width = 6)
val haltsum = Bool() val haltsum = Bool()
val reserved1 = Bits(width = 3) val reserved1 = Bits(width = 3)
val authenticated = Bool() val authenticated = Bool()
@ -572,12 +573,13 @@ class DebugModule ()(implicit val p:cde.Parameters)
DMINFORdData.access32 := Bool(cfg.hasAccess32) DMINFORdData.access32 := Bool(cfg.hasAccess32)
DMINFORdData.access16 := Bool(cfg.hasAccess16) DMINFORdData.access16 := Bool(cfg.hasAccess16)
DMINFORdData.accesss8 := Bool(cfg.hasAccess8) DMINFORdData.accesss8 := Bool(cfg.hasAccess8)
DMINFORdData.dramsize := Bits((cfg.nDebugRamBytes >> 2) - 1) // Size in 32-bit words minus 1.
DMINFORdData.haltsum := Bool(cfg.hasHaltSum) DMINFORdData.haltsum := Bool(cfg.hasHaltSum)
DMINFORdData.reserved1 := Bits(0) DMINFORdData.reserved1 := Bits(0)
DMINFORdData.authenticated := Bool(true) // Not Implemented. DMINFORdData.authenticated := Bool(true) // Not Implemented.
DMINFORdData.authbusy := Bool(false) // Not Implemented. DMINFORdData.authbusy := Bool(false) // Not Implemented.
DMINFORdData.authtype := UInt(cfg.authType.id) DMINFORdData.authtype := UInt(cfg.authType.id)
DMINFORdData.version := UInt(0) DMINFORdData.version := UInt(1) // Conforms to RISC-V Debug Spec
HALTSUMRdData.serialfull := Bool(false) // Not Implemented HALTSUMRdData.serialfull := Bool(false) // Not Implemented
HALTSUMRdData.serialvalid := Bool(false) // Not Implemented HALTSUMRdData.serialvalid := Bool(false) // Not Implemented