Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

3.0.9 Beta1 Asm+Dsp Array/Memref Demo

Post any examples or modules that you want to share here

3.0.9 Beta1 Asm+Dsp Array/Memref Demo

Postby MyCo » Sat Dec 05, 2015 3:47 am

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 1223 times
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany

Re: 3.0.9 Beta1 Asm+Dsp Array/Memref Demo

Postby MyCo » Sat Feb 25, 2017 8:29 pm

Here is another Memref Demo, it demonstrates how to use indirect memory addressing.
Attachments
ASM Mem Ref Demo.fsm
(3.3 KiB) Downloaded 1096 times
User avatar
MyCo
 
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany


Return to User Examples

Who is online

Users browsing this forum: Google [Bot] and 35 guests