how to build a non-signed subtractor efficiently

Status
Not open for further replies.

JesseKing

Advanced Member level 4
Joined
Nov 12, 2004
Messages
100
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,298
Activity points
838
subtract a positive number from another, and use a sign extension format to represent the result, the msb is the sign bit.

For example
0011-0010=0001
0010-0011=1001

Can this subtractor be implemented efficiently as a complementry subtractor?

Regards!
 


assuming the inputs are 4 bit unsigned
you need five bit represent signed output.
 

whizkid said:
assuming the inputs are 4 bit unsigned
you need five bit represent signed output.

i know, the function is not hard to understand and it's easy just to build it with a comparator and a traditional complementary adder.

what I really want to know is how to implement it efficiently.

any advice?
 

hi,
the best way is to use design ware from syn@psys
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…