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
Describe to me some bad code you've read or inherited lately.
Tell me how does input/output bus functions?
Please explain can structures be passed to the functions by value?
What is meant by a sandbox, why you would use one.
What is a 'const' variable?
How can you reduce memory requirements in embedded systems?
What are the advantages and disadvantages of separation of concerns?
Explain the concept of separation of concerns and it's pros and cons.
Why are interfaces important?
Why do we need a infinite loop in embedded systems development? What are the different ways by which you can code in a infinite loop?
How are local and global variables are allocated by compiler.
What is the difference between testing and verification?
What software configuration management tools are you familiar working with?
Why does pre-emptive multi-threading used to solve the central controller problem?
Accessing fixed memory locations