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 some alternate ways to store data other than a relational database? Why would you do that, and what are the trade-offs?
Tell me can structures be passed to the functions by value?
What is spin lock?
What is equ?
Which is better a char, short or int type for optimization?
What is the task of the pre-processor?
What is yagni? Is this list of questions an example?
What are real-time embedded systems?
What is risc architecture?
What's the difference between locking and lockless (optimistic and pessimistic) concurrency models?
Tell me how are macros different from inline functions?
You have two computers, and you want to get data from one to the other. How could you do it?
Tell me what is the purpose of using critical sections?
Why are interfaces important?
Describe a software development life cycle that you've managed.