mamarezax
Newbie level 1
- Joined
- Jun 27, 2007
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,288
i need vhdl code of a modular adder.
for example an adder that calculated with following method
a and b are n-bit
m is n bit number.
m= 2^n-1
s is n bit number.
(a+b)mod m =s
solve this for n=4
example:
a= 1101
b=1001
m=1111
s=0110
our design must be have only on n bit adder (4 bit adder for example)
many thanx my friends
for example an adder that calculated with following method
a and b are n-bit
m is n bit number.
m= 2^n-1
s is n bit number.
(a+b)mod m =s
solve this for n=4
example:
a= 1101
b=1001
m=1111
s=0110
our design must be have only on n bit adder (4 bit adder for example)
many thanx my friends