Andsoifwewanttobuildah, youknow, a circuitthatdoesthisforus, Really?
There's onlyit's actually a loteasier, I think.
Thenthenregulararithmetic, becauseyouonlyneedtoknow a coupleoffactsonthisiseverythingyouneedtoknow.
Andso, ifyoucouldbuild a circuitthatdoesallofthis, um, thenyoucanadd a singlecolumnbecauseyou'vegotthe A and B, whichisthejustthefirstnumberinthesecondnumber.
Soifwelookjustatthecaseherewherewe'vegottwonumbersthatwe'readding, sowehaven't carriedsomethinginfrom a previouscolumnandwelookjustatthenumberthatwe'reputtingdownthebottomhere, um, thisactuallylooks a lotlikeanexclusiveorright, Becauseif a or B is a one, thenthislastbithereis a one.
If a war P is a one, butnotboth.
Sowecanactuallystarttobuildthisright?
Wecouldhaveexclusiveorgatehere.
Thisishowyoudrawanexclusiveorandwehaveour A and R B cominginandcomingoutisgonnabethisrighthere.
Now, whataboutthesecondbit?
Thecarrybithere?
Well, thisisalsoprettysimple, becauseit's alwaysgonnabezeroandless A and B areone, andsoThat's justanandgate.
So I couldhaveanandgatehere, handgateandjusttakethissame A and B inputthatwehadoverhere.
Itgets a littlebitmorecomplicatednowifwehave a carrycominginfrom a previouscolumn, becauseit's notenoughtojustbeabletoaddtwodigitsbecauseassoonaswecouldtothisoneplusone, Thenwehavetocarry a onetothenextcolumn.
Andinthenextcolumn, wehavetodealwiththreenumbers.
So, um, let's justgonnaaddthiscasewherewehavetocarrythatmightbe a one.
ItgoesinasaninputtothenexteditionandsothatKerrycomesintoherealongwith a newwayand a newbie, whichisgonnabethe A and B forthiscolumnforthesecondcolumn, andthenyouhave a somecomingout, whichwouldbethenumberdownhere.
Andthenyouhavethatcarrygoingoverwhichgoesintothenextcolumn, plusthenew A.
Um, wecanusesomesomeprettysimplecomponentsbecausewehave X orGatesandthesethesechipshereactuallyimplement x orgates.
Andhereisthedatasheetforthem.
Andsoyoucanseefromthisdatashoot.
Basically, eachofthesechipshasfour x orgatesbuiltontoit.
Andso, youknow, tobuild a fourbitatherlike I'vedrawnouthere, youneed 12345678 X orgates.
Sowehavetwoofthesechips.
Eachonehasfour.
Um, wealsoneedsomeandgates.
Andsothere's anotherchipthathasendgates.
Weneedeightofthose.
Soeachofthesechipshasfour.
Andgates, asyoucanseeonthedatasheets.
Sowegotthose.
Wealsoneedsomeorgateshere.
Wejustneedfourofthose.
Sothere's anotherchipthathasfourorgates.
Sowegotthat, um, andthen a coupleotherthingsthatwethatweneedtoweneed, ah, breadboardtobuildthison.
Sowe'regonnabuildusonthisbreadboardhere.
Ah, and, ah, fortheinputs.
I havetheselittlelittledipswitches, soeachofthesehasfourlittleswitchesonit, andthatwillletussetthefour.
Youhave a zero a one, a twoand a threefortheonenumberthatwewanttoadd.
Andthenanotheroneforthe B 012 andthreefortheothernumber.
Itwon't addtogether, andthenfinally, Ah, a coupleofthingsweneedaresomekindofoutputshere.
Sowehaveouroursumscomingouthere.
Andso I justhavesimilarledisthat'lllightupforeachofthesedigitson.
And I havefiveofthembecausethere's fouroutputsplusthefinalcarry, whichis, youknow, becauseifyou'readdingtofourbitnumbers, youmightendupwith a fivebidoutputsothatlastCarriewillwillhaveanotherledforthat.
Andthen I'm justgonnapowerwith a littlebitof, ah, littleUSB.
Um, thisisjust a standardUSBchargerthat I'vekindofhadtheendoffofandjusttakingtheredandblackwiresoutofthere, andthat'llgiveusfivevolts.
So I'm gonnagoaheadandstartgettingthisthingbuiltonthisonthislittlebreadboardhere, and I'lljuststartbystickingthisstuffontotheontothebreadboard.