Begin integer unit clean-up
...to make it easier to generate the superscalar version of the core.
This commit is contained in:
@ -9,6 +9,7 @@ object Util
|
||||
implicit def intToBoolean(x: Int): Boolean = if (x != 0) true else false
|
||||
implicit def booleanToInt(x: Boolean): Int = if (x) 1 else 0
|
||||
implicit def booleanToBool(x: Boolean): Bits = Bool(x)
|
||||
implicit def intSeqToUIntSeq(x: Iterable[Int]): Iterable[UInt] = x.map(UInt(_))
|
||||
|
||||
implicit def wcToUInt(c: WideCounter): UInt = c.value
|
||||
}
|
||||
|
Reference in New Issue
Block a user