Add whitebox example

This commit is contained in:
Dolu1990 2022-10-24 10:24:32 +02:00
parent 17d52ce58f
commit 0979f8ba80
1 changed files with 14 additions and 0 deletions

View 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")
}
}
}