1
0

rocketchip: move from using cde to config

This commit is contained in:
Wesley W. Terpstra 2016-11-18 14:05:14 -08:00
parent 40daea2e15
commit 37a3c22639
86 changed files with 88 additions and 88 deletions

View File

@ -1,7 +1,7 @@
package coreplex package coreplex
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import junctions._ import junctions._
import diplomacy._ import diplomacy._
import uncore.tilelink._ import uncore.tilelink._

View File

@ -15,7 +15,7 @@ import rocket._
import util._ import util._
import util.ConfigUtils._ import util.ConfigUtils._
import rocketchip.{GlobalAddrMap} import rocketchip.{GlobalAddrMap}
import cde.{Parameters, Config, Dump, Knob, CDEMatchError} import config._
class BaseCoreplexConfig extends Config ( class BaseCoreplexConfig extends Config (
{ (pname,site,here) => { (pname,site,here) =>

View File

@ -1,7 +1,7 @@
package coreplex package coreplex
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import junctions._ import junctions._
import diplomacy._ import diplomacy._
import uncore.tilelink._ import uncore.tilelink._

View File

@ -1,7 +1,7 @@
package coreplex package coreplex
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import junctions._ import junctions._
import diplomacy._ import diplomacy._
import uncore.tilelink._ import uncore.tilelink._

View File

@ -1,7 +1,7 @@
package coreplex package coreplex
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import diplomacy._ import diplomacy._
import uncore.tilelink2._ import uncore.tilelink2._
import uncore.coherence._ import uncore.coherence._

View File

@ -7,7 +7,7 @@ import uncore.coherence.{InnerTLId, OuterTLId}
import util._ import util._
import junctions.HasAddrMapParameters import junctions.HasAddrMapParameters
import rocketchip._ import rocketchip._
import cde.Parameters import config._
/** /**
* An example bus mastering devices that writes some preset data to memory. * An example bus mastering devices that writes some preset data to memory.

View File

@ -5,7 +5,7 @@ import uncore.tilelink._
import uncore.constants._ import uncore.constants._
import uncore.agents._ import uncore.agents._
import util._ import util._
import cde.{Parameters, Field} import config._
class CacheFillTest(implicit p: Parameters) extends GroundTest()(p) class CacheFillTest(implicit p: Parameters) extends GroundTest()(p)
with HasTileLinkParameters { with HasTileLinkParameters {

View File

@ -7,7 +7,7 @@ import junctions._
import rocket._ import rocket._
import util.Timer import util.Timer
import scala.util.Random import scala.util.Random
import cde.{Parameters, Field} import config._
case class ComparatorParameters( case class ComparatorParameters(
targets: Seq[Long], targets: Seq[Long],

View File

@ -8,7 +8,7 @@ import uncore.coherence._
import uncore.agents._ import uncore.agents._
import uncore.devices.NTiles import uncore.devices.NTiles
import junctions._ import junctions._
import cde.{Parameters, Config, Dump, Knob, CDEMatchError} import config._
import scala.math.max import scala.math.max
import coreplex._ import coreplex._
import rocketchip._ import rocketchip._

View File

@ -1,7 +1,7 @@
package groundtest package groundtest
import Chisel._ import Chisel._
import cde.Parameters import config._
import diplomacy._ import diplomacy._
import coreplex._ import coreplex._
import uncore.devices.NTiles import uncore.devices.NTiles

View File

@ -8,7 +8,7 @@ import util._
import junctions.HasAddrMapParameters import junctions.HasAddrMapParameters
import rocket._ import rocket._
import rocketchip._ import rocketchip._
import cde.{Parameters, Field} import config._
class RegressionIO(implicit val p: Parameters) extends ParameterizedBundle()(p) { class RegressionIO(implicit val p: Parameters) extends ParameterizedBundle()(p) {
val start = Bool(INPUT) val start = Bool(INPUT)

View File

@ -2,7 +2,7 @@ package groundtest
import Chisel._ import Chisel._
import diplomacy._ import diplomacy._
import cde.Parameters import config._
import rocketchip._ import rocketchip._
import util._ import util._

View File

@ -11,7 +11,7 @@ import scala.util.Random
import scala.collection.mutable.ListBuffer import scala.collection.mutable.ListBuffer
import junctions.HasAddrMapParameters import junctions.HasAddrMapParameters
import util.ParameterizedBundle import util.ParameterizedBundle
import cde.{Parameters, Field} import config._
case object BuildGroundTest extends Field[Parameters => GroundTest] case object BuildGroundTest extends Field[Parameters => GroundTest]

View File

@ -1,7 +1,7 @@
package groundtest package groundtest
import Chisel._ import Chisel._
import cde.Parameters import config._
import diplomacy._ import diplomacy._
import coreplex._ import coreplex._
import rocketchip._ import rocketchip._

View File

@ -24,7 +24,7 @@ import junctions._
import rocket._ import rocket._
import util.{Timer, DynamicTimer} import util.{Timer, DynamicTimer}
import scala.util.Random import scala.util.Random
import cde.{Parameters, Field} import config._
// ======= // =======
// Outline // Outline

View File

@ -8,7 +8,7 @@ import junctions._
import rocket._ import rocket._
import util.SimpleTimer import util.SimpleTimer
import scala.util.Random import scala.util.Random
import cde.{Parameters, Field} import config._
case class TrafficGeneratorParameters( case class TrafficGeneratorParameters(
maxRequests: Int, maxRequests: Int,

View File

@ -1,7 +1,7 @@
package junctions package junctions
import Chisel._ import Chisel._
import cde.Parameters import config._
class NastiDriver(dataWidth: Int, burstLen: Int, nBursts: Int) class NastiDriver(dataWidth: Int, burstLen: Int, nBursts: Int)
(implicit p: Parameters) extends NastiModule { (implicit p: Parameters) extends NastiModule {

View File

@ -3,7 +3,7 @@
package junctions package junctions
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import scala.collection.mutable.HashMap import scala.collection.mutable.HashMap
case object PAddrBits extends Field[Int] case object PAddrBits extends Field[Int]

View File

@ -1,7 +1,7 @@
package junctions package junctions
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import unittest.UnitTest import unittest.UnitTest
import util.ParameterizedBundle import util.ParameterizedBundle

View File

@ -1,6 +1,6 @@
package junctions package junctions
import Chisel._ import Chisel._
import cde.{Parameters} import config._
class JTAGIO(drvTdo: Boolean = false) extends Bundle { class JTAGIO(drvTdo: Boolean = false) extends Bundle {
val TCK = Clock(OUTPUT) val TCK = Clock(OUTPUT)

View File

@ -5,7 +5,7 @@ import Chisel._
import scala.math.max import scala.math.max
import scala.collection.mutable.ArraySeq import scala.collection.mutable.ArraySeq
import util._ import util._
import cde.{Parameters, Field} import config._
case object NastiKey extends Field[NastiParameters] case object NastiKey extends Field[NastiParameters]

View File

@ -1,7 +1,7 @@
package junctions package junctions
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
class PociIO(implicit p: Parameters) extends HastiBundle()(p) class PociIO(implicit p: Parameters) extends HastiBundle()(p)
{ {

View File

@ -2,7 +2,7 @@ package junctions
import Chisel._ import Chisel._
import NastiConstants._ import NastiConstants._
import cde.Parameters import config._
class StreamChannel(w: Int) extends Bundle { class StreamChannel(w: Int) extends Bundle {
val data = UInt(width = w) val data = UInt(width = w)

View File

@ -3,7 +3,7 @@
package rocket package rocket
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import util.{ParameterizedBundle, DecoupledHelper} import util.{ParameterizedBundle, DecoupledHelper}
class HellaCacheArbiter(n: Int)(implicit p: Parameters) extends Module class HellaCacheArbiter(n: Int)(implicit p: Parameters) extends Module

View File

@ -5,7 +5,7 @@ package rocket
import Chisel._ import Chisel._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.Parameters import config._
class BPControl(implicit p: Parameters) extends CoreBundle()(p) { class BPControl(implicit p: Parameters) extends CoreBundle()(p) {
val ttype = UInt(width = 4) val ttype = UInt(width = 4)

View File

@ -3,7 +3,7 @@
package rocket package rocket
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import uncore.agents.PseudoLRU import uncore.agents.PseudoLRU

View File

@ -4,7 +4,7 @@ package rocket
import Chisel._ import Chisel._
import Instructions._ import Instructions._
import cde.{Parameters, Field} import config._
import uncore.devices._ import uncore.devices._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._

View File

@ -12,7 +12,7 @@ import uncore.util._
import util._ import util._
import TLMessages._ import TLMessages._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.{Parameters, Field} import config._
class DCacheDataReq(implicit p: Parameters) extends L1HellaCacheBundle()(p) { class DCacheDataReq(implicit p: Parameters) extends L1HellaCacheBundle()(p) {
val addr = Bits(width = untagBits) val addr = Bits(width = untagBits)

View File

@ -3,7 +3,7 @@
package rocket package rocket
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import Instructions._ import Instructions._
object ALU object ALU

View File

@ -8,7 +8,7 @@ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import FPConstants._ import FPConstants._
import uncore.constants.MemoryOpConstants._ import uncore.constants.MemoryOpConstants._
import cde.{Parameters, Field} import config._
case class FPUConfig( case class FPUConfig(
divSqrt: Boolean = true, divSqrt: Boolean = true,

View File

@ -4,7 +4,7 @@ import Chisel._
import uncore.tilelink._ import uncore.tilelink._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.{Parameters, Field} import config._
class FrontendReq(implicit p: Parameters) extends CoreBundle()(p) { class FrontendReq(implicit p: Parameters) extends CoreBundle()(p) {
val pc = UInt(width = vaddrBitsExtended) val pc = UInt(width = vaddrBitsExtended)

View File

@ -5,7 +5,7 @@ package rocket
import Chisel._ import Chisel._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.{Parameters, Field} import config._
class Instruction(implicit val p: Parameters) extends ParameterizedBundle with HasCoreParameters { class Instruction(implicit val p: Parameters) extends ParameterizedBundle with HasCoreParameters {
val pf0 = Bool() // page fault on first half of instruction val pf0 = Bool() // page fault on first half of instruction

View File

@ -6,7 +6,7 @@ import uncore.tilelink._
import uncore.util._ import uncore.util._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.{Parameters, Field} import config._
trait HasL1CacheParameters extends HasCacheParameters with HasCoreParameters { trait HasL1CacheParameters extends HasCacheParameters with HasCoreParameters {
val outerDataBeats = p(TLKey(p(TLId))).dataBeats val outerDataBeats = p(TLKey(p(TLId))).dataBeats

View File

@ -6,7 +6,7 @@ import Chisel._
import Instructions._ import Instructions._
import uncore.constants.MemoryOpConstants._ import uncore.constants.MemoryOpConstants._
import ALU._ import ALU._
import cde.Parameters import config._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._

View File

@ -11,7 +11,7 @@ import uncore.util._
import diplomacy._ import diplomacy._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.{Parameters, Field} import config._
case class DCacheConfig( case class DCacheConfig(
nMSHRs: Int = 1, nMSHRs: Int = 1,

View File

@ -7,7 +7,7 @@ import uncore.agents._
import uncore.constants._ import uncore.constants._
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.{Parameters, Field} import config._
class PTWReq(implicit p: Parameters) extends CoreBundle()(p) { class PTWReq(implicit p: Parameters) extends CoreBundle()(p) {
val prv = Bits(width = 2) val prv = Bits(width = 2)

View File

@ -8,7 +8,7 @@ import uncore.constants._
import uncore.agents.CacheName import uncore.agents.CacheName
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.{Parameters, Field} import config._
case object RoccMaxTaggedMemXacts extends Field[Int] case object RoccMaxTaggedMemXacts extends Field[Int]
case object RoccNMemChannels extends Field[Int] case object RoccNMemChannels extends Field[Int]

View File

@ -9,7 +9,7 @@ import uncore.constants._
import junctions.HasAddrMapParameters import junctions.HasAddrMapParameters
import util._ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import cde.{Parameters, Field} import config._
case object XLen extends Field[Int] case object XLen extends Field[Int]
case object FetchWidth extends Field[Int] case object FetchWidth extends Field[Int]

View File

@ -3,7 +3,7 @@ package rocket
import Chisel._ import Chisel._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import util._ import util._
import cde.Parameters import config._
class ExpandedInstruction extends Bundle { class ExpandedInstruction extends Bundle {
val bits = UInt(width = 32) val bits = UInt(width = 32)

View File

@ -10,7 +10,7 @@ import uncore.agents._
import uncore.converters._ import uncore.converters._
import uncore.devices._ import uncore.devices._
import util._ import util._
import cde.{Parameters, Field} import config._
import scala.collection.mutable.ListBuffer import scala.collection.mutable.ListBuffer
case object BuildRoCC extends Field[Seq[RoccParameters]] case object BuildRoCC extends Field[Seq[RoccParameters]]

View File

@ -7,7 +7,7 @@ import util._
import Chisel.ImplicitConversions._ import Chisel.ImplicitConversions._
import junctions._ import junctions._
import scala.math._ import scala.math._
import cde.{Parameters, Field} import config._
import uncore.agents._ import uncore.agents._
import uncore.coherence._ import uncore.coherence._

View File

@ -3,7 +3,7 @@
package rocketchip package rocketchip
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import junctions._ import junctions._
import diplomacy._ import diplomacy._
import uncore.tilelink._ import uncore.tilelink._

View File

@ -16,7 +16,7 @@ import scala.math.max
import scala.collection.mutable.{LinkedHashSet, ListBuffer} import scala.collection.mutable.{LinkedHashSet, ListBuffer}
import scala.collection.immutable.HashMap import scala.collection.immutable.HashMap
import DefaultTestSuites._ import DefaultTestSuites._
import cde.{Parameters, Config, Dump, Knob, CDEMatchError} import config._
class BasePlatformConfig extends Config( class BasePlatformConfig extends Config(
(pname,site,here) => pname match { (pname,site,here) => pname match {

View File

@ -4,7 +4,7 @@ import Chisel._
import uncore.devices._ import uncore.devices._
import junctions._ import junctions._
import util._ import util._
import cde.{Parameters, Field} import config._
case object IncludeJtagDTM extends Field[Boolean] case object IncludeJtagDTM extends Field[Boolean]

View File

@ -3,7 +3,7 @@
package rocketchip package rocketchip
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import junctions._ import junctions._
import coreplex._ import coreplex._
import rocketchip._ import rocketchip._

View File

@ -3,7 +3,7 @@
package rocketchip package rocketchip
import Chisel._ import Chisel._
import cde.{Parameters, Field, Dump} import config._
import junctions._ import junctions._
import junctions.NastiConstants._ import junctions.NastiConstants._
import diplomacy._ import diplomacy._

View File

@ -3,7 +3,7 @@
package rocketchip package rocketchip
import Chisel._ import Chisel._
import cde.{Parameters, Field, Dump} import config._
import diplomacy._ import diplomacy._
import uncore.tilelink2._ import uncore.tilelink2._
import uncore.devices._ import uncore.devices._

View File

@ -3,7 +3,7 @@
package rocketchip package rocketchip
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import junctions._ import junctions._
import diplomacy._ import diplomacy._
import coreplex._ import coreplex._

View File

@ -2,7 +2,7 @@
package rocketchip package rocketchip
import cde.{Parameters, Dump} import config._
import junctions._ import junctions._
import diplomacy._ import diplomacy._
import uncore.devices._ import uncore.devices._

View File

@ -1,7 +1,7 @@
package uncore package uncore
import Chisel._ import Chisel._
import cde.{Config, Parameters, ParameterDump, Knob, Dump, CDEMatchError} import config._
import junctions.PAddrBits import junctions.PAddrBits
import uncore.tilelink._ import uncore.tilelink._
import uncore.agents._ import uncore.agents._

View File

@ -3,7 +3,7 @@
package uncore.agents package uncore.agents
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import junctions.PAddrBits import junctions.PAddrBits
import uncore.tilelink._ import uncore.tilelink._
import uncore.converters._ import uncore.converters._

View File

@ -8,7 +8,7 @@ import uncore.tilelink._
import uncore.constants._ import uncore.constants._
import uncore.util._ import uncore.util._
import util._ import util._
import cde.Parameters import config._
class L2BroadcastHub(implicit p: Parameters) extends HierarchicalCoherenceAgent()(p) { class L2BroadcastHub(implicit p: Parameters) extends HierarchicalCoherenceAgent()(p) {

View File

@ -6,7 +6,7 @@ import Chisel._
import uncore.coherence._ import uncore.coherence._
import uncore.tilelink._ import uncore.tilelink._
import uncore.constants._ import uncore.constants._
import cde.Parameters import config._
class BufferlessBroadcastHub(implicit p: Parameters) extends HierarchicalCoherenceAgent()(p) { class BufferlessBroadcastHub(implicit p: Parameters) extends HierarchicalCoherenceAgent()(p) {

View File

@ -12,7 +12,7 @@ import uncore.tilelink._
import uncore.constants._ import uncore.constants._
import uncore.util._ import uncore.util._
import util._ import util._
import cde.{Parameters, Field} import config._
case class CacheConfig( case class CacheConfig(
nSets: Int, nSets: Int,

View File

@ -2,7 +2,7 @@ package uncore.agents
import Chisel._ import Chisel._
import uncore.tilelink._ import uncore.tilelink._
import cde.Parameters import config._
class MMIOTileLinkManagerData(implicit p: Parameters) class MMIOTileLinkManagerData(implicit p: Parameters)
extends TLBundle()(p) extends TLBundle()(p)

View File

@ -7,7 +7,7 @@ import uncore.coherence._
import uncore.tilelink._ import uncore.tilelink._
import uncore.constants._ import uncore.constants._
import uncore.devices._ import uncore.devices._
import cde.{Parameters, Field, Config} import config._
/** The ManagerToClientStateless Bridge does not maintain any state for the messages /** The ManagerToClientStateless Bridge does not maintain any state for the messages
* which pass through it. It simply passes the messages back and forth without any * which pass through it. It simply passes the messages back and forth without any

View File

@ -3,7 +3,7 @@
package uncore.agents package uncore.agents
import Chisel._ import Chisel._
import uncore.tilelink._ import uncore.tilelink._
import cde.{Parameters, Field} import config._
case object L2StoreDataQueueDepth extends Field[Int] case object L2StoreDataQueueDepth extends Field[Int]

View File

@ -7,7 +7,7 @@ import uncore.coherence._
import uncore.tilelink._ import uncore.tilelink._
import uncore.util._ import uncore.util._
import util._ import util._
import cde.{Field, Parameters} import config._
import scala.math.max import scala.math.max
case object EnableL2Logging extends Field[Boolean] case object EnableL2Logging extends Field[Boolean]

View File

@ -5,7 +5,7 @@ package uncore.coherence
import Chisel._ import Chisel._
import uncore.tilelink._ import uncore.tilelink._
import uncore.constants._ import uncore.constants._
import cde.{Parameters, Field} import config._
/** Identifies the TLId of the inner network in a hierarchical cache controller */ /** Identifies the TLId of the inner network in a hierarchical cache controller */
case object InnerTLId extends Field[String] case object InnerTLId extends Field[String]

View File

@ -5,7 +5,7 @@ import junctions._
import uncore.tilelink._ import uncore.tilelink._
import uncore.util._ import uncore.util._
import uncore.constants._ import uncore.constants._
import cde.{Parameters, Field} import config._
import HastiConstants._ import HastiConstants._
/* We need to translate TileLink requests into operations we can actually execute on AHB. /* We need to translate TileLink requests into operations we can actually execute on AHB.

View File

@ -6,7 +6,7 @@ import util.{ReorderQueue, DecoupledHelper}
import junctions.NastiConstants._ import junctions.NastiConstants._
import uncore.tilelink._ import uncore.tilelink._
import uncore.constants._ import uncore.constants._
import cde.Parameters import config._
import scala.math.min import scala.math.min
class IdMapper(val inIdBits: Int, val outIdBits: Int, class IdMapper(val inIdBits: Int, val outIdBits: Int,

View File

@ -8,7 +8,7 @@ import uncore.util._
import uncore.constants._ import uncore.constants._
import uncore.devices.TileLinkTestRAM import uncore.devices.TileLinkTestRAM
import unittest.UnitTest import unittest.UnitTest
import cde.Parameters import config._
/** Utilities for safely wrapping a *UncachedTileLink by pinning probe.ready and release.valid low */ /** Utilities for safely wrapping a *UncachedTileLink by pinning probe.ready and release.valid low */
object TileLinkIOWrapper { object TileLinkIOWrapper {

View File

@ -1,7 +1,7 @@
package uncore.devices package uncore.devices
import Chisel._ import Chisel._
import cde.{Parameters, Field} import config._
import unittest.UnitTest import unittest.UnitTest
import junctions._ import junctions._
import uncore.tilelink._ import uncore.tilelink._

View File

@ -7,7 +7,7 @@ import junctions._
import util._ import util._
import regmapper._ import regmapper._
import uncore.tilelink2._ import uncore.tilelink2._
import cde.{Parameters, Config, Field} import config._
// ***************************************** // *****************************************
// Constants which are interesting even // Constants which are interesting even

View File

@ -9,7 +9,7 @@ import junctions._
import diplomacy._ import diplomacy._
import regmapper._ import regmapper._
import uncore.tilelink2._ import uncore.tilelink2._
import cde.Parameters import config._
import scala.math.min import scala.math.min
class GatewayPLICIO extends Bundle { class GatewayPLICIO extends Bundle {

View File

@ -11,7 +11,7 @@ import uncore.tilelink2._
import uncore.util._ import uncore.util._
import util._ import util._
import scala.math.{min,max} import scala.math.{min,max}
import cde.{Parameters, Field} import config._
/** Number of tiles */ /** Number of tiles */
case object NTiles extends Field[Int] case object NTiles extends Field[Int]

View File

@ -7,7 +7,7 @@ import diplomacy._
import uncore.tilelink._ import uncore.tilelink._
import uncore.tilelink2._ import uncore.tilelink2._
import uncore.util._ import uncore.util._
import cde.{Parameters, Field} import config._
class TLROM(val base: BigInt, val size: Int, contentsDelayed: => Seq[Byte], executable: Boolean = true, beatBytes: Int = 4) extends LazyModule class TLROM(val base: BigInt, val size: Int, contentsDelayed: => Seq[Byte], executable: Boolean = true, beatBytes: Int = 4) extends LazyModule
{ {

View File

@ -1,7 +1,7 @@
package uncore.tilelink package uncore.tilelink
import Chisel._ import Chisel._
import junctions._ import junctions._
import cde.{Parameters, Field} import config._
/** Utility functions for constructing TileLinkIO arbiters */ /** Utility functions for constructing TileLinkIO arbiters */
trait TileLinkArbiterLike extends HasTileLinkParameters { trait TileLinkArbiterLike extends HasTileLinkParameters {

View File

@ -7,7 +7,7 @@ import uncore.coherence.CoherencePolicy
import uncore.constants._ import uncore.constants._
import util._ import util._
import scala.math.max import scala.math.max
import cde.{Parameters, Field} import config._
case object CacheBlockOffsetBits extends Field[Int] case object CacheBlockOffsetBits extends Field[Int]
case object AmoAluOperandBits extends Field[Int] case object AmoAluOperandBits extends Field[Int]

View File

@ -5,7 +5,7 @@ import junctions._
import uncore.constants._ import uncore.constants._
import uncore.util._ import uncore.util._
import util._ import util._
import cde.Parameters import config._
abstract class Driver(implicit p: Parameters) extends TLModule()(p) { abstract class Driver(implicit p: Parameters) extends TLModule()(p) {
val io = new Bundle { val io = new Bundle {

View File

@ -4,7 +4,7 @@ import Chisel._
import junctions._ import junctions._
import scala.collection.mutable.ArraySeq import scala.collection.mutable.ArraySeq
import uncore.util._ import uncore.util._
import cde.{Parameters, Field} import config._
/** PortedTileLinkNetworks combine a TileLink protocol with a particular physical /** PortedTileLinkNetworks combine a TileLink protocol with a particular physical

View File

@ -4,7 +4,7 @@ package uncore.tilelink
import Chisel._ import Chisel._
import uncore.util._ import uncore.util._
import cde.{Parameters, Field} import config._
case object LNEndpoints extends Field[Int] case object LNEndpoints extends Field[Int]
case object LNHeaderBits extends Field[Int] case object LNHeaderBits extends Field[Int]

View File

@ -4,7 +4,7 @@ package uncore.tilelink2
import Chisel._ import Chisel._
import diplomacy._ import diplomacy._
import cde.Parameters import config._
import uncore.tilelink._ import uncore.tilelink._
import uncore.constants._ import uncore.constants._

View File

@ -4,7 +4,7 @@ package uncore.util
import Chisel._ import Chisel._
import uncore.tilelink._ import uncore.tilelink._
import cde.Parameters import config._
import uncore.constants._ import uncore.constants._
class StoreGen(typ: UInt, addr: UInt, dat: UInt, maxSize: Int) { class StoreGen(typ: UInt, addr: UInt, dat: UInt, maxSize: Int) {

View File

@ -3,7 +3,7 @@ package uncore.util
import Chisel._ import Chisel._
import uncore.tilelink._ import uncore.tilelink._
import util.TwoWayCounter import util.TwoWayCounter
import cde.Parameters import config._
class BeatCounterStatus extends Bundle { class BeatCounterStatus extends Bundle {
val idx = UInt() val idx = UInt()

View File

@ -2,7 +2,7 @@ package uncore.util
import Chisel._ import Chisel._
import uncore.tilelink._ import uncore.tilelink._
import cde.Parameters import config._
/** Struct for describing per-channel queue depths */ /** Struct for describing per-channel queue depths */
case class TileLinkDepths(acq: Int, prb: Int, rel: Int, gnt: Int, fin: Int) case class TileLinkDepths(acq: Int, prb: Int, rel: Int, gnt: Int, fin: Int)

View File

@ -3,7 +3,7 @@
package unittest package unittest
import Chisel._ import Chisel._
import cde.{Parameters, Config, CDEMatchError} import config._
import rocketchip.{BaseConfig, BasePlatformConfig} import rocketchip.{BaseConfig, BasePlatformConfig}
class WithJunctionsUnitTests extends Config( class WithJunctionsUnitTests extends Config(

View File

@ -3,7 +3,7 @@
package unittest package unittest
import Chisel._ import Chisel._
import cde._ import config._
class TestHarness(implicit val p: Parameters) extends Module { class TestHarness(implicit val p: Parameters) extends Module {
val io = new Bundle { val success = Bool(OUTPUT) } val io = new Bundle { val success = Bool(OUTPUT) }

View File

@ -1,7 +1,7 @@
package unittest package unittest
import Chisel._ import Chisel._
import cde.{Field, Parameters} import config._
import util.SimpleTimer import util.SimpleTimer
trait HasUnitTestIO { trait HasUnitTestIO {

View File

@ -1,6 +1,6 @@
package util package util
import Chisel._ import Chisel._
import cde.Parameters import config._
/** A generalized locking RR arbiter that addresses the limitations of the /** A generalized locking RR arbiter that addresses the limitations of the
* version in the Chisel standard library */ * version in the Chisel standard library */

View File

@ -2,7 +2,7 @@ package util
import Chisel._ import Chisel._
import cde.{Parameters} import config._
/** This black-boxes an Async Reset /** This black-boxes an Async Reset
* (or Set) * (or Set)

View File

@ -1,7 +1,7 @@
package util package util
import Chisel._ import Chisel._
import cde.Parameters import config._
import scala.math.max import scala.math.max
// Produces 0-width value when counting to 1 // Produces 0-width value when counting to 1

View File

@ -3,7 +3,7 @@
package util package util
import Chisel._ import Chisel._
import cde._ import config._
import diplomacy.LazyModule import diplomacy.LazyModule
import java.io.{File, FileWriter} import java.io.{File, FileWriter}
@ -24,7 +24,7 @@ case class ParsedInputNames(
*/ */
trait HasGeneratorUtilities { trait HasGeneratorUtilities {
def getConfig(names: ParsedInputNames): Config = { def getConfig(names: ParsedInputNames): Config = {
names.fullConfigClasses.foldRight(new Config()) { case (currentName, config) => new Config(names.fullConfigClasses.foldRight(Parameters.empty) { case (currentName, config) =>
val currentConfig = try { val currentConfig = try {
Class.forName(currentName).newInstance.asInstanceOf[Config] Class.forName(currentName).newInstance.asInstanceOf[Config]
} catch { } catch {
@ -32,7 +32,7 @@ trait HasGeneratorUtilities {
throwException(s"""Unable to find part "$currentName" from "${names.configs}", did you misspell it?""", e) throwException(s"""Unable to find part "$currentName" from "${names.configs}", did you misspell it?""", e)
} }
currentConfig ++ config currentConfig ++ config
} })
} }
def getParameters(names: ParsedInputNames): Parameters = getParameters(getConfig(names)) def getParameters(names: ParsedInputNames): Parameters = getParameters(getConfig(names))

View File

@ -1,7 +1,7 @@
package util package util
import Chisel._ import Chisel._
import cde.Parameters import config._
class HellaFlowQueue[T <: Data](val entries: Int)(data: => T) extends Module { class HellaFlowQueue[T <: Data](val entries: Int)(data: => T) extends Module {
val io = new QueueIO(data, entries) val io = new QueueIO(data, entries)

View File

@ -1,7 +1,7 @@
package util package util
import Chisel._ import Chisel._
import cde.Parameters import config._
import scala.math._ import scala.math._
class ParameterizedBundle(implicit p: Parameters) extends Bundle { class ParameterizedBundle(implicit p: Parameters) extends Bundle {

View File

@ -1,7 +1,7 @@
package util package util
import Chisel._ import Chisel._
import cde.Parameters import config._
class ReorderQueueWrite[T <: Data](dType: T, tagWidth: Int) extends Bundle { class ReorderQueueWrite[T <: Data](dType: T, tagWidth: Int) extends Bundle {
val data = dType.cloneType val data = dType.cloneType