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
How does the interrupt architecture works?
Explain the characteristics of embedded system?
Explain what is interrupt latency? How can you reduce it?
What is inversion of control? How does that relate to dependency injection?
What is the last programming book you read?
Do you know what is virtual memory?
What happens when recursion functions are declared inline?
Explain some of the commonly found errors in embedded systems?
How do you learn about the latest technology trends?
What is the function of dma controlled in embedded system?
Do you know what is the function of watchdog timer in embedded system?
Tell me what is interrupt latency? How can you reduce it?
Tell me what is the need for an infinite loop in embedded systems?
What is an embedded system and why it is used?
Give an example of troubleshooting on embedded targets. Explain the process step-by-step.