blob: c2ba710d555eb587cdd5e7ae4c42cc3a1b3f81c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// See LICENSE for license details.
package chisel3.util
import chisel3._
object ImplicitConversions {
// The explicit fromIntToLiteral resolves an ambiguous conversion between fromIntToLiteral and
// UInt.asUInt.
implicit def intToUInt(x: Int): UInt = chisel3.core.fromIntToLiteral(x).asUInt
implicit def booleanToBool(x: Boolean): Bool = x.asBool
}
|