diff options
| author | harrisonliew | 2019-05-29 09:46:13 -0700 |
|---|---|---|
| committer | Jack Koenig | 2019-05-29 09:46:13 -0700 |
| commit | eb64bf518df7a91094d99b7dfc7dfa8d199f04ae (patch) | |
| tree | 39142f8363d558cf115bea89d97519047f22eb3f /src | |
| parent | 228c9a4b7432ac52178d63b8f27fe064aec71e9c (diff) | |
make analog attachment order fixed with linked hash map (#1089)
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/scala/firrtl/passes/ExpandWhens.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/passes/ExpandWhens.scala b/src/main/scala/firrtl/passes/ExpandWhens.scala index 956d54bc..23c7956a 100644 --- a/src/main/scala/firrtl/passes/ExpandWhens.scala +++ b/src/main/scala/firrtl/passes/ExpandWhens.scala @@ -256,7 +256,7 @@ object ExpandWhens extends Pass { case class AttachAcc(exprs: Seq[WrappedExpression], idx: Int) // Map from every attached expression to its corresponding AttachAcc // (many keys will point to same value) - val attachMap = mutable.HashMap.empty[WrappedExpression, AttachAcc] + val attachMap = mutable.LinkedHashMap.empty[WrappedExpression, AttachAcc] for (Attach(_, es) <- attaches) { val exprs = es.map(we(_)) val acc = exprs.map(attachMap.get(_)).flatten match { |
