diff options
| author | ducky | 2018-07-01 12:40:25 -0700 |
|---|---|---|
| committer | Richard Lin | 2018-07-04 18:39:28 -0500 |
| commit | 94bde13444b956b2ef3c3cf7e94870b1d890f65d (patch) | |
| tree | 95d478dc89be94c2a419cd997c4e809952aa73c8 /src/main/scala/chisel3/util/BitPat.scala | |
| parent | a931abe0cf57481b47093b5950d3bffd9575f803 (diff) | |
Prefer litValue, eliminate litToBigInt
Diffstat (limited to 'src/main/scala/chisel3/util/BitPat.scala')
| -rw-r--r-- | src/main/scala/chisel3/util/BitPat.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/chisel3/util/BitPat.scala b/src/main/scala/chisel3/util/BitPat.scala index 3a3a7061..6ff08bea 100644 --- a/src/main/scala/chisel3/util/BitPat.scala +++ b/src/main/scala/chisel3/util/BitPat.scala @@ -75,7 +75,7 @@ object BitPat { */ def apply(x: UInt): BitPat = { val len = if (x.isWidthKnown) x.getWidth else 0 - apply("b" + x.litToBigInt.toString(2).reverse.padTo(len, "0").reverse.mkString) + apply("b" + x.litValue.toString(2).reverse.padTo(len, "0").reverse.mkString) } } |
