summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/Bits.scala
diff options
context:
space:
mode:
authorducky2015-10-30 16:36:23 -0700
committerPalmer Dabbelt2015-11-02 14:16:16 -0800
commit3fe81229b38c98ae14529a5d41998b010174b67b (patch)
tree11179d14bf6f6e3c744546d7a3e8d4d27af76a0a /src/main/scala/Chisel/Bits.scala
parent016d1c22877ca20f1b31c45270a9d51cad492a04 (diff)
Add Scalastyle rule to check lines ending with a ;, fix some instances
Diffstat (limited to 'src/main/scala/Chisel/Bits.scala')
-rw-r--r--src/main/scala/Chisel/Bits.scala24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/main/scala/Chisel/Bits.scala b/src/main/scala/Chisel/Bits.scala
index ddef7603..20136be3 100644
--- a/src/main/scala/Chisel/Bits.scala
+++ b/src/main/scala/Chisel/Bits.scala
@@ -200,16 +200,16 @@ object Bits extends UIntFactory
* types.
*/
abstract trait Num[T <: Data] {
- // def << (b: T): T;
- // def >> (b: T): T;
- //def unary_-(): T;
+ // def << (b: T): T
+ // def >> (b: T): T
+ //def unary_-(): T
// REVIEW TODO: double check ops conventions against FIRRTL
/** Outputs the sum of `this` and `b`. The resulting width is the max of the
* operands plus 1 (should not overflow).
*/
- def + (b: T): T;
+ def + (b: T): T
/** Outputs the product of `this` and `b`. The resulting width is the sum of
* the operands.
@@ -217,36 +217,36 @@ abstract trait Num[T <: Data] {
* @note can generate a single-cycle multiplier, which can result in
* significant cycle time and area costs
*/
- def * (b: T): T;
+ def * (b: T): T
/** Outputs the quotient of `this` and `b`.
*
* TODO: full rules
*/
- def / (b: T): T;
+ def / (b: T): T
- def % (b: T): T;
+ def % (b: T): T
/** Outputs the difference of `this` and `b`. The resulting width is the max
* of the operands plus 1 (should not overflow).
*/
- def - (b: T): T;
+ def - (b: T): T
/** Outputs true if `this` < `b`.
*/
- def < (b: T): Bool;
+ def < (b: T): Bool
/** Outputs true if `this` <= `b`.
*/
- def <= (b: T): Bool;
+ def <= (b: T): Bool
/** Outputs true if `this` > `b`.
*/
- def > (b: T): Bool;
+ def > (b: T): Bool
/** Outputs true if `this` >= `b`.
*/
- def >= (b: T): Bool;
+ def >= (b: T): Bool
/** Outputs the minimum of `this` and `b`. The resulting width is the max of
* the operands. Generates a comparison followed by a mux.