3.0.9 Beta1 Asm+Dsp Array/Memref Demo

Post any examples or modules that you want to share here
Post Reply
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

3.0.9 Beta1 Asm+Dsp Array/Memref Demo

Post 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.
Attachments
ASM+DSP Array In Demo.fsm
(3.58 KiB) Downloaded 1299 times
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: 3.0.9 Beta1 Asm+Dsp Array/Memref Demo

Post by MyCo »

Here is another Memref Demo, it demonstrates how to use indirect memory addressing.
Attachments
ASM Mem Ref Demo.fsm
(3.3 KiB) Downloaded 1162 times
Post Reply