EmbDev.net

Forum: FPGA, VHDL & Verilog Adjusting a number after performing the multiplication between two normalized numbers


Du wurdest von Mikrocontroller.net auf diese Seite weitergeleitet. Zurück zu Mikrocontroller.net
von Mariana D. (vtrmg)


Rate this post
useful
not useful
Good morning, I have just implemented a multiplication between two 
numbers, and before that, I normalized them by multiplying each of them 
by a power of 2. However, the result of the multiplication needs to be 
adjusted by dividing it by a power of 2.
I've attempted to implement a division, but it appears that the result 
will be a floating-point number, and I'll need to round it up to the 
nearest integer. Can anyone assist me with this?

von DSGV-Violator (Guest)


Rate this post
useful
not useful
Please, show us the code you've written and simulated so far.

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
Mariana D. wrote:
> I have just implemented a multiplication
On what hardware? With which HDL?

> dividing it by a power of 2
Fairly simple: don't use the LSB.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.