diff options
| author | Andrew Waterman | 2016-05-10 13:48:16 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2016-05-10 13:48:16 -0700 |
| commit | af6173d011ec19d80e0ffce0ff9a5658f876225e (patch) | |
| tree | 73dc59f17cce8d6087f60b85766992fe5beecef9 /chiselFrontend/src | |
| parent | 52636971443c44429aa4834fcd656cb691659711 (diff) | |
Have Bits.toBools return Seq, not Vec
The return value of Bits.toBools doesn't need to be dynamically indexed
(as you could have just dynamically indexed the Bits itself), so
returning a Seq instead of a Vec is mroe appropriate.
This breaks a circular dependence between Bits and Vec, which helps
with macros/frontend refactoring.
Diffstat (limited to 'chiselFrontend/src')
| -rw-r--r-- | chiselFrontend/src/main/scala/Chisel/Bits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chiselFrontend/src/main/scala/Chisel/Bits.scala b/chiselFrontend/src/main/scala/Chisel/Bits.scala index 27790336..ce177ef1 100644 --- a/chiselFrontend/src/main/scala/Chisel/Bits.scala +++ b/chiselFrontend/src/main/scala/Chisel/Bits.scala @@ -155,7 +155,7 @@ sealed abstract class Bits(dirArg: Direction, width: Width, override val litArg: /** Returns the contents of this wire as a [[Vec]] of [[Bool]]s. */ - def toBools: Vec[Bool] = Vec.tabulate(this.getWidth)(i => this(i)) + def toBools: Seq[Bool] = Seq.tabulate(this.getWidth)(i => this(i)) /** Reinterpret cast to a SInt. * |
