Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added HasCoreMonitor trait to HasTiles trait (#1797)
* Moved CoreMonitorBundle class to util package
- Loading branch information
Showing
5 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// See LICENSE.Berkeley for license details. | ||
// See LICENSE.SiFive for license details. | ||
|
||
package freechips.rocketchip.util | ||
|
||
import chisel3._ | ||
|
||
// this bundle is used to expose some internal core signals | ||
// to verification monitors which sample instruction commits | ||
class CoreMonitorBundle(val xLen: Int) extends Bundle { | ||
val hartid = UInt(width = xLen.W) | ||
val timer = UInt(width = 32.W) | ||
val valid = Bool() | ||
val pc = UInt(width = xLen.W) | ||
val wrdst = UInt(width = 5.W) | ||
val wrdata = UInt(width = xLen.W) | ||
val wren = Bool() | ||
val rd0src = UInt(width = 5.W) | ||
val rd0val = UInt(width = xLen.W) | ||
val rd1src = UInt(width = 5.W) | ||
val rd1val = UInt(width = xLen.W) | ||
val inst = UInt(width = 32.W) | ||
} | ||
|
||
// mark a module that has cores with CoreMonitorBundles | ||
trait HasCoreMonitorBundles { | ||
def coreMonitorBundles: List[CoreMonitorBundle] | ||
} |