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



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

Answer / 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

More Embedded Systems AllOther Interview Questions

Tell me why do we need virtual device drivers when we have physical device drivers?

0 Answers  


What trade offs do you have for resource contention?

0 Answers  


How does combination of functions reduce memory requirements in embedded systems?

0 Answers  


How do you identify hardware errors?

0 Answers  


Tell me why is it better to use multi-threading polling then single threading model?

0 Answers  


What is the function of watchdog timer in embedded system?

0 Answers  


What happens when recursion functions are declared inline?

0 Answers  


What is the difference between hard real-time and soft real-time os?

0 Answers  


What is something substantive that you've done to improve as a developer in your career?

0 Answers  


What are the different types of customizations that is used with the “volatile” keyword?

0 Answers  


What are the differences between mocks and stubs/fakes and where you might use them.

0 Answers  


You have just been put in charge of a legacy code project with maintainability problems. What kind of things would you look to improve to get the project on a stable footing?

0 Answers  


Categories