Forum Discussion

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

Signed operators in Verilog

Hello again everybody,

I am trying to build a PID controller using Verilog signed operators,

some up to 32 bits wide. Quartus II is doing some very strange things

to my code however, removing bits inside the bus and so on.

What do I need to watch out for when using signed operators inside Quartus ?

What is the size limitation for a signed register or port ?

Thanks a bunch !!

Cheers,

Eric

1 Reply

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

    are you getting the correct results? when multiplying by a constant, the synthesizer will optimize the multiplier which may remove some of the logic.