stanford-ppl / spatial-lang

Spatial: "Specify Parameterized Accelerators Through Inordinately Abstract Language"
MIT License
100 stars 12 forks source link

Throw warning for parallelized, unaligned loads into LineBuffer or rethink template #246

Open mattfel1 opened 6 years ago

mattfel1 commented 6 years ago

If you parallelize an unaligned load, you could potentially get the wrong result in the app since the Linebuffer assumes a constant enqueue stride and therefore has one wren signal. If the load is unaligned so that there are elements in the burst that are not getting enqueued into the lb, so it will refuse to enqueue any elements from that burst right now, secretly.