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 how many types of ipc mechanism you know?

0 Answers  


What is the need for an infinite loop in embedded systems?

0 Answers  


What is the difference between "set" logic, and "procedural" logic. When would you use each one and why?

0 Answers  


What is the purpose of a watchdog timer?

0 Answers  


Explain me what is spin lock?

0 Answers  


Why embedded system is useful?

0 Answers  


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

0 Answers  


What type of scheduling is there in rtos?

0 Answers  


Explain me can we use printf inside isr?

0 Answers  


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

0 Answers  


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

1 Answers   Qualcomm,


Explain the concept of separation of concerns?

0 Answers  


Categories