Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- 190 LUT seems a lot for multiplying by the constant 63 (0x3f if I read it right). That multiply should be one subtraction. If your multiplies are all by constants, you might be able to optimise them. I'm also surprised the multiply takes many more than 18x7 (126) LUT - since it can be made of that many full adders (3 input bits) with a delay of 18+7 (23 or so) logic steps. Reducing the resource either means using multi cycle multipliers, or muxing the values into a single multiplier. --- Quote End --- if I want multiply any number by 64 then I just add 6 leading zeros. if I want multiply by 63 instead of 64 I will try see if the minor error can be tolerated. If not I will sunbtract: y * 63 = y*(64-1) = y*64 -y