mamarezax
Newbie level 1
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