Forum Discussion

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

Convert from unsigned to signed

How can I cast a signal from an unsigned to a signed in DSP builder in simulink?

I have an unsigned inputs, which I difference (with positive or negative results. How can I either cast both of these inputs to a signed value easily without doing silly bus concatenations so I can input them into the subtractor?

Thanks for any help.

1 Reply

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

    Use an AltBus block from the IO & Bus library in Altera DSP Builder Blockset.