diff options
| -rw-r--r-- | src/main/scala/Chisel/Core.scala | 4 | ||||
| -rw-r--r-- | src/main/scala/Chisel/Utils.scala | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/main/scala/Chisel/Core.scala b/src/main/scala/Chisel/Core.scala index 6fb0fb25..945475fb 100644 --- a/src/main/scala/Chisel/Core.scala +++ b/src/main/scala/Chisel/Core.scala @@ -18,7 +18,7 @@ object NO_DIR extends Direction("?") { override def flip: Direction = NO_DIR } // REVIEW TODO: Should this actually be part of the RTL API? RTL should be // considered untouchable from a debugging standpoint? -object debug { +object debug { // scalastyle:ignore object.name // TODO: def apply (arg: Data): Data = arg } @@ -1353,7 +1353,7 @@ abstract class BlackBox(_clock: Clock = null, _reset: Bool = null) extends Modul def setVerilogParameters(s: String): Unit = {} } -object when { +object when { // scalastyle:ignore object.name /** Create a `when` condition block, where whether a block of logic is * executed or not depends on the conditional. * diff --git a/src/main/scala/Chisel/Utils.scala b/src/main/scala/Chisel/Utils.scala index 4d642a47..eb3a1ee9 100644 --- a/src/main/scala/Chisel/Utils.scala +++ b/src/main/scala/Chisel/Utils.scala @@ -146,7 +146,7 @@ object PriorityMux } /** This is identical to [[Chisel.when when]] with the condition inverted */ -object unless { +object unless { // scalastyle:ignore object.name def apply(c: Bool)(block: => Unit) { when (!c) { block } } @@ -163,7 +163,8 @@ class SwitchContext[T <: Bits](cond: T) { /** An object for separate cases in [[Chisel.switch switch]] * It is equivalent to a [[Chisel.when$ when]] block comparing to the condition * Use outside of a switch statement is illegal */ -object is { // Begin deprecation of non-type-parameterized is statements. +object is { // scalastyle:ignore object.name + // Begin deprecation of non-type-parameterized is statements. def apply(v: Iterable[Bits])(block: => Unit) { Builder.error("The 'is' keyword may not be used outside of a switch.") } @@ -188,7 +189,7 @@ object is { // Begin deprecation of non-type-parameterized is statements. * ... // some logic here * } * } }}}*/ -object switch { +object switch { // scalastyle:ignore object.name def apply[T <: Bits](cond: T)(x: => Unit): Unit = macro impl def impl(c: Context)(cond: c.Tree)(x: c.Tree): c.Tree = { import c.universe._ val sc = c.universe.internal.reificationSupport.freshTermName("sc") @@ -679,6 +680,7 @@ class RRArbiter[T <: Data](gen:T, n: Int) extends LockingRRArbiter[T](gen, n, 1) */ class Arbiter[T <: Data](gen: T, n: Int) extends LockingArbiter[T](gen, n, 1) +// scalastyle:off magic.number /** linear feedback shift register */ object LFSR16 @@ -691,6 +693,7 @@ object LFSR16 lfsr } } +// scalastyle:on magic.number /** A hardware module that delays data coming down the pipeline by the number of cycles set by the latency parameter. Functionality |
