Binary Addition/Subtraction Flashcards

1
Q

What are the boolean algebraic formula for the output of a 2-input half adder?

A

Carry = A . B

Sum = A XOR B

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the difference between a half adder and a full adder?

A

A full adder has a Carry In in addition.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the boolean algeberaic formulae for the output of a full adder?

A

Sum = A XOR B XOR CIN

CarryOUT = A.B + A.CIN + B.CIN

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Draw the symbolic box diagram for a 2 input Full Adder showing all inputs and outputs

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Draw the box diagram showing how to connect full adders to add together two 4-bit numbers

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you calculate the propagation delay for a ripple carry adder?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Draw the truth table for a full adder, mentioning carry status at each line.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do we subtract two numbers using full adders?

A

A + (-B)

We take the 2’s complement of B and add with A

We wary of overflow and underflow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do we detect overflow when dealing with subtraction/ 2’s complement?

A

Overflow if the carry out is different to the carry in

Overflow = CIN XOR COUT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Draw a 4-bit subtracter

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Using XOR gates and a bitinvert signal show how you can design one circuit that can add or subtract two 4-bit numbers.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly