diff options
| author | Jim Lawson | 2016-08-22 16:57:43 -0700 |
|---|---|---|
| committer | Jim Lawson | 2016-08-22 16:57:43 -0700 |
| commit | 35c8e40b25f529da883e8ae91644fcc496e087da (patch) | |
| tree | ce778a20c0a05848e5578a1d514e7049e98a23c4 /src/main/scala/chisel3/compatibility.scala | |
| parent | 94796f5960b5b82f9d28d2b0e0e7ec7c92e29dfa (diff) | |
Purely cosmetic changes to placate the scalastyle checker.
Diffstat (limited to 'src/main/scala/chisel3/compatibility.scala')
| -rw-r--r-- | src/main/scala/chisel3/compatibility.scala | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/main/scala/chisel3/compatibility.scala b/src/main/scala/chisel3/compatibility.scala index 5624b79c..35c44330 100644 --- a/src/main/scala/chisel3/compatibility.scala +++ b/src/main/scala/chisel3/compatibility.scala @@ -3,7 +3,7 @@ // Allows legacy users to continue using Chisel (capital C) package name while // moving to the more standard package naming convention chisel3 (lowercase c). -package object Chisel { +package object Chisel { // scalastyle:ignore package.object.name type Direction = chisel3.core.Direction val INPUT = chisel3.core.Direction.Input val OUTPUT = chisel3.core.Direction.Output @@ -72,29 +72,29 @@ package object Chisel { * Prefer storing the result and then extracting from it. */ implicit class fromIntToLiteral(val x: Int) extends AnyVal { - def U: UInt = UInt(BigInt(x), Width()) - def S: SInt = SInt(BigInt(x), Width()) + def U: UInt = UInt(BigInt(x), Width()) // scalastyle:ignore method.name + def S: SInt = SInt(BigInt(x), Width()) // scalastyle:ignore method.name - def asUInt() = UInt(x, Width()) - def asSInt() = SInt(x, Width()) - def asUInt(width: Int) = UInt(x, width) - def asSInt(width: Int) = SInt(x, width) + def asUInt(): UInt = UInt(x, Width()) + def asSInt(): SInt = SInt(x, Width()) + def asUInt(width: Int): UInt = UInt(x, width) + def asSInt(width: Int): SInt = SInt(x, width) } - + implicit class fromBigIntToLiteral(val x: BigInt) extends AnyVal { - def U: UInt = UInt(x, Width()) - def S: SInt = SInt(x, Width()) + def U: UInt = UInt(x, Width()) // scalastyle:ignore method.name + def S: SInt = SInt(x, Width()) // scalastyle:ignore method.name - def asUInt() = UInt(x, Width()) - def asSInt() = SInt(x, Width()) - def asUInt(width: Int) = UInt(x, width) - def asSInt(width: Int) = SInt(x, width) + def asUInt(): UInt = UInt(x, Width()) + def asSInt(): SInt = SInt(x, Width()) + def asUInt(width: Int): UInt = UInt(x, width) + def asSInt(width: Int): SInt = SInt(x, width) } implicit class fromStringToLiteral(val x: String) extends AnyVal { - def U: UInt = UInt(x) + def U: UInt = UInt(x) // scalastyle:ignore method.name } implicit class fromBooleanToLiteral(val x: Boolean) extends AnyVal { - def B: Bool = Bool(x) + def B: Bool = Bool(x) // scalastyle:ignore method.name } @@ -105,7 +105,7 @@ package object Chisel { val throwException = chisel3.compatibility.throwException val debug = chisel3.compatibility.debug - object testers { + object testers { // scalastyle:ignore object.name type BasicTester = chisel3.testers.BasicTester val TesterDriver = chisel3.testers.TesterDriver } |
