diff options
| author | Andrew Waterman | 2015-08-02 21:38:57 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2015-08-02 21:38:57 -0700 |
| commit | f1c63223307c60cb2400ae2f665ba490478894f7 (patch) | |
| tree | ede4233c3950ac4b91211e7443ee45face487b41 /src/main/scala/Chisel/utils.scala | |
| parent | efccec04b26b9660b28176446831d992aee1c245 (diff) | |
Move comparison operators to UInt/SInt
Diffstat (limited to 'src/main/scala/Chisel/utils.scala')
| -rw-r--r-- | src/main/scala/Chisel/utils.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/Chisel/utils.scala b/src/main/scala/Chisel/utils.scala index 90c59e9d..1e024b11 100644 --- a/src/main/scala/Chisel/utils.scala +++ b/src/main/scala/Chisel/utils.scala @@ -138,7 +138,7 @@ object is { def apply(v: Iterable[Bits])(block: => Unit): Unit = { val keys = switchKeys if (keys.isEmpty) ChiselError.error("The 'is' keyword may not be used outside of a switch.") - else if (!v.isEmpty) when (v.map(_ === keys.top).reduce(_||_)) { block } + else if (!v.isEmpty) when (v.map(_.toBits === keys.top.toBits).reduce(_||_)) { block } } } |
