Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into issue177_modular
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfel1 committed Jan 12, 2019
2 parents 029b7f1 + 4c4e1ae commit 7c226bb
Show file tree
Hide file tree
Showing 3 changed files with 490 additions and 4 deletions.
2 changes: 1 addition & 1 deletion argon/src/argon/codegen/Codegen.scala
Expand Up @@ -112,7 +112,7 @@ trait Codegen extends Traversal {
take0(t, h :: accList, h + accSum)
case _ => accList
}
take0(l.toList, Nil, 0).size
take0(l.drop(1).toList, List(l.head), l.head).size
}

if (hierarchyDepth == 0) {
Expand Down
7 changes: 7 additions & 0 deletions src/spatial/traversal/BroadcastCleanup.scala
Expand Up @@ -31,6 +31,13 @@ case class BroadcastCleanupAnalyzer(IR: State) extends AccelTraversal {
dbgs(s" - Propogating info to $in")
in.isBroadcastAddr = if (in.getBroadcastAddr.isDefined) (in.isBroadcastAddr & broadcast) else broadcast
}
case Op(_: BankedWriter[_]) if sym.getPorts(0).isDefined =>
val broadcast = sym.port.broadcast.exists(_>0)
dbgs(s"Reader $sym is broadcast: $broadcast")
sym.nestedInputs.foreach{in =>
dbgs(s" - Propogating info to $in")
in.isBroadcastAddr = if (in.getBroadcastAddr.isDefined) (in.isBroadcastAddr & broadcast) else broadcast
}
case _ if (sym.getBroadcastAddr.isDefined) =>
dbgs(s"Node $sym has BroadcastAddress metadata defined as ${sym.isBroadcastAddr} ")
sym.nestedInputs.foreach{in =>
Expand Down

0 comments on commit 7c226bb

Please sign in to comment.