diff options
| author | Jim Lawson | 2016-09-15 14:36:29 -0700 |
|---|---|---|
| committer | Jim Lawson | 2016-09-15 14:36:29 -0700 |
| commit | 64e4df3d92727d83d5d627114d7002b97f901052 (patch) | |
| tree | 9b0060b03aa9c048645b0f624598adc93088d40e | |
| parent | 920f6dc168d8e486733666368c7e363065b685ee (diff) | |
Revert "Add direction-only (no width) UInt factory method."
This reverts commit 920f6dc168d8e486733666368c7e363065b685ee.
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Bits.scala | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala index 611a49be..8b3723f5 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Bits.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Bits.scala @@ -558,15 +558,6 @@ private[core] sealed trait UIntFactory { case Direction.Unspecified => result } } - /** Create a UInt with a specified direction, but unspecified width - compatibility with Chisel2. */ - def apply(dir: Direction): UInt = { - val result = apply(Width()) - dir match { - case Direction.Input => Input(result) - case Direction.Output => Output(result) - case Direction.Unspecified => result - } - } private def parse(n: String) = { val (base, num) = n.splitAt(1) |
