Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dividing bit vectors using VHDL

Status
Not open for further replies.

JohnGiannakas

Programmer
Dec 14, 2002
2
GR
How can I divide a bit vector in VHDL by another one? The divider is not a power of 2.( if it was a simple shift operation would do the job) For exaple divide 1010110 with 011.
 
Hi,
Most of the synthesis tools (if not all) expect the divisor to be a power of 2, so that the division can be done by merely shifting the dividend right. The synthesis companies do provide IP-components which support division of any value by an valued-divisor. These are done by using various algorithmns.

In case you still want the code to support full division, then there is no other way than to code it yourself by using algorithmn such as RESTORING and NON-RESTORING methods of division.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top