computation of f(X)=(X (2X+1)) mod 2 w +vhdl

Status
Not open for further replies.

swapnil_vlsi

Full Member level 1
Joined
Jul 18, 2007
Messages
95
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Activity points
1,900
can any body have VHDL code for the implementation for
f(X)=(X (2X+1)) mod 2 w

its one module of my pro..
 

Hi all,
He means I think modulo (2*w).
For this term:
mod 2 w if w is a constant then you can directly implement your function in vhdl and it will be synthethisabe. (X (2X+1)) is simple to translate in synthetizable VHDL.
If you have w as a varialble it would not be the case and you can use the technique provided here:


Added after 49 minutes:

See also
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…