Page 1 of 1

3.0.9 Beta1 Asm+Dsp Array/Memref Demo

Posted: Sat Dec 05, 2015 3:47 am
by MyCo
Hi,

Here is a demo for the new input types in Assembler and DSP code. The Assember allows direct integer inputs, so you can pass an integer array in to be used for integer operations without having to convert the values (using cvtps2dq).

The memrefin input type is a very special case. It's not really a memory input though, it's more like a memory property input giving [memory addr, memory size in bytes, memory size in floats, nr. of channels] as integers. That allows us to read from and write to memory directly without any conversion or memory swapping. That should extend FS DSP capabilities quite a lot.

Danger, Will Robinson!
when you use memrefin for whatever reason, before reading and writing you have to make sure that the memory exists and is long enough. So best way to do that is check SSE channel 1 or 2 if the mem size is big enough, else jump over the read/write code.

Re: 3.0.9 Beta1 Asm+Dsp Array/Memref Demo

Posted: Sat Feb 25, 2017 8:29 pm
by MyCo
Here is another Memref Demo, it demonstrates how to use indirect memory addressing.