mirror of
https://github.com/SpinalHDL/VexRiscv.git
synced 2025-01-03 03:43:39 -05:00
Enable scala 2.13 compatibility
This commit is contained in:
parent
a340798840
commit
34e5cafb75
4 changed files with 11 additions and 7 deletions
|
@ -13,6 +13,8 @@ import spinal.lib.eda.bench.Report
|
||||||
|
|
||||||
import scala.sys.process._
|
import scala.sys.process._
|
||||||
|
|
||||||
|
import scala.collection.Seq
|
||||||
|
|
||||||
object IcestormFlow {
|
object IcestormFlow {
|
||||||
def doCmd(cmd : Seq[String], path : String): String ={
|
def doCmd(cmd : Seq[String], path : String): String ={
|
||||||
println(cmd)
|
println(cmd)
|
||||||
|
|
|
@ -4,6 +4,7 @@ import vexriscv.plugin._
|
||||||
import spinal.core._
|
import spinal.core._
|
||||||
|
|
||||||
import scala.collection.mutable.ArrayBuffer
|
import scala.collection.mutable.ArrayBuffer
|
||||||
|
import scala.collection.Seq
|
||||||
|
|
||||||
object VexRiscvConfig{
|
object VexRiscvConfig{
|
||||||
def apply(withMemoryStage : Boolean, withWriteBackStage : Boolean, plugins : Seq[Plugin[VexRiscv]]): VexRiscvConfig = {
|
def apply(withMemoryStage : Boolean, withWriteBackStage : Boolean, plugins : Seq[Plugin[VexRiscv]]): VexRiscvConfig = {
|
||||||
|
@ -135,10 +136,10 @@ class VexRiscv(val config : VexRiscvConfig) extends Component with Pipeline{
|
||||||
plugins ++= config.plugins
|
plugins ++= config.plugins
|
||||||
|
|
||||||
//regression usage
|
//regression usage
|
||||||
val lastStageInstruction = CombInit(stages.last.input(config.INSTRUCTION)) keep() addAttribute (Verilator.public)
|
val lastStageInstruction = CombInit(stages.last.input(config.INSTRUCTION)).keep().addAttribute (Verilator.public)
|
||||||
val lastStagePc = CombInit(stages.last.input(config.PC)) keep() addAttribute (Verilator.public)
|
val lastStagePc = CombInit(stages.last.input(config.PC)).keep().addAttribute(Verilator.public)
|
||||||
val lastStageIsValid = CombInit(stages.last.arbitration.isValid) keep() addAttribute (Verilator.public)
|
val lastStageIsValid = CombInit(stages.last.arbitration.isValid).keep().addAttribute(Verilator.public)
|
||||||
val lastStageIsFiring = CombInit(stages.last.arbitration.isFiring) keep() addAttribute (Verilator.public)
|
val lastStageIsFiring = CombInit(stages.last.arbitration.isFiring).keep().addAttribute(Verilator.public)
|
||||||
|
|
||||||
//Verilator perf
|
//Verilator perf
|
||||||
decode.arbitration.removeIt.noBackendCombMerge
|
decode.arbitration.removeIt.noBackendCombMerge
|
||||||
|
|
|
@ -24,7 +24,7 @@ import spinal.lib.soc.pinsec.{PinsecTimerCtrl, PinsecTimerCtrlExternal}
|
||||||
import spinal.lib.system.debugger.{JtagAxi4SharedDebugger, JtagBridge, SystemDebugger, SystemDebuggerConfig}
|
import spinal.lib.system.debugger.{JtagAxi4SharedDebugger, JtagBridge, SystemDebugger, SystemDebuggerConfig}
|
||||||
|
|
||||||
import scala.collection.mutable.ArrayBuffer
|
import scala.collection.mutable.ArrayBuffer
|
||||||
|
import scala.collection.Seq
|
||||||
|
|
||||||
case class BrieyConfig(axiFrequency : HertzNumber,
|
case class BrieyConfig(axiFrequency : HertzNumber,
|
||||||
onChipRamSize : BigInt,
|
onChipRamSize : BigInt,
|
||||||
|
|
|
@ -16,6 +16,7 @@ import vexriscv.{VexRiscv, VexRiscvConfig, plugin}
|
||||||
import spinal.lib.com.spi.ddr._
|
import spinal.lib.com.spi.ddr._
|
||||||
import spinal.lib.bus.simple._
|
import spinal.lib.bus.simple._
|
||||||
import scala.collection.mutable.ArrayBuffer
|
import scala.collection.mutable.ArrayBuffer
|
||||||
|
import scala.collection.Seq
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by PIC32F_USER on 28/07/2017.
|
* Created by PIC32F_USER on 28/07/2017.
|
||||||
|
@ -313,13 +314,13 @@ case class Murax(config : MuraxConfig) extends Component{
|
||||||
//******** Memory mappings *********
|
//******** Memory mappings *********
|
||||||
val apbDecoder = Apb3Decoder(
|
val apbDecoder = Apb3Decoder(
|
||||||
master = apbBridge.io.apb,
|
master = apbBridge.io.apb,
|
||||||
slaves = apbMapping
|
slaves = apbMapping.toSeq
|
||||||
)
|
)
|
||||||
|
|
||||||
val mainBusDecoder = new Area {
|
val mainBusDecoder = new Area {
|
||||||
val logic = new MuraxPipelinedMemoryBusDecoder(
|
val logic = new MuraxPipelinedMemoryBusDecoder(
|
||||||
master = mainBusArbiter.io.masterBus,
|
master = mainBusArbiter.io.masterBus,
|
||||||
specification = mainBusMapping,
|
specification = mainBusMapping.toSeq,
|
||||||
pipelineMaster = pipelineMainBus
|
pipelineMaster = pipelineMainBus
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue