mirror of
https://github.com/SpinalHDL/VexRiscv.git
synced 2025-04-24 05:57:07 -04:00
Add DummyFencePlugin
This commit is contained in:
parent
0bc3a1a314
commit
4729e46763
1 changed files with 22 additions and 0 deletions
22
src/main/scala/vexriscv/plugin/DummyFencePlugin.scala
Normal file
22
src/main/scala/vexriscv/plugin/DummyFencePlugin.scala
Normal file
|
@ -0,0 +1,22 @@
|
|||
package vexriscv.plugin
|
||||
|
||||
import spinal.core._
|
||||
import vexriscv.{VexRiscv, _}
|
||||
|
||||
class DummyFencePlugin extends Plugin[VexRiscv]{
|
||||
|
||||
override def setup(pipeline: VexRiscv): Unit = {
|
||||
import Riscv._
|
||||
import pipeline.config._
|
||||
|
||||
val decoderService = pipeline.service(classOf[DecoderService])
|
||||
decoderService.add(FENCE_I, Nil)
|
||||
decoderService.add(FENCE, Nil)
|
||||
}
|
||||
|
||||
override def build(pipeline: VexRiscv): Unit = {
|
||||
import pipeline._
|
||||
import pipeline.config._
|
||||
//Dummy
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue