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

How does the interrupt architecture works?

496


Explain the characteristics of embedded system?

445


Explain what is interrupt latency? How can you reduce it?

445


What is inversion of control? How does that relate to dependency injection?

442


What is the last programming book you read?

426






Do you know what is virtual memory?

413


What happens when recursion functions are declared inline?

445


Explain some of the commonly found errors in embedded systems?

443


How do you learn about the latest technology trends?

423


What is the function of dma controlled in embedded system?

470


Do you know what is the function of watchdog timer in embedded system?

421


Tell me what is interrupt latency? How can you reduce it?

434


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

430


What is an embedded system and why it is used?

429


Give an example of troubleshooting on embedded targets. Explain the process step-by-step.

773