Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Replace the ADDER and SUBSTRACTOR

Status
Not open for further replies.

imbichie

Full Member level 6
Full Member level 6
Joined
Jul 30, 2010
Messages
381
Helped
55
Reputation
110
Reaction score
54
Trophy points
1,308
Location
Cochin/ Kerala/ India or Bangalore/ Karnataka/ Ind
sites.google.com
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.
 
Last edited:

The synthesis tool should pick up the D-128 as having fewer bits for the subtract operation. 97 is just a constant, so one argument will be constant. I don't see any other optimization there.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top