Jump to content

Are you implementing this for a device already, or purely for synthesis?

What data types are you working with?

Is it a divide by 2, 4, 8 by coincidence? In that case a bit shift is more economical.

Otherwise I would consider converting std_logic_vector to numeric; doing the division and then converting back to a std_logic_vector.

The VHDL compiler may choose how to implement it wants, however it may become very resource consuming because in this case it requires 1-cycle division.

Link to comment
https://linustechtips.com/topic/363489-division-in-vhdl/#findComment-4930273
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×