Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

"Real-Imag to Complex" in DSPBuilder Advanced Blockset

Hi,

I want to know how to obtain a Complex Number from Real and Imaginary inputs. And also the other way round, i.e., if I have a Complex Number, then how to obtain it's Real and Imaginary parts.

There are blocks "Complex to Real-Imag" and "Real-Imag to Complex" in Standard Blockset. But I could not find any such blocks in Advanced Blockset.

Thanks.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The answer to this is version dependent. In 12.1 and before, you can simply use the simulink "Complex to Real-Imag" and "Real-Imag to Complex" blocks. They will simulate and synthesize just fine in the Advanced Blockset. In 13.0, these blocks are in the Advanced Blockset, and should be use as the simulink blocks will cause errors.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you. I am using 12.0 and the simulink blocks worked without any problem.