Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Unfortunately I cannot add latency( 1-2 clock latency is fine nothing more than that). Is there any other option? Thank you for your response. --- Quote End --- If you just want to multiply any number (binary format) with any power of 2 constant e.g. 2^6(64) then all you need is insert 6 leading zeros e.g. 1 = '1', 2 = "10", 4 = "100" and so on. It does not need multiplier and I wouldn't wait for a tool to do that. If your constant is close to 2^n then you can subtract or add as appropriate e.g. 112 * 65 = 112*64 + 112 so add 6 leading zeros then add one more sample of input. regarding latency issue: you can insert leading zeros without any latency. for add/subtract you may need one clock or so depending on your design. For suitable bitwidths you may also think of precomputed Look-up-table.