summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3/compatibility.scala
diff options
context:
space:
mode:
authorJim Lawson2017-08-01 14:11:03 -0700
committerGitHub2017-08-01 14:11:03 -0700
commit661aa017446693077670ab3d14a30e4804a5c1af (patch)
treeae5dbb532b3bbdae060e10193a1eeb8dda0baa22 /src/main/scala/chisel3/compatibility.scala
parent004938693112b2be268b0ee8d91874ba2d993ec3 (diff)
Address scalastyle issues, out of date comments, extraneous imports. (#658)
No functional changes
Diffstat (limited to 'src/main/scala/chisel3/compatibility.scala')
-rw-r--r--src/main/scala/chisel3/compatibility.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/scala/chisel3/compatibility.scala b/src/main/scala/chisel3/compatibility.scala
index 4223d63b..8fa995e4 100644
--- a/src/main/scala/chisel3/compatibility.scala
+++ b/src/main/scala/chisel3/compatibility.scala
@@ -156,8 +156,8 @@ package object Chisel { // scalastyle:ignore package.object.name
/** Create an SInt literal with specified width. */
def apply(value: BigInt, width: Width): SInt = value.asSInt(width)
- def Lit(value: BigInt): SInt = value.asSInt
- def Lit(value: BigInt, width: Int): SInt = value.asSInt(width.W)
+ def Lit(value: BigInt): SInt = value.asSInt // scalastyle:ignore method.name
+ def Lit(value: BigInt, width: Int): SInt = value.asSInt(width.W) // scalastyle:ignore method.name
/** Create a SInt with a specified width - compatibility with Chisel2. */
def apply(dir: Option[Direction] = None, width: Int): SInt = apply(width.W)
@@ -209,7 +209,7 @@ package object Chisel { // scalastyle:ignore package.object.name
abstract class BlackBox(params: Map[String, Param] = Map.empty[String, Param]) extends chisel3.core.BlackBox(params) {
// This class auto-wraps the BlackBox with IO(...), allowing legacy code (where IO(...) wasn't
// required) to build.
- override def _autoWrapPorts() = {
+ override def _autoWrapPorts(): Unit = { // scalastyle:ignore method.name
if (!_ioPortBound()) {
IO(io)
}
@@ -237,7 +237,7 @@ package object Chisel { // scalastyle:ignore package.object.name
def this(_clock: Clock, _reset: Bool)(implicit moduleCompileOptions: CompileOptions) =
this(Option(_clock), Option(_reset))(moduleCompileOptions)
- override def _autoWrapPorts() = {
+ override def _autoWrapPorts(): Unit = { // scalastyle:ignore method.name
if (!_ioPortBound() && io != null) {
IO(io)
}
@@ -487,7 +487,7 @@ package object Chisel { // scalastyle:ignore package.object.name
* Because its contents won't necessarily have the same level of stability and support as
* non-experimental, you must explicitly import this package to use its contents.
*/
- object experimental {
+ object experimental { // scalastyle:ignore object.name
import scala.annotation.compileTimeOnly
class dump extends chisel3.internal.naming.dump