This topic is useful for KTU Regulation 2019 1. EET206 Digital Electronics ( ELECTRICAL AND ELECTRONICS ENGINEERING) 2. CST203 Logic System Design ( COMPUTER SCIENCE ENGINEERING) 3. ECT203 Logic Circuit Design (ELECTRONICS AND COMMUNICATION ENGINEERING) 4. EBT205 Logic Circuit and Design (BIOMEDICAL ENGINEERING) 5. ITT203 Logic System Design (INFORMATION TECHNOLOGY) 6. ECT203 Logic Circuit Design (APPLIED ELECTRONICS ENGINEERING) KTU Regulation 2015 1. EE204 Digital Electronics and Logic Design (ELECTRICAL AND ELECTRONICS ENGINEERING) 2. CS203 Switching Theory and Logic Design (COMPUTER SCIENCE ENGINEERING) 3. EC207 Logic Circuit Design (ELECTRONICS AND COMMUNICATION ENGINEERING) 4. EC207 Logic Circuit Design (APPLIED ELECTRONICS ENGINEERING AND INSTRUMENTATION) 5. IC207 Design of Logic Circuit (BIOMEDICAL ENGINEERING) FOR FULL CLASSES : https://youtube.com/playlist?list=PL2UV2EJdMQmgLuA8dwLY7-4DsbNQTsUOg #digitalelectronics#ktu#eee#electrical#cseFOR FULL CLASSES : https://youtube.com/playlist?list=PL2UV2EJdMQmgLuA8dwLY7-4DsbNQTsUOg #digitalelectronics#ktu#binary#addition
Hello students, today we are going to discuss about Binary addition.
Binary addition and Binary subtraction is a part of digital electronics.
In the previous classes, we discussed about number conversion techniques.
Today we are going to discuss about Binary addition and Binary subtraction based problems.
Before going to Binary addition, there are some rules.
There are some rules in addition and subtraction.
First rule is 0 plus 0.
What is 0 plus 0? It is 0.
Next is 0 plus 1.
What is 0 plus 1? It is 1.
Next is 1 plus 0.
What is 1 plus 0? It is 1.
We know that very well.
Next is 1 plus 1.
These are the four rules in addition.
Normally we write 1 plus 1 as 2.
But how do we represent 2 in binary?
We represent 2 as 1 and 0.
How do we represent 2 in binary?
We represent 2 as 1 and 0.
We know that 1 plus 1 is 2.
But in binary addition, we do not write 1 plus 1 as 2.
Instead, we write 0 with a carry 1.
What does this mean?
It is a carry.
We write 0 with a carry 1.
Additionally, we can say 1 plus 1 plus 1.
Generally, what is 1 plus 1 plus 1?
It is 3.
We know that.
How do we represent 3 in binary?
We can write 0, 1, 1.
We know that 0, 1, 1 is 3.
How do we represent 3?
We can write 1, 1.
1 plus 1 plus 1 is 1 with a carry 1.
It is a carry.
1 with a carry 1 is 1 plus 1 plus 1.
There are four addition rules.
0 plus 0 is 0.
0 plus 1 is 1.
What is 1 plus 0?
It is 1.
In the case of 1 plus 1, we do not write 2.
Instead, we write 0 with a carry 1.
How do we get it?
1 plus 1 is 2.
The binary representation of 2 is 1, 0.
This is the LSB.
We write the LSB portion first.
1 is a carry.
1 plus 1 plus 1 is 3.
The binary representation of 3 is 0, 1, 1.
The LSB portion is 1.
The carry portion is 1.
Let us go to the problems.
The first question is 1010 plus 1001.
What is 0 plus 0?
It is 0.
What is 0 plus 1?
It is 1.
What is 1 plus 0?
It is 1.
What is 1 plus 1?
It is 0 with a carry 1.
We have studied this.
We have to write 1 plus 1 plus 1.
It is 1 with a carry 1.
This is also a carry.
Let us see this question.
What is 0 plus 1?
It is 1.
What is 1 plus 0?
It is 1.
What is 0 plus 0?
It is 0.
What is 1 plus 1?
It is 0 with a carry 1.
Did you understand?
Let us check if the binary addition is correct.
What is the decimal equivalent of 1010?
What is 8 plus 2?
It is 10.
What is 1001?
It is 8 plus 19.
What is the answer in decimal?
It is 19.
Let us check if we get 19 as our answer.
Let us give the position of each one.
1, 2, 4, 8, 16
This position is 16.
Did you understand how it comes?
2 to the power 0, 2 to the power 1, 2 to the power 2, 2 to the power 3, 2 to the power 4, 2 to the power 5.
This is how we check it.
There is a value for 16, 2 and 1.
16 plus 2 plus 1.
16 plus 2 is 18.
18 plus 1 is 19.
We got the answer.
I hope you understood the first question.
1010 plus 1001 is 1.
It comes in terms of 5 bits.
We got the answer in terms of 5 bits.
We checked if it is correct.
Let us check the next question.
Our second question.
110 plus 101.
What is 0 plus 1?
It is 1.
1 plus 0 is also 1.
1 plus 1 is 0.
So, it is 1.
What is 110?
It is 6.
101 is 5.
What is 6 plus 5?
It is 11.
We got the answer in terms of 11.
This is 2.
This is 1.
This is 8.
8 plus 2 is 10 plus 1 is 11.
Did you get it?
We got the correct answer.
Did you understand?
Our next question.
100110 plus 110101.
Let us check.
What is 0 plus 1?
It is 1.
1 plus 0 is 1.
1 plus 1 is 0 with a carry over 1.
What is 1 plus 0?
It is 1.
1 plus 0 is 1.
What is 0 plus 1?
It is 1.
What is 1 plus 1?
It is 0 with a carry 1.
We did not have the next term.
So, we wrote it down.
Let us check the binary subtraction.
There are 4 rules for it.
What is 0 minus 0?
What is 0?
It is 0 minus 1.
0 minus 1 is 1 with a borrow 1.
0 minus 1 is equal to 1 with a borrow 1.
What is 1 minus 0?
It is 1.
What is 1 minus 1?
It is 0.
There are 4 rules for it.
What is 0 minus 0?
It is 0.
0 minus 1 is 1 with a borrow 1.
What is 1 minus 0?
It is 1.
What is 1 minus 1?
It is 0.
Let us check the problems.
First question.
What is 1, 0, 0, minus 0, 1, 0?
According to our rule, what is 0 minus 0?
0 minus 1 is 1 with a borrow of 1.
Next, what is 1 minus 0?
It is 1.
What is 1 minus 1?
It is 0.
Keep it aside.
Write down 0 minus 0.
What is 0?
Is 0 minus 1 possible?
No.
Then, we subtract 1 from 1.
Then, 1 becomes 0.
It goes from here to here.
It becomes 1.
What is 1, 0 in binary?
It is 2.
What is 2 minus 1?
It is 1.
This is based on that concept.
Next, what is 0 minus 0?
It is 0.
What is 0 minus 0?
It is 0.
What is 1, 0, 0, minus 0, 1, 0?
It is 0, 1, 0.
Decimal equivalent of 0, 1, 0 is 2.
Decimal equivalent of 1, 0, 0 is 4.
Decimal equivalent of 0, 1, 0 is 2.
4 minus 2 is 2.
We got 2.
The method is correct.
Let us check the next question.
The second question is,
What is 1, 0, 1, 0, minus 0, 1, 1, 1?
Is 0 minus 1 possible?
No.
Then, we subtract 1 from 1.
Then, 1 becomes 0.
It goes from here to here.
It becomes 1, 0.
1, 0 is 2.
What is 1 minus 2?
It is 1.
Next, what is 0 minus 1?
Is it possible?
No.
It goes from here to here.
It is 0.
It goes from here to here.
What is 1, 1?
It becomes 0.
What is 1, 1?
It becomes 1, 0.
It is 2.
Then, 1 goes from here to here.
It becomes 1 again.
From 2, 1 goes from here to here.
It becomes 2.
It is not 10.
It is 2.
1, 0 is binary.
2 minus 1 is 1.
Again, what is 1 minus 1?
It is 0.
What is 0 minus 0?
It is 0.
I will say it again.
Our question was to subtract 0, 1, 1, 1 from 1, 0, 1, 0.
Is 0 minus 1 possible here?
No.
Then, we borrow 1 from here.
This was 1 already.
When 1 goes from here to here, it becomes 0.
When 1 goes from here to here, it becomes 1, 0.
The decimal equivalent of 1, 0 is 2.
When 1 goes from 2, it becomes 1.
Is 0 minus 1 possible?
No.
Then, it goes here.
It is 0.
It goes here again.
Here, it is 1.
When 1 goes from 1 to here, it becomes 0.
Then, it becomes 2.
It goes from 2 to here again.
Then, it becomes 1.
When 1 becomes 1, it becomes 2.
When 1 goes from 2 to here, it becomes 1.
When 1 minus 1, it becomes 0.
When 0 minus 0, it becomes 0.
Let us check the answer.
The decimal equivalent of 1, 0, 1, 0 is 10.
Similarly, 0, 1, 1, 1 is 7.
What is 10 minus 7?
It is 3.
Let us check whether we get 3.
What is 0, 0, 1, 1?
It is 1, 2.
2 plus 1 is 3.
We got it.
The answer is correct.
Let us check the next question.
The third question is 1, 0, 0, minus 0, 0, 1.
0 minus 1 is not possible.
It will be borrowed.
It will be taken from here.
This will become 0.
This is 2.
When 1 goes from 2, it becomes 1.
This will become 2.
It is 1, 0.
What is 2 minus 1?
It is 1.
What is 1 minus 0?
It is 1.
What is 0 minus 0?
It is 0.
What is 1, 0, 0?
It is 4.
What is 0, 0, 1?
It is 1.
What is 4 minus 1?
It is 3.
What is the answer?
It is 3.
I hope you understood this question.
There are some rules based on binary addition and subtraction.
You have to understand these rules and solve the problem.
I hope you understood these two cases, binary addition and binary subtraction.
See you in the next section.
Thank you.