imbichie
Full Member level 6
- Joined
- Jul 30, 2010
- Messages
- 381
- Helped
- 55
- Reputation
- 110
- Reaction score
- 54
- Trophy points
- 1,308
- Activity points
- 3,580
Hi All,
Is there any logic which can replace the ADDER and SUBSTRACTOR from our design.
For example if there is a equation,
A = B + 97
C = D - 128
(assume A, B, C, D are in 8 bit)
Here one of the Element in the equation is a Constant.
So is there any logic to replace the ADDER and SUBSTRACTOR in this equation by using any bit Shifting method or something...
Or is there any logic so I can reduce the number of bit using for add/sub.
for example here C = D - 128
So for d'128 the LSB 7 bits are 0, so i can copy the LSB of D to C and i can use only a single bit adder/substractor.
Is there any logic which can replace the ADDER and SUBSTRACTOR from our design.
For example if there is a equation,
A = B + 97
C = D - 128
(assume A, B, C, D are in 8 bit)
Here one of the Element in the equation is a Constant.
So is there any logic to replace the ADDER and SUBSTRACTOR in this equation by using any bit Shifting method or something...
Or is there any logic so I can reduce the number of bit using for add/sub.
for example here C = D - 128
So for d'128 the LSB 7 bits are 0, so i can copy the LSB of D to C and i can use only a single bit adder/substractor.
Last edited: