Forum Discussion
Altera_Forum
Honored Contributor
13 years agoQ (number format) Multiply
I'm working on a project that uses a 32-bit accumulator, which it's input is a 32-bit step size (unsigned Q30.2) value. The accumulator can rollover when preforming a large number of iterations or w...
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- I know "CONV_STD_LOGIC_VECTOR" will not work with a 64 bit value, just using this as an example. --- Quote End --- This is only because of the limitations of the integer type. If you kept it all in the unsiged (or even better for this application, the ufixed type) there are no limitiations. Basically, to do what you want, you cannot use integers at all, because they are so large. You will get an overflow error when you try and similate because the result of multiplying the two integers is too large.