Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Design a circuit for A + abs(B) = C, where A and B are 4
bits wide and 2?s complement representation

Answer Posted / siva

make a 4-bit adder/subtractor ( which can perform A+B and A-
B depending on value of bit say SUB..ie if SUB is 1 it will
perform A+B ) now give A and B as inputs and make MSB of B
as SUB bit.
suppose A=0110(6),B=1110(-2);so result will be A-B ie.,
A+|B|=6-(-2)=8

Is This Answer Correct ?    12 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?

848


Tell me can structures be passed to the functions by value?

845


What is spin lock?

852


What is equ?

897


Which is better a char, short or int type for optimization?

887


What is the task of the pre-processor?

927


What is yagni? Is this list of questions an example?

806


What are real-time embedded systems?

844


What is risc architecture?

813


What's the difference between locking and lockless (optimistic and pessimistic) concurrency models?

966


Tell me how are macros different from inline functions?

930


You have two computers, and you want to get data from one to the other. How could you do it?

838


Tell me what is the purpose of using critical sections?

852


Why are interfaces important?

899


Describe a software development life cycle that you've managed.

838