Building the ALU

  Рет қаралды 278,845

Ben Eater

Ben Eater

Күн бұрын

Пікірлер: 216
@vincentmetallive
@vincentmetallive 6 жыл бұрын
Definitely the Bob Ross of electronics :D love these series!
@alxcuisine9575
@alxcuisine9575 5 жыл бұрын
no, Bob Ross has technique but zero talent.
@BichaelStevens
@BichaelStevens 5 жыл бұрын
there are no bugs, just happy little interferences
@Templarfreak
@Templarfreak 4 жыл бұрын
It really does feel like that, he makes it seem so simple and easy to understand and is always reassuring that things can kind of depend on how you want to do them and why you want to do them that way :D
@McCatshot
@McCatshot 3 жыл бұрын
But not the Bob Pease
@El-Burrito
@El-Burrito 2 жыл бұрын
OMG that is the perfect description haha
@coolbionicle
@coolbionicle 8 жыл бұрын
look at the bright side, its much better than a puff of smoke comming up right when you power it up.
@bobdagamer640
@bobdagamer640 4 жыл бұрын
100 like
@rapidcoding2300
@rapidcoding2300 3 жыл бұрын
145 like
@frankdomburg3971
@frankdomburg3971 Жыл бұрын
65536 like and poof!
@hi_speed_chase
@hi_speed_chase 3 жыл бұрын
The last few videos have been SO helpful and such a good combination of theory on paper and applying in practice. Know this video is old but thank you so much for doing these!
@penniesshillings
@penniesshillings 5 жыл бұрын
Just love it how the wires bent themselves to your will when you pick them up... :-) Great work!
@shadowxelnaga
@shadowxelnaga 8 жыл бұрын
That's some impressive breadboarding!
@ducamvinh4462
@ducamvinh4462 4 жыл бұрын
just realized 'ben eater' is 'be neater' sorry if that's a known fact
@FerrybigGaming
@FerrybigGaming 3 жыл бұрын
That explain why his circuits are so neat
@ropersonline
@ropersonline 3 жыл бұрын
bene á terre
@charlesess9587
@charlesess9587 Жыл бұрын
As so many others have rightly commented, this is a great, great series - just what I was looking for in trying to develop an understanding down at the level of logic gates and transistors in the design and construction of a computer. I've already learned an enormous amount, both on theoretical and very material / practical levels, and am very grateful indeed. In this video, however, I tripped up at one place - resulting in what turned out to be two errors in wiring that resulted in arithmetic errors in some, but not all of the numbers I tried out when testing the A(L)U for the first time. On the one hand, as we saw in the next video on troubleshooting the ALU, this is a good thing - as we thereby are forced to go back through to troubleshoot, and thereby become all the more familiar with the details of the circuitry, etc. And as some have commented, it is one of the most satisfying experiences to finally do so successfully. Again, I've learned a great deal and am very grateful for my new understandings and modest skills, and the feeling they give of having better foundations and abilities for proceeding onto the next steps. That said: I ended up spending far more hours on the troubleshooting than I would have liked (however great the rewards) and would like to make a modest comment for folk like me who are entirely new to this and might get thrown off in the same way I did. At 8.23 or so, bits 8-5 from the 74LS245 buffer are fairly clearly connected into the proper inputs of the left XOR chip (74LS86). But then the video skips ahead here: we see bits 4 and 3 - apparently, as it is somewhat difficult to follow in this segment as it is speeded up and the lighting makes it difficult to see where the - already wired into pins 12 (4A input) and 9 (3A) on the right XOR chip; the last two bits are then shown as they are wired into pins 1 (1A) and 4 (2A). Both because it was difficult to see here - and, no doubt, because I have dyslexia and can easily get tripped up with such visuals - this is where I ended up making my mistake: miswiring bit 4 (should go to pin 9 on the LS245) and then bit 2 (should go to pin 1). Once the errors were corrected - i.e., the A(L)U functioned perfectly. Perhaps they teach one these things in engineering school - but for newbies like me, what turned out to be essential was (1) going back through the circuitry and chip diagrams in order to build simple tables of what pin needed to be connected to what - i.e., rather than relying solely on the video to show the right way. (2) I then initially tried to check the connections by tracing the physical wires - but because the wiring is so interwoven (and, again, my dyslexia doesn't help) I had to give this up. A good thing as I realized I could just check the connections using a continuity tester. Sorry for such a long post - but again, for newbies like me, these bits (pun intended) might help avoid errors that can take a great deal of time to sort out.
@scythascytha2849
@scythascytha2849 6 ай бұрын
thanks for the heads up! This one was a bit trickier with the wiring for sure.
@adeddy8138
@adeddy8138 3 жыл бұрын
your teaching is basically God level practical with bit of theory I can complete your whole playlist within 3 days without fatigue and thats an open challenge
@hyqhyp
@hyqhyp 7 жыл бұрын
I am going to recommend your videos for the more motivated kids taking my digital logic class. The closest thing to these videos is the "Nand to Tetris" series, and that is almost and apple compared to this orange.
@raresnetboy
@raresnetboy 4 жыл бұрын
It's 2020 and these videos are still awesome
@kvadratbitter
@kvadratbitter 3 жыл бұрын
Wrong. It’s 2021 and the se videos are still awesome! ;)
@certainlynotthebestpianist5638
@certainlynotthebestpianist5638 Жыл бұрын
@@kvadratbitter Wrong again! It's 2022 (just a couple of days from 2023, actually) and the videos are still absolutely amazing!
@SunLake-pr1di
@SunLake-pr1di 9 ай бұрын
Wrong it's still so amazing in Nov 2023
@RomainHubert-og9io
@RomainHubert-og9io 8 ай бұрын
​@@SunLake-pr1di2024 now
@ItsAstreo
@ItsAstreo 6 ай бұрын
⁠​⁠​⁠​⁠​⁠​⁠​⁠@@SunLake-pr1diWrong! It’s 2024 and these videos are still awesome.
@iancraftsandmines6266
@iancraftsandmines6266 8 жыл бұрын
For the clock signal being in the way, I would have just added another bus line just for the clock. Smaller connection, less wiring.
@usern4m32
@usern4m32 5 жыл бұрын
Hi, I have a question, i built a sort of 8 bits CPU in a software named Logisim, But I wonder if we can make all logical operations with This CPU witch just has an adder, a substracter and a comparator in its ALU. How to know it ? My second question is how to Add for exemple 220 and 140 ? Cause it makes 360 and a 8 bits CPU can't display numbers higher than 255. I ask that question cause i wonder why an Arduino which is in 8 bits can Add High numbers. By the same way, how to had 2 number higher than 255 ? Thanks a lot for any answer, and sorry for my english.
@usern4m32
@usern4m32 5 жыл бұрын
@Sydney Bean Hi ! indeed, i used a carry bit, but from it, i dont know how to make binary programs to add high numbers, i know doing nice things with it, but not that special thing (the code part seems too hard for me if my "homemade CPU" is able to do what i want it to do. I am thinking about begining assembly codes for a Z80. Maybe it will give me ideas...thx for your informations ;)
@connorking8503
@connorking8503 5 жыл бұрын
But then you can't put the bus on a Cat 5 cable.
@chomo54andbabyaisha97
@chomo54andbabyaisha97 3 жыл бұрын
@@usern4m32 If you have an adder, then you should also have a carry bit flag, and then it is quite easy to add numbers greater than 255. However, if you also want to express negative numbers, you need to define first the word length. So, you can choose a bye for example, then you will be able to add two numbers up to a maximum of 127, because that is the highed positive number in one byte. Then you can have double bytes, and here you have byte 0 Byte 1 0 1 2 3 4 5 6 7 | 8 9 10 11 12 13 14 1+2+4+8+16+32+64+128+256+512+1025+2048+4096+8192+16384 (2 bytes is 16 bits, -1 1 for the negation flag is 15 bits) as a maximum in plus And the way you do it is basically like any other addition in decimal. When you
@Scotty-vs4lf
@Scotty-vs4lf 2 жыл бұрын
@@usern4m32 a subtractor and comparator can be made with an adder btw. to subtract (with a 4 bit adder for simplicity) keep one input the same (9 is still 1001) but invert the second and add 1 (2 starts out as 0010 but becomes 1110) and do the addition. u would end up with 7 (9 - 2). To compare with an adder, subtract the 2 numbers and use logic gates to check the output (0 means a == b, positive number (msb is 0) means a > b, and negative number (msb is 1) means b > a)
@marklandgraf7667
@marklandgraf7667 3 жыл бұрын
4:13 'While we're at it I'll also neaten up this power connection between these boards...' Moral: Be Neater
@Tomsta17
@Tomsta17 4 жыл бұрын
I am loving your series! Thank you so much! But i have a question that I do not see answered in the comments. In a previous video, you showed us that you added the tri-state octal buffer to the registers so that you can visualize the state of the registers with LED's. Without the buffer, the outputs would only be visible when enable is set (And the data is on the buffer). So it was clear that the buffers were added to aid in this educational/hobby scenario. But if my understanding is correct, you would also need them if you wanted to do what you have done here. i.e. if you did not have the buffers in place on the registers, then the ALU would only see the register values when enable was set on the registers. And of course, you should not have enable set on both buffers as they would clobber each others data lines on the buffer. So if my understanding is correct, then you NEED those octal tri-state buffers on the registers, not only for observation/education purposes, but as a requirement for feeding the registers output into the ALU without affecting the buffer. Is my understanding correct here? And if my understanding here is correct, then what is the point of the enable signal on the register chips? Is this maybe not a typical use of those chips? (This would completely make sense as I guess there is not a huge demand for people building CPU's from discrete components :) ) I really want to build me one of these. I wonder if I ever will :)
@mmannes
@mmannes 4 жыл бұрын
I have not thought it all the way but I think we could use the register's enable signal in conjunction with the octal tri-state buffer in order to have more than two registers capable of interacting with the ALU. We could connect, lets say registers A, B, C and D, to the ALU and enable only the registers A and B or C and D to have their sum. We could sum A and B and output the result to the BUS to later load into C without lose A and B values.
@Tomsta17
@Tomsta17 4 жыл бұрын
@@mmannes You could even select registers individually if you wanted, rather than in banks. So you could select A and B or A and D, if you wanted. It would need an additional control line and I don't know if it's a useful function. But again, this requires the tri-state buffer to be in the circuit, which re-inforces my thought that the buffer is a requirement and not merely an educational/informational extra.
@wholebrain8457
@wholebrain8457 3 жыл бұрын
@@Tomsta17 I agree. Since the ALU's operating is not triggered by the clock signal, it is a requirement that the ALU doesn't input data from the BUS but directly from the registers, which means that both registers must be able to send data without outputting it into the bus.
@ironmati
@ironmati 3 жыл бұрын
If I had your patience I would definetly try to do this, you are a genius
@jeromethiel4323
@jeromethiel4323 3 жыл бұрын
The only issue with breadboards (which i LOVE BTW), is if you mistakenly snag a wire and pull it out. then it's a game of figure out what you just broke, which can take hours. Which is why i did what you are doing, which is to make the wires as neat and low to the boards as possible, to prevent snagging in the first place, and also make it easier to spot where the wire went. I knew guys who would rats nest every time, and god help them if they pulled a wire by accident. I knew one guy who would just rip out everything and start over, because he felt it was faster. A neat breadboard is a happy breadboard! ^-^
@davidsymalla
@davidsymalla 5 жыл бұрын
Love your vids Ben, ALL of them. Thank you. You do a great job. keep it up!
@cvkline
@cvkline 5 жыл бұрын
I love how your breadboarding wires are always magically the right length and shape. 😄
@gorillaau
@gorillaau 5 жыл бұрын
Here is a wire that I prepared earlier.
@TheZourop
@TheZourop 4 жыл бұрын
You make these things look so simple that’s awesome
@peterverbeke1383
@peterverbeke1383 4 жыл бұрын
At 7:00 Ben puts the buffer into the wrong pin. He puts in input pin 12 which is the A part of the adder and not the third sum. You can fix this by just putting the pin up one higher into pin 13 which is Sigma 3.
@saibhushan6289
@saibhushan6289 Жыл бұрын
I was debugging this issue for 3 hours. Thank you
@scarlettekk
@scarlettekk Жыл бұрын
Saw him do that and immediately looked to the comments like... "that can't be right"...
@thumper88888
@thumper88888 Жыл бұрын
That is a work of art ! I hope it is permanent. Im surprised you didnt use the 1/8” or bar graph LEDs
@giantneuralnetwork
@giantneuralnetwork 8 жыл бұрын
Cool! Looking forward to the debugging. Thanks again for making these!
@johnwilson3918
@johnwilson3918 7 жыл бұрын
Again, Brilliant. I'm very pleased you made a mistake with your wiring. Makes for an exciting follow-up video! Thank you.
@skmgeek
@skmgeek 5 жыл бұрын
You must love these videos, your logo is literally a logic chip!
@markfinn825
@markfinn825 3 жыл бұрын
You could like my calculator method for arithmetic. I use three sets loadable counters. The answer is always in counter 1. Counter 2 always counts down to zero. Counter 1 counting up(from a number) while counter 2 counts down(from a number) (to zero) results in addition. Counter 1 counting down while counter 2 counts down results in subtraction. Counter 1 being transferred to counter 2 then cleared to zero then addition taking place the number of times that is in counter 3 results in multiplication. Counter 1 being transferred to counter three then cleared to zero , then counter 1 counting the number of times counter 2 counts down (to zero) while counter 3 counts down until counter 3 equals zero results in division. I use sequencers made of latches , AND gates , and inverters to control how the counters count (for a calculator). By using instructions in memory to cause the counters to select the proper sequencer, arithmetic can be the result of instructions from memory being decoded to select the needed sequencer. Other sequencers can likely be created to accomplish logic functions and program control as well as input and output.
@p1nesap
@p1nesap 8 жыл бұрын
Nice continuation and conclusion, which is how all my circuits go 1st (or 5th) time around. Look forward to troubleshooting vid.
@jordanhall1136
@jordanhall1136 8 жыл бұрын
Thank you for continuing this amazing tutorial, keep up the great work!
@aviko9560
@aviko9560 7 жыл бұрын
I'm addicted to your videos.
@sjair6526
@sjair6526 Жыл бұрын
This adder/subtractor circuit is genius!
@CosmJJ
@CosmJJ 6 жыл бұрын
Very simple and clear explanation of not simple things. Thank you very much! Great channel!
@dextersjab
@dextersjab 3 ай бұрын
If you're following along and run out of space on your breadboard for the LEDs (due to lack of pull-up resistors in the CPU kit chips), you can connect the output of the LS245 (tri-state buffer) to the bus to test rather than having to rewire. I haven't finished building the whole kit yet, but my guess is this should suffice for the rest of the circuit.
@tezza48
@tezza48 7 жыл бұрын
Now that's a proper stanley knife :)
@michelclovis8003
@michelclovis8003 4 жыл бұрын
Merci pour les explications très claires et le partage de vos connaissances. (Many thanks for your cristal clear explanations and for the sharing of your knowledge.)
@paulbaker916
@paulbaker916 7 жыл бұрын
Love these videos. So interesting and clear.
@tehedx
@tehedx 5 жыл бұрын
Impressive job! I would have fallen of my chair if it worked right away in one time :)
@frankdomburg3971
@frankdomburg3971 Жыл бұрын
Somehow it felt kind of reassuring it didn't and made me keep watching. This stuff is so good!
@uniqued4ve
@uniqued4ve 4 жыл бұрын
Your a geniuous. Not because you understand ths things, but because you of your capability to explain it in a perfect manner. When I say perfect, I mean perfect. (>99.9997847839899). I assume I would not like your 100000th movie to get this result.
@fazliddinmakhmadkulov
@fazliddinmakhmadkulov 4 жыл бұрын
That's a really fantastic explanation. Thank you!
@rvd2339
@rvd2339 5 жыл бұрын
Really love the video's Ben, they are very clear and informative. Thank you for sharing your extensive knowledge!! Ignore my previous comment which I deleted I got the pin out wrong Co means carry in I thought it was the Carry out :(
@johnSmith-up5ey
@johnSmith-up5ey 5 жыл бұрын
I wonder... instead of having a single control signal (SUB) that drives both the XOR gates and the carry in to the lower adder, if we were to drive them separately then we could do some intresting extra things: ADD: Sub = 0, CI = 0 (As we currently have things) SUB: Sub = 1, CI = 1 (As we currently have things) ADC: Sub = 0, CI = Carry flag (Add with carry) SUC: Sub = 1, CI = NOT carry flag (Subtract with carry) Where Sub is the input to the XOR gates and CI is a carry in signal. This would allow the computer to do addition and subtraction of data that is larger than 8 bits. We would ADD/SUB the lowest bytes together and ADC/SUC all the remaining bytes. I don't think we would need to do any additional wiring as the carry flag is an input to the control unit, which would be driving the CI and Sub control lines. If we did this I also suspect you could play with the micro code to create a bitwise NOT of the A-register: * copy A to B * subtract B from A. * Store the result in A. This will leave 0 in A and the original content of A in B * Sub = 1 and CI = 0. This will invert B and add 0 to the result * Store the result in A. A should now be ones complement of its original value Our ALU finally has a logic operation!
@gdlifesteal5824
@gdlifesteal5824 Жыл бұрын
I suggest using different color wires for different connections like using green for A register to ALU and yellow for B register to XOR gates and so on instead of using the same greenish blue wires for everything. Edit: also I think it’s good practice to connect the carry out of the second 4-bit adder to ground through a resistor instead of just leaving it floating.
@my80yearoldman
@my80yearoldman 7 жыл бұрын
I don't know how fast you guys are at cutting/shaping/wiring...but this video alone took me like 3.5 hours lol
@crateer
@crateer 5 жыл бұрын
if you want it to look as nice as possible, then 3.5h is totally normal i guess :D same here :D
@larrybud
@larrybud 2 жыл бұрын
Love this series. Would have liked to have seen different colors for input/output.
@hugohaan5541
@hugohaan5541 2 жыл бұрын
Nice hearty gulp at 12:46
@absolutelyproprietary6896
@absolutelyproprietary6896 3 жыл бұрын
Its ironically looking futuristic
@Evocatorum
@Evocatorum 5 жыл бұрын
"And actually, you know what i'm going to do? These are fine the way they are, but you, I'm going to try and neaten these up a little bit just by bending the leads and cutting things and, you know, trimming things [sic] obviously totally optional..." I heard this and had a sudden flashback of a particular chef who just couldn't help but neaten up the cooking scraps with a bit of aluminum foil and a sandwhich bag... you know, just to prevent the scraps from leaking on the rest of the garbage.
@peterverbeke1383
@peterverbeke1383 4 жыл бұрын
I think you put in the first 74LS86 XOR chip in backwards.
@M4RC90
@M4RC90 3 жыл бұрын
At the beginning yes, but it was fixed later in the video.
@Draugo
@Draugo 7 жыл бұрын
Is it wrong that I find it annoying that the right most XOR chip is not moved one row to the right so that power and ground would line up :D
@COMB0RICO
@COMB0RICO 5 жыл бұрын
Thanks from Texas.
@cptbld01
@cptbld01 7 жыл бұрын
Electronic spaghetti ^^ ;) what a wonderful serie of video, very interesting, thank you :)
@milesdawkins1278
@milesdawkins1278 8 жыл бұрын
hi ben,im also building this computer and wanted to know how you added the jump,jumpcarry, and store A instructions.
@rizkyp
@rizkyp 5 жыл бұрын
This reminds me of my first month when I was in computer science.
@andrejkiss
@andrejkiss 7 жыл бұрын
Wow these parts are expensive. I've been purchasing them on ebay as I watch your videos, and the sum (pun intended) going pretty high.
@Johanthegnarler
@Johanthegnarler 7 жыл бұрын
András Kiss Buying one of most electrical components is usually more expensive than buying 10 from Mouser or Tayda.
@Fwacer
@Fwacer 7 жыл бұрын
András Kiss Have you tried digikey? There have very good prices, and free shipping after $100
@andrejkiss
@andrejkiss 7 жыл бұрын
Fwacer yes I have checked them out. However, I ordered from ebay. I needed only a few pieces and it was cheaper from there. Thanks for the suggestion.
@Fwacer
@Fwacer 7 жыл бұрын
András Kiss In future try digikey.. I found ebay is much more expensive overall. I got a few parts from there (like breadboards and wire strippers) but all my electronic components I got from digikey. I live in Canada though, this may not be true where you are frpm!
@Jay-kc2pm
@Jay-kc2pm 7 жыл бұрын
If you keep buying them, eventually the sum will overflow, making it cost nothing.
@keiyakins
@keiyakins 4 жыл бұрын
Permanent has a useful meaning on a breadboard. It means "won't be changing until this project's done."
@McCatshot
@McCatshot 3 жыл бұрын
During sections where video is sped up, there’s this very faint and a little bit bizarre audio in the background.
@aether-music
@aether-music 3 жыл бұрын
Likely electrical noise from whatever power source he's using.
@skmgeek
@skmgeek 5 жыл бұрын
Every single time you bring out some diagrams or components, I just keep waiting for you to say 'Here's some I prepared earlier' It never came.
@Steve-uu7yx
@Steve-uu7yx 4 жыл бұрын
and then perry the platypus, I take over the ENTIRE TRI-STATE BUFFER
@rajatmond
@rajatmond 4 жыл бұрын
love the reference to phineas and ferb
@ricardoneves5094
@ricardoneves5094 3 жыл бұрын
Great video series! What if we used a bus for the clock, instead of jumpers connecting multiple boards? Is that of any advantage?
@northseahero3387
@northseahero3387 3 жыл бұрын
Spoilers below: When he turned the ones complement into two's complement by hooking up the high input to the xor gates into the carry in on the adder, I pogchamped.
@64jcl
@64jcl 4 жыл бұрын
When looking for parts, what is the difference between SN74LS245N and SN74LS245NE4 ? Looking at the Mouser site the table seems to list them as being identical so whats their difference?
@dripcode2600
@dripcode2600 Жыл бұрын
Ben you've probably been told this before, but you nice neat circuits and you name go hand-in-hand: Ben Eater = Be Neater. Wait, is your name really Ben Eater?
@jporritt
@jporritt 2 жыл бұрын
3mm LEDs are an alternative to lengthy LED legs.
@electro_CC
@electro_CC 2 жыл бұрын
how you are using those chips without pull down resistors makes me fascinating
@Android480
@Android480 Жыл бұрын
I cannot believe this worked the first try for me. I had such a nightmare wiring this, was not looking forward to the debug!
@htfkid2000
@htfkid2000 5 жыл бұрын
One of my 74LS283 chips turned out to be defective. Pinout was correct but was just giving me the wrong results. Swapped it out with the other one with exactly the same pinout and was getting the right results. Putting the other chip back in resulted in the magic smoke coming out. Bought some more but i'm stuck with a 4bit ALU for the next week and a half.
@crateer
@crateer 5 жыл бұрын
well thats not good :D but it happens =)
@micflynn1
@micflynn1 4 жыл бұрын
Could have used Square LED been easier to place next to each other! :)
@wilsonnanlohy6260
@wilsonnanlohy6260 Жыл бұрын
Terima kasih.
@dimitribouniol
@dimitribouniol 4 жыл бұрын
Does anyone know why the terminal columns are separated into groups of 5 rows? Seems inconvenient for the most part...
@eknuds
@eknuds Жыл бұрын
I would have thought that the ALU, would have internal registers for the operands so they could be from memory or registers, but not really necessary in this simple implementation?
@alexanderkramer6047
@alexanderkramer6047 7 жыл бұрын
Where are you getting these parts? I've tried searching them in a couple different places but I can't find any I can buy. Is there a website anyone uses that has all the parts in this video series?
@CykPykMyk
@CykPykMyk 7 жыл бұрын
what do you exactly mean? breaboards, LEDs, ICs, wires... ? all of these you can buy at your nearest electronics shop / some RadioShack
@LoneRegister
@LoneRegister 7 жыл бұрын
Mouser and Jameco have these parts.
@Videoswithsoarin
@Videoswithsoarin 7 жыл бұрын
alexander kramer I get mine from eBay you could try mouser electronics I heard they have good stuff, if you order from China on eBay you can get free shipping
@Ghost572
@Ghost572 6 жыл бұрын
Farnell element14 is one place, RS components, ebay. I'm from the uk though.
@Number_055
@Number_055 5 жыл бұрын
In America you've got Radio Shack, in Australia you have Jaycar.
@tim_allen_jr
@tim_allen_jr 6 ай бұрын
I would love to learn how to make these chips. With photolithography
@SuburbanDon
@SuburbanDon 3 жыл бұрын
Now I know what these special logic chips are for.
@beauhaeker804
@beauhaeker804 8 жыл бұрын
Why don't you use 3 mm LEDs to fit all the LEDs, that is what I did.
@bonbonpony
@bonbonpony 8 жыл бұрын
There are also those neat LED ladders / bar graphs ;) www.image.micros.com.pl/_icon_auto_s/olcl.dc-10ewa.jpg
@beauhaeker804
@beauhaeker804 8 жыл бұрын
+Bon Bon Yeah, I guess he could use that too. But you cannot connect it directly to ground from the chip.
@bceng89
@bceng89 2 жыл бұрын
sorry to ask but, up until this point, you have 6 bread boards but this module plus the clock is only 5. am i missing one? do i need to go out and buy another one?
@kei_otake
@kei_otake 2 жыл бұрын
so THAT’S why those blue bus lines were that long.
@eli3963
@eli3963 6 жыл бұрын
If I put the A and B registers on one board, would it free up space for AND, OR, and right-shifting on the now-empty board?
@aliffezaqielzaffrulla5577
@aliffezaqielzaffrulla5577 8 жыл бұрын
I love your videos keep making more
@scranneroram
@scranneroram 7 жыл бұрын
addictive watching!
@faikerenaltun828
@faikerenaltun828 3 жыл бұрын
How can I design an 8-bit adder block that can add any two 8-bit registers from a bank of 5 registers and then store the result again in any one of them.
@daleafboi_8315
@daleafboi_8315 2 жыл бұрын
Cool. But one question... Can it run doom?
@iNireus
@iNireus Жыл бұрын
Totally optional Ben says… I just know had Ben been in the same class as I learning Catgut cable tidying we’d have all left the class knowing the bar would be set beyond our skills 😂
@juanclopgar97
@juanclopgar97 3 жыл бұрын
What if you want add 2 negative numbers? you are only able to represent negative numbers in B register right?
@vengeanceseville2768
@vengeanceseville2768 2 жыл бұрын
Why don't we need any negation for the A register?
@morelfotsing2221
@morelfotsing2221 8 жыл бұрын
Hey Ben! Please can you create a playlist with those "build computer" videos? I can't found the pattern
@bonbonpony
@bonbonpony 8 жыл бұрын
They are pretty much in sequence when you view them by date. But yeah, a playlist would be a cool thing to have.
@skmgeek
@skmgeek 5 жыл бұрын
3 Years later and i am watching these videos via his playlist. ;)
@comedyforage
@comedyforage 5 жыл бұрын
4:10 *snap* Mmhkay
@ibuprofen303
@ibuprofen303 7 жыл бұрын
My technical explanation of what wasn't working properly is that maybe some of the bulbs had blown in the bottom bit.
@ataaslan5177
@ataaslan5177 3 жыл бұрын
In which video does he build the A register and the B register?
@danielmusat597
@danielmusat597 4 жыл бұрын
Why don't you use rectangular LEDs?
@patrick1020000
@patrick1020000 5 жыл бұрын
The LED problem is interesting. Do LEDs not come in a chip-like row that you can just snap into a breadboard?
@ClicketyClack
@ClicketyClack 5 жыл бұрын
You can get DIP-sized LED bars as well as small form-factor LEDs with 2.54mm lead spacing, but they're not always as versatile if you need to go directly from the main board area to ground, because breadboards differ sometimes in the spacing of the ground and power busses. It also of course just depends on what you have available to work with at the time.
@patrick1020000
@patrick1020000 5 жыл бұрын
Ah cool thanks for the info
@hikarihitomi7706
@hikarihitomi7706 3 жыл бұрын
Something that occurs to me, why use subtraction? Seems like a dumb question but I have been have fun with a different kind of math and in that math, there is no subtraction, nor even negative numbers. Seems like it would be better that way
@tomosko2669
@tomosko2669 6 жыл бұрын
I have a question: istnt this ALU able to do just A - B? What if I want to do B - A? Should we not have then the XOR gates also next to the A register and have SUB_A and SUB_B signals?
@deimudder1274
@deimudder1274 6 жыл бұрын
I taught about this too. If you wanted to calculate the difference between 7 and 5 you ALU would output 2 as expected. But in you case the calculation would be 5-7 which is -2, thats just your result invertet. In binary a two is 0010 and a negative 2 would be in 1s comeliment 1101. So I was thinking that maybe in that case you could just build an inverter for all bits. Of course you have to converte that in 2s complement at the end.
@tjay1430
@tjay1430 6 жыл бұрын
I had the same thought would you swap the data between addresses before you did the operation?
@nistax2880
@nistax2880 4 жыл бұрын
Than just load the walue you want to subtract to the b and not to the a
@zes3813
@zes3813 7 жыл бұрын
great vx, not gotta be anyx or carefux tho
@simona625
@simona625 4 жыл бұрын
Bit late in the day, (er... 3 years late), but you'd find using 3mm LEDs better, they fit much better for consecutive pinholes
@zakariabahbaz5348
@zakariabahbaz5348 6 жыл бұрын
So on this design, only the data from the b register can be negated correct? why not add the ability to negate both ?
@TomStorey96
@TomStorey96 6 жыл бұрын
Why doesn't he add more than 16 bytes of memory, too? Because it's a demonstration of how a CPU works and how you can build one. I don't think it's supposed to be the most feature packed CPU around. You can always build one yourself and add any functionality you like.
@tanjimjahan4038
@tanjimjahan4038 4 ай бұрын
i faced a problem with alu part. i bought a 74hc283 ic from shop and i connect the pin 8 to ground and the pin 16 to the vcc the voltage of pin 7,9,10,11,12,13,14,15 is high and the voltage of the pin 1,2,3,4,5,6 is 0 why it is happening? as far as i know 74hc283 is a binary adder. it also showing wrong output. the ic become hot when i connect the input pins. Basically the out put pin 9,10,13 always high whatever the input is. pin 1,2,3,4,5,6 always low. I am stuck into this from two days. Anyone please help me.
@markfinn825
@markfinn825 3 жыл бұрын
To make sense of the comment take the "to cause the counters" after " By using instructions in memory" out of the comment.
@misterman7684
@misterman7684 6 жыл бұрын
Madmaxx made his ALU with a couple more functions (AND and OR I believe). Is there a reason not to?
@TomStorey96
@TomStorey96 6 жыл бұрын
This is a demonstration of how a CPU works and how you can build one. I don't think the intention was to build the most feature packed CPU possible.
@daspolemon
@daspolemon 5 жыл бұрын
How do you directly connect the LEDs to the various signal lines? Don't you need dropper resistors for them?
@drzorbo3770
@drzorbo3770 5 жыл бұрын
Check the data sheets. Depending on the chip those resistors are 'built in'. I believe he covered it in previous video. I may be mistaken however. Check the chip data sheets.
@daspolemon
@daspolemon 5 жыл бұрын
@@drzorbo3770 Well, the inputs do have internal pull-up resistors, but that's pretty much it, the output is just either shorted to ground, or shorted to Vcc.
@urgtuiop5455
@urgtuiop5455 3 жыл бұрын
I did a few rough calculations and a sim for the adder portion of the ALU. A kogge-stone adder for 16bits built with 74HC 86/32/08 chips came out 192 nS (max 4.5v) and 94 nS (typ 5V 15pF load). A 74HC283 16 bit ripple carry cct came out 184 nS and 92 nS typ. So 192/94 nS vs 184/92 nS. This seems to be the breakpoint. At 32 bits the numbers are 228/112 vs 368/184 nS i.e. 60% speed improvement. However a KS adder with 32 bits is a lot of 74HC chips so capacitance will drop the speed improvements. All bets are off if it's implemented into a gate array - use the KS. For up to 16bits I would just use ripple carry and 74HC283's.
@feysalimran
@feysalimran 7 жыл бұрын
Anyone knows where i could buy a whole kit full of the needed components? I really wanna get started. Shipments to Sweden
@LoneRegister
@LoneRegister 7 жыл бұрын
Jameco or Mouser has a kit that you can purchase with almost all of the parts. RAM, EEPROM and 1 or 2 special 74LS chips excluded.
@brendanliegey9258
@brendanliegey9258 Жыл бұрын
8:27 im not gonna lie Ben i have no idea what youre trying to do here lol
@parksdude
@parksdude 7 жыл бұрын
Does anyone know of a good kit that i can get to make circuits like this. Cant seem to find anything good online
@kylebairdballet3059
@kylebairdballet3059 2 ай бұрын
Noob recommendation, watch the entire video before wiring. remember to have space for resistors. change the order of the wiring to suit you. so its easier to get in and out while seeing what is happening while disturbing the other wires as little as possible
Troubleshooting the ALU
15:10
Ben Eater
Рет қаралды 166 М.
8-bit computer RAM intro
13:45
Ben Eater
Рет қаралды 302 М.
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 19 МЛН
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 47 МЛН
RAM module build - part 1
13:45
Ben Eater
Рет қаралды 385 М.
I Made a Working Computer with just Redstone!
15:37
mattbatwings
Рет қаралды 826 М.
Breadboarding tips
20:16
Ben Eater
Рет қаралды 433 М.
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 2 МЛН
Geek Rant #6 - My DIY 65816 Computer
16:57
TrackZero
Рет қаралды 134 М.
From Transistors To Tetris Part 1 : Computer Architecture
20:17
Lev Kruglyak
Рет қаралды 281 М.
The world's worst video card?
32:47
Ben Eater
Рет қаралды 6 МЛН
I Made My Own Computer | Let's See How It Works
7:51
3DSage
Рет қаралды 782 М.