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

About the SigmaStudio module "exp2"

SigmaDSP & SigmaStudio IRON Apr 11, 2016 00:00 4 replies Original on forum ↗
Subscribe
IRON Question
Apr 11, 2016 00:00

Hello all,

I have a question.

In my development, "exp"module is needed instead of exp2.

Do you have any idea?

Best,

Yuta Mihara

KJBob Reply
Apr 11, 2016 00:00

Hello,

For the function e^x, multiply the input by (log2 (e)), approx. 1.442695. To get 10^x, multiply the input by (log2 (10)), about 3.32193. You can use the Linear Gain blocks in SigmaStudio as shown below:

Best regards,

Bob

6b0b01767d73d7195cb1212be803167b.png
6b0b01767d73d7195cb1212be803167b.png
6b0b01767d73d7195cb1212be803167b.png-389x266.png
6b0b01767d73d7195cb1212be803167b.png-389x266.png
IRON Reply
Apr 12, 2016 00:00

Hello Bob,

Thank you so much for your answer.

I guess The upper path in the figure you made is what I have to refer for exp2.

Correct me if I'm wrong please.

By the way, the read-back module does not work well in my system.

Best Regards,

Yuta Mihara

KJBob Reply
Apr 12, 2016 00:00

Hello,

Both paths use the SigmaStudio exp2 function (2^x). The upper path multiplies the input by log2 (e) before the exp2 block so that its ultimate output is y = e^x.

In a similar way, the lower path is for y = 10^x. I provided both versions because I didn't know which you wanted.

I'm not sure what's causing your readback issues. Using a USB 3.0 port seems to cause issues (though no one knows why). On the other hand, a very slow computer also causes issues. Empirically, the USBi works best with a USB 2.0 port on a moderately fast machine (Core i3 or better). Since your project uses the log and exp blocks, I assume you're using a ADAU1452. The ADAU1701, by contrast, has a truncated readback register (5.19 format) which can prove confusing, especially with integer readbacks.

Best Regards,

Bob

IRON Reply
Apr 13, 2016 00:00

Hi Bob,

Thank you for your reply.

I've just solved the eqation you provide me. Also the read back works well and I checked the answer is what I expected.

I just did not know that I had to connect to the target board EVAL1452 to do read back.

Best Regards,

Yuta Mihara