diff options
| author | Wesley W. Terpstra | 2016-06-01 16:09:20 -0700 |
|---|---|---|
| committer | Andrew Waterman | 2016-06-01 16:09:20 -0700 |
| commit | fd53af8642237998e23456a3fd1648ac84607db0 (patch) | |
| tree | 6c73c89a2e1b9621f126f1e501baf9bb804b5070 /src/test/scala/chiselTests/Stack.scala | |
| parent | 0b6f6b67f9b511468936ca30218343283071a69d (diff) | |
Fix a fairly serious bug whereby Vec's could incorrectly compare as equal (#204)
* chiselTests: include an example of two empty Vectors killing FIRRTL
* Aggregate: fix a bug whereby Vec[T] was using equals/hashCode of Seq
In Chisel, two vectors are NOT equal just if their contents are equal.
For example, two empty vectors should not be considered equal. This
patch makes Vec use the HasId._id for equality like other Chisel types.
Without this fix, Bundle.namedElts.seen: HashSet[Data]() will eliminate
one of the named vectors and emit bad IR.
Diffstat (limited to 'src/test/scala/chiselTests/Stack.scala')
0 files changed, 0 insertions, 0 deletions
