Open mattfel1 opened 7 years ago
Partially fixed on develop - issue was the compiler didn't know LineBuffer is always banked by the rows, so it was trying to duplicate.
However, this is an obvious case where we should be coalescing reads onto a single banked memory, but instead are creating duplicates (in this case, of the LineBuffer).
FYI on latest develop this gives the following error still in --synth (not --sim):
[bug] An exception was encountered while compiling:
[bug] This is an example where lb dispatch > 1. Please use as test case! (node x15945 on lb x15813)
java.lang.Exception: This is an example where lb dispatch > 1. Please use as test case! (node x15945 on lb x15813)
at spatial.codegen.chiselgen.ChiselGenUnrolled.emitNode(ChiselGenUnrolled.scala:404)
at spatial.codegen.chiselgen.ChiselGenUnrolled.emitNode$(ChiselGenUnrolled.scala:51)
at spatial.SpatialCompiler$$anon$3.spatial$codegen$chiselgen$ChiselGenVector$$super$emitNode(Spatial.scala:107)
at spatial.codegen.chiselgen.ChiselGenVector.emitNode(ChiselGenVector.scala:56)
at spatial.codegen.chiselgen.ChiselGenVector.emitNode$(ChiselGenVector.scala:33)
at spatial.SpatialCompiler$$anon$3.argon$codegen$chiselgen$ChiselGenArray$$super$emitNode(Spatial.scala:107)
at argon.codegen.chiselgen.ChiselGenArray.emitNode(ChiselGenArray.scala:26)
at argon.codegen.chiselgen.ChiselGenArray.emitNode$(ChiselGenArray.scala:18)
at spatial.SpatialCompiler$$anon$3.spatial$codegen$chiselgen$ChiselGenAlteraVideo$$super$emitNode(Spatial.scala:107)
Stefan found this in vgg_1d, pasted below. I think this is a bug, unless if there is something logical I should do when dispatched to multiple duplicates? Issue is on node x14503 accessing lb x14374_lb0