How to write 20 log (A/B) in VHDL?

Newbie to VHDL,  i'm trying to write 20*log(A/B) in VHDL.

Understand on the multiplication but not sure about the division of A (signed binary from ADC) with B(decimal e.g integer 5V).

And also not sure how natural log the answer.

 

Thanks!

Facebook  Twitter  Linkedin  Orkut  YouTube      RSS

 

Check out FPGA related videos

Find Us On Facebook