spatial-lang icon indicating copy to clipboard operation
spatial-lang copied to clipboard

Add stride to linebuf and shift reg

Open shadjis opened this issue 7 years ago • 3 comments

Example stride syntax:

LB: val lb = LineBuffer[T](5, 28, s)

SR: sr(r, *).shift2 ( lb(r, c::c+s) ) { y => y } An alternative syntax we discussed for SR was .shift(s)(...){...}, but only s=1 and 2 should ever be needed, and maybe 4 if it is easy to add

Thanks

shadjis avatar May 20 '17 02:05 shadjis

Reopening - still needs to be implemented but it's less of a priority now

dkoeplin avatar Jun 02 '17 01:06 dkoeplin

Actively working on this

mattfel1 avatar Aug 29 '17 17:08 mattfel1

Syntax for shifting multiple elements in 1 cycle already exists for RegFile:

sr <<= lb(r, c::c+s)

Syntax for strided LineBuffer (added in develop as of 200cd2c): val lb = LineBuffer.strided(rows, cols, stride)

dkoeplin avatar Sep 08 '17 00:09 dkoeplin