why EX-OR in block and cyclic codes

Status
Not open for further replies.

electronics_kumar

Advanced Member level 2
Joined
Nov 29, 2004
Messages
657
Helped
34
Reputation
68
Reaction score
9
Trophy points
1,298
Location
Tamilnadu
Activity points
5,552
y we are always using EX-OR gate whenever we are facing addition

ie ....idea or benefit of using modulo 2 addition for binary or addition
 

Well, I use the "+" symbol in my RTL for addition and XOR in CRCs as they are functionally correct. I then feed the RTL to a synthesiser which is free to use functionally equivalent logic to implement the design in the best time/area tradeoff according to my constraints. If it uses XORs in a final netlist, it will be becuase they are best for that situation.
 

Because XOR gate gives you a half adder. You just add the carry-bit computation to implement a full adder, which can be extended to whatever bit-size you want.
SUM = A xor B xor CIN
COUT = A.B + A.CIN + B.CIN
 

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…