Why is a 30 min video on youtube better than many professors in Universities. I'm pretty slow, but after watching this I can finally understand the logic behind subtraction in CPUs.
@fadyfarouk86352 жыл бұрын
I love how direct and simple this video is. It has helped me a lot, thanks a million!
@Ankit-yw7cq7 жыл бұрын
I need a teacher like you I was so confused in this topic
@hichamjv42134 жыл бұрын
hahaha yeah man teachers just dont know how to explaine this lesson
@j_mokusei4 жыл бұрын
@@hichamjv4213 My professor just discuss the lesson expecting we already know shit and it ends up confusing us big time.
@h.cazador6 жыл бұрын
You're an amazing teacher! Such a thorough and detailed lesson. Thank you so much :)
@katyblue97515 жыл бұрын
you make everything so simple and easy !!!! , I love this tutorial !
@virtualmarketspace5463 жыл бұрын
Hi Katy blue contact me in email address oluochbonfas68@gmail.com
@shanongiles98184 ай бұрын
Lecture was amazing! Thank you Tom.
@felipejordao1976 жыл бұрын
I finally understood this topic.You answered all my questions.Nice job!!!
@charlinemontial92177 жыл бұрын
When you say, about the 2's, that we have to add one, I would have precised that you add one to the LSB :) (Least significant bit)
@santiagorivera15625 жыл бұрын
Two questions: 1. Why are you able to discard the bit all the way to the left of the result if there is a carry-over at the end of the addition? 2. What happens if you add 9+8? You would get a number higher than the highest number you can represent using this 5-bit system. As a matter of fact, what if you add any a+b that would give you a sum larger than the highest number that can be represented using this 5-bit system in the problem?
@deedewald17072 жыл бұрын
Use a byte (8 bit) for plus and 2's complement negative value. This provides for a larger range ! Word and byte are using computer !
@geardoarfanny5 жыл бұрын
Damn man, you are so smart. You really helped me. Thanks a lot broo 👍👏🔝
@milajoy9453 жыл бұрын
Thank you so very much! So clear and easy to understand 🙏🏻🙏🏻🙏🏻
@laralara66075 жыл бұрын
you made it so simple, I understood more in this video than 15 and so lectures...thanks a lot
@kevinjosephjr7 жыл бұрын
are you a teacher? I hope so, you do a great job at giving instructions, I was struggling learning this from the book, maybe you should write a textbook someday, or maybe a professor at a university somewhere. Thanks for the video, -K
@UrCristiano-x8v4 жыл бұрын
Thanks man you saved my life.
@ruotongli5084 жыл бұрын
I instantly understand all concepts. Thx a lot !
@PhilipMachanick6 жыл бұрын
Something not explained clearly is that these representations only work if you fix the number of bits and pad a positive number to the left to make up the width of the number. Complementing is not usually done by treating the sign bit as separate though it works this way. While it is true that you can subtract by negating and adding, a subtractor is a very simple circuit so most real machines have subtract operations. The real value of 2‘s complement is that addition and subtraction work the same way with positives and negatives, with a very simple overflow check (if exclusive or of the carry in and carry out is 1, you have an overflow). With signed magnitude (“true magnitude”) you need to handle negative numbers differently. 1’s complement has the oddity of 2 ways to represent zero. Flip all the bits of zero and you get a word of all 1s. Minus zero makes no sense mathematically. 2‘s complement only has 1 representation of zero: negate it by flipping the 0s and add 1, and you get back to all zeros.
@gouthamtadali50723 жыл бұрын
Please anyone clarify this for me; 8 = 1000 If we want signed representation 4 bits are not enough. so taking 5 bits +8 = 01000 To represent -8 in 2's form; take 1's of +8 and add 1 to LSB. Is this right? So, 10111+1 = 11000 Isn't this -8 in 2's form?
@preethumarygeorge65264 жыл бұрын
I loved this tutorial...everything was soo clear
@vishnupatil27453 жыл бұрын
Such a good explanation on a topic like this. Great
@y.x34762 жыл бұрын
such a great lecture!! so lucky to find your video!! thank you so much!!
@dogbyte7875 Жыл бұрын
Hey Tom, Thank you much Sir!
@armsvelt41044 жыл бұрын
Very nice video. Well explained, you took your time, worth watching every minute. Quick note: You only have amazon affiliate links to .com amazon, would it be possible to set it up according to the geo location of the user?
@LonleyGuns2 жыл бұрын
There is a part of this video not clear for me (22:25). When we convert 9 into 2's form we get 10111. With 4, the result is 1100. When you sum the numbers, there is another 1 before 4. If 9 -> 10111 (-9), why 4 ->11100 ? I thought that if we want the same bit sizes, we expand with 0, not 1.
@virtualmarketspace5463 жыл бұрын
Well understood thanks 🙏🙏
@sap13n4 жыл бұрын
One thing is still not understood, is there any explanation as to why we discard the sign bits, how will the computer program decide when to keep it and when to discard it?
@WebDevClockWork4 жыл бұрын
You my Brother! are a lifesaver
@jackgisel32115 жыл бұрын
this is a great video, i wish my teachers went as thourghly as you
@kikiweems6 жыл бұрын
Thank you for this video. You made it very easy to understand.
@IrishmanMP6 жыл бұрын
Very well explained, sir. Thank you for making this video!
@tarishisrivastava1927 жыл бұрын
Y are we taking 2's compliment and also adding 1 in the beginning?
@colinpamplin99767 жыл бұрын
I found this video most helpful. Thanks
@hesham40814 жыл бұрын
you are the best ever.
@aerylletajonera1437 жыл бұрын
what is the final answer in the case #3 & #4 in addition of binary? ?
@jerrymahone3355 жыл бұрын
this takes me back to paper tape CNC mills, lathes, and stamping machines. ASCII tape.
@arpanhaldar27517 ай бұрын
It's helpful for me.. thank you...
@amelsparkyu5 жыл бұрын
Thank you so much. This video make me easier to understand the topic ❤
@yahya98894 жыл бұрын
i'm not trying to be racist or anything, but as a CS student who is sick and tired of the indian swarm of videos filling up youtube, this guy knows his shit
@fernandogonazales17976 жыл бұрын
thanks for the video it helps this is confusing stuff and hard to grasp at first.
@R3MIXMODZ5 жыл бұрын
Wow such a great video!
@ahanathakur80967 жыл бұрын
thanks for this videos . They are really helpful for students.
@ahmadabdel91145 жыл бұрын
THANK YOU, THIS WAS VERY HELPFUL
@siddharthachatterjee99597 жыл бұрын
Thanks. So this means -ve no. magnitude -> some operations -> two's complement -> SAME operations -> -ve no. magnitude ?
@brandm51764 жыл бұрын
This is gold!
@tom27wright6 жыл бұрын
Great video! Really helped me understand it, 14:20 was my favourite bit with the summary! Thank you :)
@tmc2005276 жыл бұрын
"My Favorite bit." No pun intended. Thanks, Glad it helped.
@tom27wright6 жыл бұрын
eTech Tom haha, I get it! It wasn't intended sadly :)
@itz_Raed6 жыл бұрын
You are my savior! THANKS!
@presentlymine6 жыл бұрын
Thankyou for this video. You explained very well. :)
@sap13n4 жыл бұрын
21:12, what will be the sign bit here after we get 5?
@Paddington20004 жыл бұрын
Very helpful, thanks.
@astroctopus95006 жыл бұрын
best video to learn this thanks
@gadjkfjal4 жыл бұрын
thank you very much
@rahulgoyal32875 жыл бұрын
You rock man
@palaksharma48204 жыл бұрын
Very helpful video
@tmc2005274 жыл бұрын
Glad it was helpful!
@loganbala10294 жыл бұрын
Thank you so much pls upload more videos
@yurinakamura38146 жыл бұрын
I think you messed up the adding at 26:03 - 00100 + 11011 + 1 should equal 100000.
@tmc2005276 жыл бұрын
I was not adding the binary numbers. I am converting the binary number 4 which is 00100 to -4 which is 11100 in binary. To take the 2's complement of a binary number change each bit to its opposite and then add a binary 1 to the LSB position on the right. I hope this helped.
@yurinakamura38146 жыл бұрын
Oh, sorry. I was just skimming through the video.
@shwetharaju83815 жыл бұрын
thank you .good explanation
@rkski4 жыл бұрын
Thank you
@yavuzerbas8754 жыл бұрын
Good video
@AnkitSaiyan5 жыл бұрын
Thank you great video but i am not able to add greater numbers e.g., (-35) + (-40)
@ripunjoyk17065 жыл бұрын
thank a lot for this video.
@hxpsungyt43273 жыл бұрын
Hi granpa teacher r u mr morpheus by any chance? If you are your so smart i loved the mukbangs granpa ❤️❤️❤️i love your voicw you dont shout like my teacher
@livewithcomedy33027 жыл бұрын
awesome work
@Intrepidsivi6 жыл бұрын
Excellent sir
@praveenp80416 жыл бұрын
Very good one!
@theanger59305 жыл бұрын
if there is given number in 1st complement to make it in decimal do we just make it directly or we make a complement to it? This was on my test , given number's 1st complement and make it in decimal.can someone explain. thanks
@tmc2005275 жыл бұрын
Convert directly to decimal
@theanger59305 жыл бұрын
@@tmc200527 and what if the number is in 2's complement?
@Turjak_art6 жыл бұрын
nice explenation thank you
@sauravganguly77034 жыл бұрын
Please do it for -9 + (-25) .
@roeeIBC7 жыл бұрын
this was very helpfull.. thanks! :)
@vishant984 жыл бұрын
17:07 how can it be 13, Either it will be 4 bits or 8 bits. If it is 8 bits then your other examples are wrong
@GottaBeLouuu55 жыл бұрын
AMAZING THANK YOU
@rollercoasterwolfboy67955 жыл бұрын
21:58 How do you know that they in the twos complement form. I have a test very soon
@tmc2005275 жыл бұрын
If the sign bit is a 1 it is a negative number and all negative numbers are in 2's complement form.
@kamilayasmine33294 жыл бұрын
God bless you god bless you and god bless you 🙏🙏🙏🙏🙏🙏🙏
@CoburnDel6 жыл бұрын
YOU ARE AWESOME!!!!
@trevorphillips93156 жыл бұрын
Thank you man
@jyothisatish35754 жыл бұрын
Impressed
@noorabunamus21815 жыл бұрын
Thanks a lot 😊
@bringthetruth91546 жыл бұрын
Pretty sure that's an SR latch and not an SR flip-flop
@Ankit-yw7cq7 жыл бұрын
I didn't understand that flip flop part
@KeidyLotus7 жыл бұрын
what he says goes like this, an n-bit register (group of flip flops) has (2^n)-1 as the maximum value because this also includes the value 0. but still, the number of values it can have is 2^n
@vipultyagi84085 жыл бұрын
Yes
@taccaz37316 жыл бұрын
how we add two numbers of 2's complement if one is +ve and another is -ve like -7 and +5 any one have answer plz
@tmc2005276 жыл бұрын
In the 2's complement system only the negative numbers are converted by inverting each binary bit to it's opposite and then adding a 1 bit to the Least significant bit position. So binary +5 is 0101 for a three bit binary number. Notice that the 0 all the way to the left that is the sign bit and signifies a positive number. For this example we will call that the sign bit so we can only count up to +7 for that many bits. Now because we are using the 2's complement system we know that the -7 must be converted into it's 2's complement form. +7 in binary is 0111 so we must convert by inverting each digit to 1000 and then add a binary 1 so it becomes 1001. So the 2's complement of 7 is 1001 with the Most significant bit to the left being the sign bit indicating a negative number now. By definition in the 2' complement system all negative numbers are in the 2's complement form of the positive version. So the 2's complement of + 7 (0111) is -7(1001). If you add using binary addition +5 (0101) and -7(1001) you get 1110. Since -7 was larger than +5 we know we will get a negative result of -2 which is indicated by the sign bit of 1 which indicates a negative number. Since the sum is -2 and all negative numbers will be in 2's complement form we can 2's complement it again to see if it is a 2. So 1110 2's complemented is 0001 plus 1 which is positive 0010 which is +2 . This shows that 1110 is -2 which is the 2's complement of +2 (0010).
@Death_User6666 жыл бұрын
"DR." cooper aint got shit on you thanks!
@aliffazahar87387 жыл бұрын
thank you
@bhupeshverma41477 жыл бұрын
Man you're awesome
@maheshvhatkar90936 жыл бұрын
Thanks sir
@jayantpandit1006 жыл бұрын
u clarified everything except overflow pls explain it if u have time sir
@tmc2005276 жыл бұрын
It depends on the byte size of your system. If you are just dealing with an eight bit binary number and the MSB is the sign bit anything that gets pushed out of the eighth position is just lost and not used. If it is a sixteen bit system the bit that gets pushed out of the eighth bit will go into the first bit position of the second byte and is accounted for.
@PhilipMachanick6 жыл бұрын
If you have a carry in to the sign bit you must have a carry out. If you have one and not the other it is an overflow.
@mahbubahossain13266 жыл бұрын
very nice.
@jayantpandit1006 жыл бұрын
thanks sir
@jatinverma85107 жыл бұрын
What will be the answer of 9(0 1001)+10(0 1010)=??. As according to the video's explanation it should be in negative as sign bit will change. What will we do then?
@hayrikasap59956 жыл бұрын
Jatin Verma answer is 19 because of bigger than 15; it can't calculate with 4 bit calculation. You must to make it with 8 bit.
@adelrabaya77685 жыл бұрын
Thank You :)
@sanojshrestha35335 жыл бұрын
Thanks
@796394316 жыл бұрын
wrong. At 11:20 the bottom isn't -57. it actually adds up to be -7
@796394316 жыл бұрын
its (-64)+32+16+8+1= -7
@796394316 жыл бұрын
-57 would be: 1000111
@sparkforgrow6 жыл бұрын
-57=11000111 -128+64+7
@nickjs57736 жыл бұрын
j chase, isn't that for 2s complement. The sign bit for the true magnitude is just to show if the number is negative.
@palaganieaswar40696 жыл бұрын
Why adding 5 at the 18:50give me ans
@tmc2005276 жыл бұрын
I was showing that the answer 0101 what correct because the equivalent in decimal is +5 . 0101 is the binary representation of positive 5.
@WanAqilah-kt6ns4 жыл бұрын
11:00
@kolbrans72706 жыл бұрын
2^3=8
@deedewald17072 жыл бұрын
Signed values 4 bit 1 0 0 0 -8 0 1 1 1 4+2+1 = 7 Signed 4 bit range -8 to 7 with 2's complement
@sreejabharathan62506 жыл бұрын
Good😊
@gayatrinakar50493 жыл бұрын
3:41
@kalealoralynn6 жыл бұрын
I need you to be my CS teacher
@whoisme6786 жыл бұрын
Boolean logic ?
@tmc2005276 жыл бұрын
This is the addition and subtraction of binary numbers. Boolean Algebra is a way to express the function of logic gates in the form of expressions. Here is the link to my Digital Electronics playlist kzbin.info/aero/PLrLOfmf1dB-iQsUmui76oLRXqnFd9xVgQ