mirror of
https://github.com/SpinalHDL/VexRiscv.git
synced 2025-01-03 03:43:39 -05:00
Add whitebox example
This commit is contained in:
parent
17d52ce58f
commit
0979f8ba80
1 changed files with 14 additions and 0 deletions
14
src/main/scala/vexriscv/demo/WhiteboxPlugin.scala
Normal file
14
src/main/scala/vexriscv/demo/WhiteboxPlugin.scala
Normal file
|
@ -0,0 +1,14 @@
|
|||
package vexriscv.demo
|
||||
|
||||
import spinal.core._
|
||||
import vexriscv.plugin.Plugin
|
||||
import vexriscv.{DecoderService, Stageable, VexRiscv}
|
||||
|
||||
class WhiteboxPlugin extends Plugin[VexRiscv]{
|
||||
override def build(pipeline: VexRiscv): Unit = {
|
||||
Component.current.afterElaboration {
|
||||
def export(name : String): Unit = out(Component.current.reflectBaseType(name))
|
||||
export("IBusCachedPlugin_fetchPc_pc")
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue