Add UInt->BitPat implicit conversion
This will be removed from Chisel3, so we're putting it here to maintain compatibility.
This commit is contained in:
parent
0c50bfcfb3
commit
96fa1eb6ad
@ -8,6 +8,7 @@ import scala.math._
|
||||
import cde.{Parameters, Field}
|
||||
|
||||
object Util {
|
||||
implicit def uintToBitPat(x: UInt): BitPat = BitPat(x)
|
||||
implicit def intToUInt(x: Int): UInt = UInt(x)
|
||||
implicit def booleanToBool(x: Boolean): Bits = Bool(x)
|
||||
implicit def intSeqToUIntSeq(x: Seq[Int]): Seq[UInt] = x.map(UInt(_))
|
||||
|
Loading…
Reference in New Issue
Block a user