Design a circuit for A + abs(B) = C, where A and B are 4
bits wide and 2?s complement representation
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 |
Tell me why do we need virtual device drivers when we have physical device drivers?
What trade offs do you have for resource contention?
How does combination of functions reduce memory requirements in embedded systems?
How do you identify hardware errors?
Tell me why is it better to use multi-threading polling then single threading model?
What is the function of watchdog timer in embedded system?
What happens when recursion functions are declared inline?
What is the difference between hard real-time and soft real-time os?
What is something substantive that you've done to improve as a developer in your career?
What are the different types of customizations that is used with the “volatile” keyword?
What are the differences between mocks and stubs/fakes and where you might use them.
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?