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 how many types of ipc mechanism you know?
What is the need for an infinite loop in embedded systems?
What is the difference between "set" logic, and "procedural" logic. When would you use each one and why?
What is the purpose of a watchdog timer?
Explain me what is spin lock?
Why embedded system is useful?
What are some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?
What type of scheduling is there in rtos?
Explain me can we use printf inside isr?
Which is better a char, short or int type for optimization?
Design a circuit for A + abs(B) = C, where A and B are 4 bits wide and 2?s complement representation
Explain the concept of separation of concerns?