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
Tell me what is the function of dma controlled in embedded system?
what are buses used for communication in embedded system?
What is the purpose of a watchdog timer?
What is the difference between hardware design and software design?
How to implement a fourth order butter worth lp filter at 1 khz if sampling freuency is 8 khz?
Are you familiar with design patterns? What design software have you used and in what situations?
Tell me what is null pointer and what is its use?
Explain what happens when recursion functions are declared inline?
How can you reduce interrupt latency?
What's your experience with technical documentation?
Can you name any code testing tools?
How are local and global variables are allocated by compiler.
Tell me what is the purpose of using critical sections?
Explain interrupt latency and how can we decrease it?
What are the different types of embedded systems?