From 4729e467631006b6d495ccc32483a906c6aa0a73 Mon Sep 17 00:00:00 2001 From: Dolu1990 Date: Sat, 3 Feb 2018 12:28:53 +0100 Subject: [PATCH] Add DummyFencePlugin --- .../vexriscv/plugin/DummyFencePlugin.scala | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/main/scala/vexriscv/plugin/DummyFencePlugin.scala diff --git a/src/main/scala/vexriscv/plugin/DummyFencePlugin.scala b/src/main/scala/vexriscv/plugin/DummyFencePlugin.scala new file mode 100644 index 0000000..7efbaac --- /dev/null +++ b/src/main/scala/vexriscv/plugin/DummyFencePlugin.scala @@ -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 + } +}