rocketchip: move from using cde to config
This commit is contained in:
parent
40daea2e15
commit
37a3c22639
@ -1,7 +1,7 @@
|
||||
package coreplex
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import junctions._
|
||||
import diplomacy._
|
||||
import uncore.tilelink._
|
||||
|
@ -15,7 +15,7 @@ import rocket._
|
||||
import util._
|
||||
import util.ConfigUtils._
|
||||
import rocketchip.{GlobalAddrMap}
|
||||
import cde.{Parameters, Config, Dump, Knob, CDEMatchError}
|
||||
import config._
|
||||
|
||||
class BaseCoreplexConfig extends Config (
|
||||
{ (pname,site,here) =>
|
||||
|
@ -1,7 +1,7 @@
|
||||
package coreplex
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import junctions._
|
||||
import diplomacy._
|
||||
import uncore.tilelink._
|
||||
|
@ -1,7 +1,7 @@
|
||||
package coreplex
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import junctions._
|
||||
import diplomacy._
|
||||
import uncore.tilelink._
|
||||
|
@ -1,7 +1,7 @@
|
||||
package coreplex
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import diplomacy._
|
||||
import uncore.tilelink2._
|
||||
import uncore.coherence._
|
||||
|
@ -7,7 +7,7 @@ import uncore.coherence.{InnerTLId, OuterTLId}
|
||||
import util._
|
||||
import junctions.HasAddrMapParameters
|
||||
import rocketchip._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
/**
|
||||
* An example bus mastering devices that writes some preset data to memory.
|
||||
|
@ -5,7 +5,7 @@ import uncore.tilelink._
|
||||
import uncore.constants._
|
||||
import uncore.agents._
|
||||
import util._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
class CacheFillTest(implicit p: Parameters) extends GroundTest()(p)
|
||||
with HasTileLinkParameters {
|
||||
|
@ -7,7 +7,7 @@ import junctions._
|
||||
import rocket._
|
||||
import util.Timer
|
||||
import scala.util.Random
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case class ComparatorParameters(
|
||||
targets: Seq[Long],
|
||||
|
@ -8,7 +8,7 @@ import uncore.coherence._
|
||||
import uncore.agents._
|
||||
import uncore.devices.NTiles
|
||||
import junctions._
|
||||
import cde.{Parameters, Config, Dump, Knob, CDEMatchError}
|
||||
import config._
|
||||
import scala.math.max
|
||||
import coreplex._
|
||||
import rocketchip._
|
||||
|
@ -1,7 +1,7 @@
|
||||
package groundtest
|
||||
|
||||
import Chisel._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import diplomacy._
|
||||
import coreplex._
|
||||
import uncore.devices.NTiles
|
||||
|
@ -8,7 +8,7 @@ import util._
|
||||
import junctions.HasAddrMapParameters
|
||||
import rocket._
|
||||
import rocketchip._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
class RegressionIO(implicit val p: Parameters) extends ParameterizedBundle()(p) {
|
||||
val start = Bool(INPUT)
|
||||
|
@ -2,7 +2,7 @@ package groundtest
|
||||
|
||||
import Chisel._
|
||||
import diplomacy._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import rocketchip._
|
||||
import util._
|
||||
|
||||
|
@ -11,7 +11,7 @@ import scala.util.Random
|
||||
import scala.collection.mutable.ListBuffer
|
||||
import junctions.HasAddrMapParameters
|
||||
import util.ParameterizedBundle
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case object BuildGroundTest extends Field[Parameters => GroundTest]
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package groundtest
|
||||
|
||||
import Chisel._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import diplomacy._
|
||||
import coreplex._
|
||||
import rocketchip._
|
||||
|
@ -24,7 +24,7 @@ import junctions._
|
||||
import rocket._
|
||||
import util.{Timer, DynamicTimer}
|
||||
import scala.util.Random
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
// =======
|
||||
// Outline
|
||||
|
@ -8,7 +8,7 @@ import junctions._
|
||||
import rocket._
|
||||
import util.SimpleTimer
|
||||
import scala.util.Random
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case class TrafficGeneratorParameters(
|
||||
maxRequests: Int,
|
||||
|
@ -1,7 +1,7 @@
|
||||
package junctions
|
||||
|
||||
import Chisel._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class NastiDriver(dataWidth: Int, burstLen: Int, nBursts: Int)
|
||||
(implicit p: Parameters) extends NastiModule {
|
||||
|
@ -3,7 +3,7 @@
|
||||
package junctions
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import scala.collection.mutable.HashMap
|
||||
|
||||
case object PAddrBits extends Field[Int]
|
||||
|
@ -1,7 +1,7 @@
|
||||
package junctions
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import unittest.UnitTest
|
||||
import util.ParameterizedBundle
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package junctions
|
||||
import Chisel._
|
||||
import cde.{Parameters}
|
||||
import config._
|
||||
|
||||
class JTAGIO(drvTdo: Boolean = false) extends Bundle {
|
||||
val TCK = Clock(OUTPUT)
|
||||
|
@ -5,7 +5,7 @@ import Chisel._
|
||||
import scala.math.max
|
||||
import scala.collection.mutable.ArraySeq
|
||||
import util._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case object NastiKey extends Field[NastiParameters]
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package junctions
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
class PociIO(implicit p: Parameters) extends HastiBundle()(p)
|
||||
{
|
||||
|
@ -2,7 +2,7 @@ package junctions
|
||||
|
||||
import Chisel._
|
||||
import NastiConstants._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class StreamChannel(w: Int) extends Bundle {
|
||||
val data = UInt(width = w)
|
||||
|
@ -3,7 +3,7 @@
|
||||
package rocket
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import util.{ParameterizedBundle, DecoupledHelper}
|
||||
|
||||
class HellaCacheArbiter(n: Int)(implicit p: Parameters) extends Module
|
||||
|
@ -5,7 +5,7 @@ package rocket
|
||||
import Chisel._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class BPControl(implicit p: Parameters) extends CoreBundle()(p) {
|
||||
val ttype = UInt(width = 4)
|
||||
|
@ -3,7 +3,7 @@
|
||||
package rocket
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import uncore.agents.PseudoLRU
|
||||
|
@ -4,7 +4,7 @@ package rocket
|
||||
|
||||
import Chisel._
|
||||
import Instructions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import uncore.devices._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
|
@ -12,7 +12,7 @@ import uncore.util._
|
||||
import util._
|
||||
import TLMessages._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
class DCacheDataReq(implicit p: Parameters) extends L1HellaCacheBundle()(p) {
|
||||
val addr = Bits(width = untagBits)
|
||||
|
@ -3,7 +3,7 @@
|
||||
package rocket
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import Instructions._
|
||||
|
||||
object ALU
|
||||
|
@ -8,7 +8,7 @@ import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import FPConstants._
|
||||
import uncore.constants.MemoryOpConstants._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case class FPUConfig(
|
||||
divSqrt: Boolean = true,
|
||||
|
@ -4,7 +4,7 @@ import Chisel._
|
||||
import uncore.tilelink._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
class FrontendReq(implicit p: Parameters) extends CoreBundle()(p) {
|
||||
val pc = UInt(width = vaddrBitsExtended)
|
||||
|
@ -5,7 +5,7 @@ package rocket
|
||||
import Chisel._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
class Instruction(implicit val p: Parameters) extends ParameterizedBundle with HasCoreParameters {
|
||||
val pf0 = Bool() // page fault on first half of instruction
|
||||
|
@ -6,7 +6,7 @@ import uncore.tilelink._
|
||||
import uncore.util._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
trait HasL1CacheParameters extends HasCacheParameters with HasCoreParameters {
|
||||
val outerDataBeats = p(TLKey(p(TLId))).dataBeats
|
||||
|
@ -6,7 +6,7 @@ import Chisel._
|
||||
import Instructions._
|
||||
import uncore.constants.MemoryOpConstants._
|
||||
import ALU._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
|
||||
|
@ -11,7 +11,7 @@ import uncore.util._
|
||||
import diplomacy._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case class DCacheConfig(
|
||||
nMSHRs: Int = 1,
|
||||
|
@ -7,7 +7,7 @@ import uncore.agents._
|
||||
import uncore.constants._
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
class PTWReq(implicit p: Parameters) extends CoreBundle()(p) {
|
||||
val prv = Bits(width = 2)
|
||||
|
@ -8,7 +8,7 @@ import uncore.constants._
|
||||
import uncore.agents.CacheName
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case object RoccMaxTaggedMemXacts extends Field[Int]
|
||||
case object RoccNMemChannels extends Field[Int]
|
||||
|
@ -9,7 +9,7 @@ import uncore.constants._
|
||||
import junctions.HasAddrMapParameters
|
||||
import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case object XLen extends Field[Int]
|
||||
case object FetchWidth extends Field[Int]
|
||||
|
@ -3,7 +3,7 @@ package rocket
|
||||
import Chisel._
|
||||
import Chisel.ImplicitConversions._
|
||||
import util._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class ExpandedInstruction extends Bundle {
|
||||
val bits = UInt(width = 32)
|
||||
|
@ -10,7 +10,7 @@ import uncore.agents._
|
||||
import uncore.converters._
|
||||
import uncore.devices._
|
||||
import util._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import scala.collection.mutable.ListBuffer
|
||||
|
||||
case object BuildRoCC extends Field[Seq[RoccParameters]]
|
||||
|
@ -7,7 +7,7 @@ import util._
|
||||
import Chisel.ImplicitConversions._
|
||||
import junctions._
|
||||
import scala.math._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import uncore.agents._
|
||||
import uncore.coherence._
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
package rocketchip
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import junctions._
|
||||
import diplomacy._
|
||||
import uncore.tilelink._
|
||||
|
@ -16,7 +16,7 @@ import scala.math.max
|
||||
import scala.collection.mutable.{LinkedHashSet, ListBuffer}
|
||||
import scala.collection.immutable.HashMap
|
||||
import DefaultTestSuites._
|
||||
import cde.{Parameters, Config, Dump, Knob, CDEMatchError}
|
||||
import config._
|
||||
|
||||
class BasePlatformConfig extends Config(
|
||||
(pname,site,here) => pname match {
|
||||
|
@ -4,7 +4,7 @@ import Chisel._
|
||||
import uncore.devices._
|
||||
import junctions._
|
||||
import util._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case object IncludeJtagDTM extends Field[Boolean]
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
package rocketchip
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import junctions._
|
||||
import coreplex._
|
||||
import rocketchip._
|
||||
|
@ -3,7 +3,7 @@
|
||||
package rocketchip
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field, Dump}
|
||||
import config._
|
||||
import junctions._
|
||||
import junctions.NastiConstants._
|
||||
import diplomacy._
|
||||
|
@ -3,7 +3,7 @@
|
||||
package rocketchip
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field, Dump}
|
||||
import config._
|
||||
import diplomacy._
|
||||
import uncore.tilelink2._
|
||||
import uncore.devices._
|
||||
|
@ -3,7 +3,7 @@
|
||||
package rocketchip
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import junctions._
|
||||
import diplomacy._
|
||||
import coreplex._
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
package rocketchip
|
||||
|
||||
import cde.{Parameters, Dump}
|
||||
import config._
|
||||
import junctions._
|
||||
import diplomacy._
|
||||
import uncore.devices._
|
||||
|
@ -1,7 +1,7 @@
|
||||
package uncore
|
||||
|
||||
import Chisel._
|
||||
import cde.{Config, Parameters, ParameterDump, Knob, Dump, CDEMatchError}
|
||||
import config._
|
||||
import junctions.PAddrBits
|
||||
import uncore.tilelink._
|
||||
import uncore.agents._
|
||||
|
@ -3,7 +3,7 @@
|
||||
package uncore.agents
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import junctions.PAddrBits
|
||||
import uncore.tilelink._
|
||||
import uncore.converters._
|
||||
|
@ -8,7 +8,7 @@ import uncore.tilelink._
|
||||
import uncore.constants._
|
||||
import uncore.util._
|
||||
import util._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class L2BroadcastHub(implicit p: Parameters) extends HierarchicalCoherenceAgent()(p) {
|
||||
|
||||
|
@ -6,7 +6,7 @@ import Chisel._
|
||||
import uncore.coherence._
|
||||
import uncore.tilelink._
|
||||
import uncore.constants._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
|
||||
class BufferlessBroadcastHub(implicit p: Parameters) extends HierarchicalCoherenceAgent()(p) {
|
||||
|
@ -12,7 +12,7 @@ import uncore.tilelink._
|
||||
import uncore.constants._
|
||||
import uncore.util._
|
||||
import util._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case class CacheConfig(
|
||||
nSets: Int,
|
||||
|
@ -2,7 +2,7 @@ package uncore.agents
|
||||
|
||||
import Chisel._
|
||||
import uncore.tilelink._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class MMIOTileLinkManagerData(implicit p: Parameters)
|
||||
extends TLBundle()(p)
|
||||
|
@ -7,7 +7,7 @@ import uncore.coherence._
|
||||
import uncore.tilelink._
|
||||
import uncore.constants._
|
||||
import uncore.devices._
|
||||
import cde.{Parameters, Field, Config}
|
||||
import config._
|
||||
|
||||
/** 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
|
||||
|
@ -3,7 +3,7 @@
|
||||
package uncore.agents
|
||||
import Chisel._
|
||||
import uncore.tilelink._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case object L2StoreDataQueueDepth extends Field[Int]
|
||||
|
||||
|
@ -7,7 +7,7 @@ import uncore.coherence._
|
||||
import uncore.tilelink._
|
||||
import uncore.util._
|
||||
import util._
|
||||
import cde.{Field, Parameters}
|
||||
import config._
|
||||
import scala.math.max
|
||||
|
||||
case object EnableL2Logging extends Field[Boolean]
|
||||
|
@ -5,7 +5,7 @@ package uncore.coherence
|
||||
import Chisel._
|
||||
import uncore.tilelink._
|
||||
import uncore.constants._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
/** Identifies the TLId of the inner network in a hierarchical cache controller */
|
||||
case object InnerTLId extends Field[String]
|
||||
|
@ -5,7 +5,7 @@ import junctions._
|
||||
import uncore.tilelink._
|
||||
import uncore.util._
|
||||
import uncore.constants._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import HastiConstants._
|
||||
|
||||
/* We need to translate TileLink requests into operations we can actually execute on AHB.
|
||||
|
@ -6,7 +6,7 @@ import util.{ReorderQueue, DecoupledHelper}
|
||||
import junctions.NastiConstants._
|
||||
import uncore.tilelink._
|
||||
import uncore.constants._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import scala.math.min
|
||||
|
||||
class IdMapper(val inIdBits: Int, val outIdBits: Int,
|
||||
|
@ -8,7 +8,7 @@ import uncore.util._
|
||||
import uncore.constants._
|
||||
import uncore.devices.TileLinkTestRAM
|
||||
import unittest.UnitTest
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
/** Utilities for safely wrapping a *UncachedTileLink by pinning probe.ready and release.valid low */
|
||||
object TileLinkIOWrapper {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package uncore.devices
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
import unittest.UnitTest
|
||||
import junctions._
|
||||
import uncore.tilelink._
|
||||
|
@ -7,7 +7,7 @@ import junctions._
|
||||
import util._
|
||||
import regmapper._
|
||||
import uncore.tilelink2._
|
||||
import cde.{Parameters, Config, Field}
|
||||
import config._
|
||||
|
||||
// *****************************************
|
||||
// Constants which are interesting even
|
||||
|
@ -9,7 +9,7 @@ import junctions._
|
||||
import diplomacy._
|
||||
import regmapper._
|
||||
import uncore.tilelink2._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import scala.math.min
|
||||
|
||||
class GatewayPLICIO extends Bundle {
|
||||
|
@ -11,7 +11,7 @@ import uncore.tilelink2._
|
||||
import uncore.util._
|
||||
import util._
|
||||
import scala.math.{min,max}
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
/** Number of tiles */
|
||||
case object NTiles extends Field[Int]
|
||||
|
@ -7,7 +7,7 @@ import diplomacy._
|
||||
import uncore.tilelink._
|
||||
import uncore.tilelink2._
|
||||
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
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
package uncore.tilelink
|
||||
import Chisel._
|
||||
import junctions._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
/** Utility functions for constructing TileLinkIO arbiters */
|
||||
trait TileLinkArbiterLike extends HasTileLinkParameters {
|
||||
|
@ -7,7 +7,7 @@ import uncore.coherence.CoherencePolicy
|
||||
import uncore.constants._
|
||||
import util._
|
||||
import scala.math.max
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case object CacheBlockOffsetBits extends Field[Int]
|
||||
case object AmoAluOperandBits extends Field[Int]
|
||||
|
@ -5,7 +5,7 @@ import junctions._
|
||||
import uncore.constants._
|
||||
import uncore.util._
|
||||
import util._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
abstract class Driver(implicit p: Parameters) extends TLModule()(p) {
|
||||
val io = new Bundle {
|
||||
|
@ -4,7 +4,7 @@ import Chisel._
|
||||
import junctions._
|
||||
import scala.collection.mutable.ArraySeq
|
||||
import uncore.util._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
|
||||
/** PortedTileLinkNetworks combine a TileLink protocol with a particular physical
|
||||
|
@ -4,7 +4,7 @@ package uncore.tilelink
|
||||
|
||||
import Chisel._
|
||||
import uncore.util._
|
||||
import cde.{Parameters, Field}
|
||||
import config._
|
||||
|
||||
case object LNEndpoints extends Field[Int]
|
||||
case object LNHeaderBits extends Field[Int]
|
||||
|
@ -4,7 +4,7 @@ package uncore.tilelink2
|
||||
|
||||
import Chisel._
|
||||
import diplomacy._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import uncore.tilelink._
|
||||
import uncore.constants._
|
||||
|
||||
|
@ -4,7 +4,7 @@ package uncore.util
|
||||
|
||||
import Chisel._
|
||||
import uncore.tilelink._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import uncore.constants._
|
||||
|
||||
class StoreGen(typ: UInt, addr: UInt, dat: UInt, maxSize: Int) {
|
||||
|
@ -3,7 +3,7 @@ package uncore.util
|
||||
import Chisel._
|
||||
import uncore.tilelink._
|
||||
import util.TwoWayCounter
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class BeatCounterStatus extends Bundle {
|
||||
val idx = UInt()
|
||||
|
@ -2,7 +2,7 @@ package uncore.util
|
||||
|
||||
import Chisel._
|
||||
import uncore.tilelink._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
/** Struct for describing per-channel queue depths */
|
||||
case class TileLinkDepths(acq: Int, prb: Int, rel: Int, gnt: Int, fin: Int)
|
||||
|
@ -3,7 +3,7 @@
|
||||
package unittest
|
||||
|
||||
import Chisel._
|
||||
import cde.{Parameters, Config, CDEMatchError}
|
||||
import config._
|
||||
import rocketchip.{BaseConfig, BasePlatformConfig}
|
||||
|
||||
class WithJunctionsUnitTests extends Config(
|
||||
|
@ -3,7 +3,7 @@
|
||||
package unittest
|
||||
|
||||
import Chisel._
|
||||
import cde._
|
||||
import config._
|
||||
|
||||
class TestHarness(implicit val p: Parameters) extends Module {
|
||||
val io = new Bundle { val success = Bool(OUTPUT) }
|
||||
|
@ -1,7 +1,7 @@
|
||||
package unittest
|
||||
|
||||
import Chisel._
|
||||
import cde.{Field, Parameters}
|
||||
import config._
|
||||
import util.SimpleTimer
|
||||
|
||||
trait HasUnitTestIO {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package util
|
||||
import Chisel._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
/** A generalized locking RR arbiter that addresses the limitations of the
|
||||
* version in the Chisel standard library */
|
||||
|
@ -2,7 +2,7 @@ package util
|
||||
|
||||
import Chisel._
|
||||
|
||||
import cde.{Parameters}
|
||||
import config._
|
||||
|
||||
/** This black-boxes an Async Reset
|
||||
* (or Set)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package util
|
||||
|
||||
import Chisel._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import scala.math.max
|
||||
|
||||
// Produces 0-width value when counting to 1
|
||||
|
@ -3,7 +3,7 @@
|
||||
package util
|
||||
|
||||
import Chisel._
|
||||
import cde._
|
||||
import config._
|
||||
import diplomacy.LazyModule
|
||||
import java.io.{File, FileWriter}
|
||||
|
||||
@ -24,7 +24,7 @@ case class ParsedInputNames(
|
||||
*/
|
||||
trait HasGeneratorUtilities {
|
||||
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 {
|
||||
Class.forName(currentName).newInstance.asInstanceOf[Config]
|
||||
} catch {
|
||||
@ -32,7 +32,7 @@ trait HasGeneratorUtilities {
|
||||
throwException(s"""Unable to find part "$currentName" from "${names.configs}", did you misspell it?""", e)
|
||||
}
|
||||
currentConfig ++ config
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
def getParameters(names: ParsedInputNames): Parameters = getParameters(getConfig(names))
|
||||
|
@ -1,7 +1,7 @@
|
||||
package util
|
||||
|
||||
import Chisel._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class HellaFlowQueue[T <: Data](val entries: Int)(data: => T) extends Module {
|
||||
val io = new QueueIO(data, entries)
|
||||
|
@ -1,7 +1,7 @@
|
||||
package util
|
||||
|
||||
import Chisel._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
import scala.math._
|
||||
|
||||
class ParameterizedBundle(implicit p: Parameters) extends Bundle {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package util
|
||||
|
||||
import Chisel._
|
||||
import cde.Parameters
|
||||
import config._
|
||||
|
||||
class ReorderQueueWrite[T <: Data](dType: T, tagWidth: Int) extends Bundle {
|
||||
val data = dType.cloneType
|
||||
|
Loading…
Reference in New Issue
Block a user