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
Explain the difference between "set" logic, and "procedural" logic.
Explain what are the essential components of embedded system?
Tell me can you have constant volatile variables?
Left to your own devices, what would you create?
Describe to me some bad code you've read or inherited lately.
What kinds of problems can you hit with locking model? And a lockless model?
Can you have constant volatile variables?
As you know a vast majority of high performance embedded systems today use risc architecture why?
What are the most common errors you've found in embedded systems and how have you resolved them?
Tell me how does the interrupts handle by using the threads?
What is the volatile keyword used for?
Explain what is the need for an infinite loop in embedded systems?
Suppose you buy some rtos, what are the features you look for in?
Tell me what is microcontroller?
What is the difference between locking and lockless (optimistic and pessimistic) concurrency models?