ΣSigmaStudio Ask AI Русский Log in

stuffing SigmaDsp readouts into one integer

SigmaDSP & SigmaStudio drugoimir Mar 15, 2015 00:00 3 replies Original on forum ↗
Subscribe
drugoimir Question
Mar 15, 2015 00:00

Hello everybody,

i have to transfer some readings out of the dsp, but would like to limit bus traffic, so i was thinking

i could stuff more readings into just one integer (i don't need the resolution given by a standard

dsp register, 8 - 10 bits / reading will be enough).

In C this would be trivial as:

readout32b =(reading1_8b<<24) | (reading2_8b<<16) | (reading3_8b<<8) | (reading4_8b)

but i have no idea how to do that in sigmastudio-ish language.

Other question: i'm struggling with a bug on sigmastudio 3.11.1 (that bug which makes the

mouse cursor to disappear when loading blocks). I see that the bug was corrected in sigmastudio 3.11.2 beta,

but ADI changed their website and i'm not able in finding it. Where is it now?

Thanks.

Tom

jon71 Reply
Mar 16, 2015 00:00

Bit shifting in SigmaStudio involves multiplying by a (small) 28.0 number, which will truncate, then multiplying by a 5.23 number to shift the truncated bits back to where they were--you will probably need a few operations there as you have to multiply by less than 16 (5.23). Then you add two numbers (one truncated, another truncated and re-shifted) together to multiplex them to an output.

drugoimir Reply
Mar 16, 2015 00:00

Thanks for your answer, i'll try this.

I always hope in ADI unleashing their assembler or native programming language for sigmadsp, allowing users to write their own blocks / algorithms.

Thanks again.

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin