diff options
| author | Colin Schmidt | 2016-04-13 11:06:53 -0700 |
|---|---|---|
| committer | Colin Schmidt | 2016-04-13 11:22:53 -0700 |
| commit | 635f98dd174e62151c82d20d4fca35272a85c146 (patch) | |
| tree | 188203af189df6e92e4028913aec02abf3dcecda /src | |
| parent | 56613a8bf3a2f9d1e50adb4de2308e6afda9cf4f (diff) | |
Remove underscores from constant creation
This makes chisel2's behaviour and makes it
easier to read large constants.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/Chisel/Bits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/Chisel/Bits.scala b/src/main/scala/Chisel/Bits.scala index 3d79af60..44d9b660 100644 --- a/src/main/scala/Chisel/Bits.scala +++ b/src/main/scala/Chisel/Bits.scala @@ -393,7 +393,7 @@ private[Chisel] sealed trait UIntFactory { case "b" => 2 case _ => Builder.error(s"Invalid base $base"); 2 } - BigInt(num, radix) + BigInt(num.filterNot(_ == '_'), radix) } private def parsedWidth(n: String) = |
