summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/Utils.scala
diff options
context:
space:
mode:
authorducky2015-10-26 11:54:22 -0700
committerPalmer Dabbelt2015-10-26 15:08:35 -0700
commit5a6bfa244806665aa072cb9baad1d12f6533255f (patch)
treeedeba246d6ba7bc49ff242630d90be2b46a335e2 /src/main/scala/Chisel/Utils.scala
parent274ada88c78cf594880263efba194e79595ee2f3 (diff)
Add scalastyle ignore comments
Diffstat (limited to 'src/main/scala/Chisel/Utils.scala')
-rw-r--r--src/main/scala/Chisel/Utils.scala9
1 files changed, 6 insertions, 3 deletions
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