diff options
| author | Andrew Waterman | 2015-07-29 00:23:59 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2015-07-29 00:23:59 -0700 |
| commit | 75f54a3f873f168a7811da88ba1d3d59c9844659 (patch) | |
| tree | 9f6d0aa9c3e61871d821a048289013764bb045fe /src/main/scala/Chisel/Log2.scala | |
| parent | d034f40b02e40d8a919596c7554bc0662db62001 (diff) | |
Use Seq, not Iterable, when traversal order matters
Diffstat (limited to 'src/main/scala/Chisel/Log2.scala')
| -rw-r--r-- | src/main/scala/Chisel/Log2.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/Chisel/Log2.scala b/src/main/scala/Chisel/Log2.scala index fe1c1372..01b081ef 100644 --- a/src/main/scala/Chisel/Log2.scala +++ b/src/main/scala/Chisel/Log2.scala @@ -30,6 +30,6 @@ object OHToUInt { } object PriorityEncoder { - def apply(in: Iterable[Bool]): UInt = PriorityMux(in, (0 until in.size).map(UInt(_))) + def apply(in: Seq[Bool]): UInt = PriorityMux(in, (0 until in.size).map(UInt(_))) def apply(in: Bits): UInt = apply(in.toBools) } |
