Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHow to square a fixed point number?
Assuming I have a 16 bit fixed point number that needs to be squared, how should this be implemented? The number format is Q2.14. Squaring it shall produce a result that is 32 bits instead a...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- a <= b * c; will pretty much always infer a DSP block. The amount of pipelining is determined by you - by how many registers you place around the multiplier in your code. the multiplier above can be placed inside or outside a synchronous process. No VHDL function is pipelined. --- Quote End --- That pipelining is going to be external to multiplier. With inference you can not decide internal pipe which could fail timing