From 791608f6555a92f07632364fc2f100a97e1c447a Mon Sep 17 00:00:00 2001 From: Dolu1990 Date: Wed, 29 Aug 2018 14:55:25 +0200 Subject: [PATCH] Move swing stuff into main test package --- src/main/scala/vexriscv/plugin/BranchPlugin.scala | 2 +- .../scala/vexriscv => main/scala/vexriscv/test}/Swing.scala | 4 ++-- src/test/scala/vexriscv/MuraxSim.scala | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) rename src/{test/scala/vexriscv => main/scala/vexriscv/test}/Swing.scala (98%) diff --git a/src/main/scala/vexriscv/plugin/BranchPlugin.scala b/src/main/scala/vexriscv/plugin/BranchPlugin.scala index 2c38653..cffc530 100644 --- a/src/main/scala/vexriscv/plugin/BranchPlugin.scala +++ b/src/main/scala/vexriscv/plugin/BranchPlugin.scala @@ -218,7 +218,7 @@ class BranchPlugin(earlyBranch : Boolean, ) ) - insert(BRANCH_DO) := input(PREDICTION_HAD_BRANCHED) =/= insert(BRANCH_COND_RESULT) + insert(BRANCH_DO) := input(PREDICTION_HAD_BRANCHED) =/= input(BRANCH_COND_RESULT) //Calculation of the branch target / correction val imm = IMM(input(INSTRUCTION)) diff --git a/src/test/scala/vexriscv/Swing.scala b/src/main/scala/vexriscv/test/Swing.scala similarity index 98% rename from src/test/scala/vexriscv/Swing.scala rename to src/main/scala/vexriscv/test/Swing.scala index 261a79c..b3a1637 100644 --- a/src/test/scala/vexriscv/Swing.scala +++ b/src/main/scala/vexriscv/test/Swing.scala @@ -1,7 +1,7 @@ -package vexriscv +package vexriscv.test -import java.awt.{Color, Dimension, Graphics} import java.awt.event.{MouseEvent, MouseListener} +import java.awt.{Color, Dimension, Graphics} import javax.swing.JPanel abstract class JLedArray(ledCount : Int,ledDiameter : Int = 20, blackThickness : Int = 2) extends JPanel{ diff --git a/src/test/scala/vexriscv/MuraxSim.scala b/src/test/scala/vexriscv/MuraxSim.scala index bc80030..7d2c920 100644 --- a/src/test/scala/vexriscv/MuraxSim.scala +++ b/src/test/scala/vexriscv/MuraxSim.scala @@ -11,6 +11,7 @@ import javax.swing._ import spinal.lib.com.jtag.sim.JtagTcp import spinal.lib.com.uart.sim.{UartDecoder, UartEncoder} +import vexriscv.test.{JLedArray, JSwitchArray} import scala.collection.mutable