Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > MOD function synthesis
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 10th July 04:01
praveen
External User
 
Posts: 1
Default MOD function synthesis



Hi folks,

could any one suggest me what is the hardware taken for
implementing a MOD function in VHDL.

rgds,
praveen
  Reply With Quote


  sponsored links


2 16th July 22:21
allan herriman
External User
 
Posts: 1
Default MOD function synthesis



a <= b mod c

If c is a power of 2 (= 2 ** N), a will get the lower N bits of b,
with the upper bits zeroed.
IOW, there is no logic generated, just connections.

Most synthesis tools will issue an error if c is not static, or not a
power of 2.

Regards,
Allan.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666