Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
prod := coef(1)*reg(2)+coef(2)*reg(1)+coef(3)*reg(0);
you mean i put it as a function in apackage then add package.and if the name of entity of algorithm is boothThere are two ways in which you can use it!
Easiest way would be to use it as a function or you can also use it as a separate entity and use it in your top-module.
prod := coef(1)*reg(2)+coef(2)*reg(1)+coef(3)*reg(0);
You can do it by a function if you want, but it wont have any pipelining, so the fmax will be very slow. You'll need to do an entity instantiation for that.
Why do you want to use booth over * (which will us the fast build in multipliers) anyway?
i want to implenet a low power fir filter and modified booth making traditional multipliers lowpower according to decreasing partial products