1
0

merge uncore.Util into uncore.util

This commit is contained in:
Howard Mao 2016-08-18 18:33:46 -07:00
parent 0a6c05a5d8
commit 7671811ac9
9 changed files with 9 additions and 9 deletions

View File

@ -4,7 +4,7 @@ import Chisel._
import uncore.tilelink._ import uncore.tilelink._
import uncore.agents._ import uncore.agents._
import uncore.coherence.{InnerTLId, OuterTLId} import uncore.coherence.{InnerTLId, OuterTLId}
import uncore.Util._ import uncore.util._
import junctions.HasAddrMapParameters import junctions.HasAddrMapParameters
import cde.Parameters import cde.Parameters

View File

@ -8,7 +8,7 @@ import junctions._
import uncore.tilelink._ import uncore.tilelink._
import uncore.converters._ import uncore.converters._
import uncore.coherence._ import uncore.coherence._
import uncore.Util._ import uncore.util._
case object NReleaseTransactors extends Field[Int] case object NReleaseTransactors extends Field[Int]
case object NProbeTransactors extends Field[Int] case object NProbeTransactors extends Field[Int]

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 uncore.Util._ import uncore.util._
import cde.Parameters import cde.Parameters
class L2BroadcastHub(implicit p: Parameters) extends HierarchicalCoherenceAgent()(p) { class L2BroadcastHub(implicit p: Parameters) extends HierarchicalCoherenceAgent()(p) {

View File

@ -9,7 +9,7 @@ import uncore.util.AMOALU
import uncore.coherence._ import uncore.coherence._
import uncore.tilelink._ import uncore.tilelink._
import uncore.constants._ import uncore.constants._
import uncore.Util._ import uncore.util._
import cde.{Parameters, Field} import cde.{Parameters, Field}
case object CacheName extends Field[String] case object CacheName extends Field[String]

View File

@ -3,7 +3,7 @@
package uncore.agents package uncore.agents
import Chisel._ import Chisel._
import uncore.Util._ import uncore.util._
abstract class Decoding abstract class Decoding
{ {

View File

@ -6,7 +6,7 @@ import Chisel._
import uncore.coherence._ import uncore.coherence._
import uncore.tilelink._ import uncore.tilelink._
import uncore.util._ import uncore.util._
import uncore.Util._ import uncore.util._
import junctions._ import junctions._
import cde.{Field, Parameters} import cde.{Field, Parameters}
import scala.math.max import scala.math.max

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 uncore.Util._ import uncore.util._
/** The entire CoherencePolicy API consists of the following three traits: /** The entire CoherencePolicy API consists of the following three traits:
* HasCustomTileLinkMessageTypes, used to define custom messages * HasCustomTileLinkMessageTypes, used to define custom messages

View File

@ -4,7 +4,7 @@ package uncore.tilelink
import Chisel._ import Chisel._
import junctions._ import junctions._
import uncore.coherence.CoherencePolicy import uncore.coherence.CoherencePolicy
import uncore.Util._ import uncore.util._
import scala.math.max import scala.math.max
import uncore.constants._ import uncore.constants._
import cde.{Parameters, Field} import cde.{Parameters, Field}

View File

@ -2,7 +2,7 @@ package uncore
import Chisel._ import Chisel._
package object Util { package object util {
implicit class UIntIsOneOf(val x: UInt) extends AnyVal { implicit class UIntIsOneOf(val x: UInt) extends AnyVal {
def isOneOf(s: Seq[UInt]): Bool = s.map(x === _).reduce(_||_) def isOneOf(s: Seq[UInt]): Bool = s.map(x === _).reduce(_||_)