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
What are the essential components of embedded system?
Please write a program to show the functionality of power-save super loop?
What is inversion of control? How does that relate to dependency injection?
Tell me can a variable be both const and volatile?
Tell me why cannot arrays be passed by values to functions?
Explain what are the uses of the keyword static?
How do you reduce interrupt latency?
Tell me whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
How do you react to people criticizing your code/documents?
What's the difference between asynchrony and concurrency?
How do the mvp, mvc, and mvvm patterns relate?
What are some examples of anti-patterns?
Explain what is meant by a sandbox, why you would use one, and identify examples of sandboxes in the wild.
What is the function of simple thread poll in embedded system?
Can you please explain the difference between mutexes vs semaphores?