Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfel1 committed Oct 10, 2020
1 parent 9a5b191 commit 37d3204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spatial/lang/api/PriorityDeqAPI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ trait PriorityDeqAPI { this: Implicits =>
val gid = ctx.line // TODO: this is probably an unsafe way to compute a group id
val datas: Seq[T] = fifo.zipWithIndex.map{case (f,i) =>
// The enable should also have a !f.isEmpty but this messes up II analysis so it is added at codegen as a hack for this deq node
val d = stage(FIFOPriorityDeq(f, Set(fifo.take(i).map(_.isEmpty).fold(Bit(true), cond(i)){case (a: Bit,b: Bit) => a && b})))
val d = stage(FIFOPriorityDeq(f, Set(fifo.take(i).map(_.isEmpty).fold(Bit(true)), cond(i)){case (a: Bit,b: Bit) => a && b})))
d
}
val x = stage(PriorityMux[T](fifo.map(!_.isEmpty), datas.map{x => boxBits[T](x)}))
Expand Down

0 comments on commit 37d3204

Please sign in to comment.