Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into deprepkg
Browse files Browse the repository at this point in the history
  • Loading branch information
ucbjrl committed Apr 5, 2017
2 parents c859f32 + 7d0b487 commit 49f5723
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/firrtl/passes/memlib/DecorateMems.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class CreateMemoryAnnotations(reader: Option[YamlFileReader]) extends Transform
import CustomYAMLProtocol._
val configs = r.parse[Config]
val cN = CircuitName(state.circuit.main)
val (as, pins) = configs.foldLeft((Seq.empty[Annotation], Seq.empty[String])) { case ((annos, pins), config) =>
val oldAnnos = state.annotations.getOrElse(AnnotationMap(Seq.empty)).annotations
val (as, pins) = configs.foldLeft((oldAnnos, Seq.empty[String])) { case ((annos, pins), config) =>
val top = TopAnnotation(ModuleName(config.top.name, cN), config.pin.name)
val source = SourceAnnotation(ComponentName(config.source.name, ModuleName(config.source.module, cN)), config.pin.name)
(annos ++ Seq(top, source), pins :+ config.pin.name)
Expand Down

0 comments on commit 49f5723

Please sign in to comment.