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

Explain the difference between "set" logic, and "procedural" logic.

827


Explain what are the essential components of embedded system?

769


Tell me can you have constant volatile variables?

846


Left to your own devices, what would you create?

722


Describe to me some bad code you've read or inherited lately.

767


What kinds of problems can you hit with locking model? And a lockless model?

774


Can you have constant volatile variables?

741


As you know a vast majority of high performance embedded systems today use risc architecture why?

858


What are the most common errors you've found in embedded systems and how have you resolved them?

806


Tell me how does the interrupts handle by using the threads?

783


What is the volatile keyword used for?

893


Explain what is the need for an infinite loop in embedded systems?

852


Suppose you buy some rtos, what are the features you look for in?

770


Tell me what is microcontroller?

800


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

822