diff options
| author | Albert Magyar | 2020-07-20 12:11:44 -0700 |
|---|---|---|
| committer | Albert Magyar | 2020-07-21 13:06:53 -0700 |
| commit | 7e9f424fb7dcd11c894ceb9f6f049fd9eda80632 (patch) | |
| tree | 1fa15e357d0af7b82316fa2ee659e2e98118488c /core/src/main/scala/chisel3/package.scala | |
| parent | 4a0e828cfe76e0d3bd6c4a0cc593589fe74ed0ba (diff) | |
Delete outdated scalastyle configuration comments from source
Diffstat (limited to 'core/src/main/scala/chisel3/package.scala')
| -rw-r--r-- | core/src/main/scala/chisel3/package.scala | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/src/main/scala/chisel3/package.scala b/core/src/main/scala/chisel3/package.scala index cf0afb10..8597b5c7 100644 --- a/core/src/main/scala/chisel3/package.scala +++ b/core/src/main/scala/chisel3/package.scala @@ -4,7 +4,7 @@ import chisel3.internal.firrtl.BinaryPoint /** This package contains the main chisel3 API. */ -package object chisel3 { // scalastyle:ignore package.object.name +package object chisel3 { import internal.firrtl.{Port, Width} import internal.Builder @@ -30,23 +30,23 @@ package object chisel3 { // scalastyle:ignore package.object.name implicit class fromBigIntToLiteral(bigint: BigInt) { /** Int to Bool conversion, allowing compact syntax like 1.B and 0.B */ - def B: Bool = bigint match { // scalastyle:ignore method.name + def B: Bool = bigint match { case bigint if bigint == 0 => Bool.Lit(false) case bigint if bigint == 1 => Bool.Lit(true) case bigint => Builder.error(s"Cannot convert $bigint to Bool, must be 0 or 1"); Bool.Lit(false) } /** Int to UInt conversion, recommended style for constants. */ - def U: UInt = UInt.Lit(bigint, Width()) // scalastyle:ignore method.name + def U: UInt = UInt.Lit(bigint, Width()) /** Int to SInt conversion, recommended style for constants. */ - def S: SInt = SInt.Lit(bigint, Width()) // scalastyle:ignore method.name + def S: SInt = SInt.Lit(bigint, Width()) /** Int to UInt conversion with specified width, recommended style for constants. */ - def U(width: Width): UInt = UInt.Lit(bigint, width) // scalastyle:ignore method.name + def U(width: Width): UInt = UInt.Lit(bigint, width) /** Int to SInt conversion with specified width, recommended style for constants. */ - def S(width: Width): SInt = SInt.Lit(bigint, width) // scalastyle:ignore method.name + def S(width: Width): SInt = SInt.Lit(bigint, width) /** Int to UInt conversion, recommended style for variables. */ @@ -68,10 +68,10 @@ package object chisel3 { // scalastyle:ignore package.object.name implicit class fromStringToLiteral(str: String) { /** String to UInt parse, recommended style for constants. */ - def U: UInt = str.asUInt() // scalastyle:ignore method.name + def U: UInt = str.asUInt() /** String to UInt parse with specified width, recommended style for constants. */ - def U(width: Width): UInt = str.asUInt(width) // scalastyle:ignore method.name + def U(width: Width): UInt = str.asUInt(width) /** String to UInt parse, recommended style for variables. */ @@ -97,13 +97,13 @@ package object chisel3 { // scalastyle:ignore package.object.name } implicit class fromIntToBinaryPoint(int: Int) { - def BP: BinaryPoint = BinaryPoint(int) // scalastyle:ignore method.name + def BP: BinaryPoint = BinaryPoint(int) } implicit class fromBooleanToLiteral(boolean: Boolean) { /** Boolean to Bool conversion, recommended style for constants. */ - def B: Bool = Bool.Lit(boolean) // scalastyle:ignore method.name + def B: Bool = Bool.Lit(boolean) /** Boolean to Bool conversion, recommended style for variables. */ @@ -136,7 +136,7 @@ package object chisel3 { // scalastyle:ignore package.object.name extends experimental.Interval.Implicits.fromBigDecimalToLiteralInterval(bigDecimal) implicit class fromIntToWidth(int: Int) { - def W: Width = Width(int) // scalastyle:ignore method.name + def W: Width = Width(int) } val WireInit = WireDefault |
