From Transistors To Tetris Part 2: Program Counter and Stack Pointer

  Рет қаралды 100,254

Lev Kruglyak

Lev Kruglyak

Күн бұрын

Пікірлер: 200
@ropersonline
@ropersonline 2 жыл бұрын
14:45: I really appreciate the honesty here. Too many "school projects" are stage-parented in a way that's very dishonest. Also, props to your dad for teaching you well.
@NoMoreCandies
@NoMoreCandies 2 жыл бұрын
that is right, and let me say f*** his dad. god. the lie.
@jdaniele
@jdaniele 3 жыл бұрын
Great series Lev, don't give up! We are waiting for your next video. Hey, it doesn't matter if it works or not, we can learn a lot from mistakes, even more than from well done things. So, please, give us just an update about what you are working on. Keep on and take care! Thanks for sharing.
@qwertzuiopqwertzuiop2107
@qwertzuiopqwertzuiop2107 3 жыл бұрын
hi, i just discovered this amazing series. but i was pretty disappointed the last update to it was 9 months old. i hope you can come back to youtube in the future:) take care
@BGTech1
@BGTech1 2 жыл бұрын
1 year later and still nothing
@sanane7030
@sanane7030 2 жыл бұрын
I discovered it just right now.... I am really curious now...
@bonta4671
@bonta4671 2 жыл бұрын
just now : (
@lawrencemanning
@lawrencemanning 2 жыл бұрын
@@bonta4671 same
@julesparty
@julesparty 2 жыл бұрын
From doing some research, he seems to be in college at Harvard atm
@tolateFB
@tolateFB 2 жыл бұрын
I hope there’s more on this series! It’s beautifully simple yet complex. Also great management!
@DasHemdchen
@DasHemdchen 2 жыл бұрын
Ahhh eXXXciting stuff! Unbelievable how you gained this understanding of programming, hardware in so little years! Kudos, hope you never lose track! Cheers!
@kg5ubb478
@kg5ubb478 4 жыл бұрын
This looks awesome, I am exited to watch this project evolve.
@kg5ubb478
@kg5ubb478 3 жыл бұрын
Just in case anyone actually stumbled upon this comment, please take the time to report the two spam bots that replied to the parent comment.
@schizoponk
@schizoponk 2 жыл бұрын
😢
@dageekoftheweek
@dageekoftheweek Жыл бұрын
Please don't stop making these videos, I really want to do something similar and this is inspiring, I almost built an alu in my digital logic class but I never went this far. This is super inspiring, thanks for this wonderful series 👍
@jfrancho
@jfrancho 2 жыл бұрын
Part 3??????
@ryanzheks3731
@ryanzheks3731 3 ай бұрын
😂
@hardiehero8987
@hardiehero8987 3 жыл бұрын
Amazing series!!!!!!! I’m so excited for the next video
@super66reaper91
@super66reaper91 2 жыл бұрын
Yea me too!!! ...
@srmendoza
@srmendoza 2 жыл бұрын
It's been 2 years :(
@hannescampidell
@hannescampidell 2 жыл бұрын
yea i would like to see it play tetris i hope he comes back to this project and doesnt abandon this channel
@josephwilliamcosta
@josephwilliamcosta 2 жыл бұрын
Must have gave up. It’s been 2 years….
@tomkleinsteuber544
@tomkleinsteuber544 2 жыл бұрын
@@josephwilliamcosta Lev got accepted into Harvard. I'm assuming he is now too busy to maintain this KZbin channel.
@PrentisHancock1
@PrentisHancock1 2 жыл бұрын
Your populated pcbs are beautiful! Truly a work of art. This is a spectacular project, Lev. I hope you continue with this design. Subscribed.
@realohh
@realohh 2 жыл бұрын
I m really impressed. I m myself an Electronics Engineer. Really loved your work. You are a super Engineer brother. Keep it up.
@joaovitormatos8147
@joaovitormatos8147 2 жыл бұрын
"I'll probably release the third episode in a month or two" Said he, 24 months ago
@phlimma
@phlimma Жыл бұрын
Me.
@jbird4478
@jbird4478 6 ай бұрын
First Harvard, then NVIDIA snatched him, so he didn't have time anymore. I thought about making a joke like this, but it's actually true. Well, it was pretty obvious this was miles above the average amateur.
@TDRenders
@TDRenders 3 ай бұрын
48 months
@weirdboyjim
@weirdboyjim 4 жыл бұрын
Nice work Lev.
@JackEnneking
@JackEnneking 2 жыл бұрын
Ahh! You got me hooked! I hope you're doing well and you come back to this project.
@alexxyo6061
@alexxyo6061 7 ай бұрын
NOOO I THOUGHT THE SERIES WAS COMPLETED
@th3magist3r
@th3magist3r 4 жыл бұрын
Well done mate! Awesome job! I am really excited while waiting for your next videos!
@superhawk6105
@superhawk6105 2 жыл бұрын
Watching the stack pointer jump back after finishing recursion was really neat!
@jesusbrandonmanonjuarez9737
@jesusbrandonmanonjuarez9737 2 жыл бұрын
Hi! Great project! We are waiting for the next part, I hope it will be soon Best wishes
@videoestudiofilms
@videoestudiofilms 2 жыл бұрын
TNice tutorials helped sooo much!
@CobraTheSpacePirate
@CobraTheSpacePirate Жыл бұрын
Love the thanks to your Dad.
@banonymous404
@banonymous404 3 жыл бұрын
It makes me sad that not that many people are into this stuff, us computer architects need to stick together ya know. Pretty soon I'm thinking about building a 16 or 32 bit cpu that has multiple core on a idea I want to patient. I appreciate you sticking up and making a video stay safe bud. Regards, Morty.
@skmgeek
@skmgeek 3 жыл бұрын
Still waiting for the next video :3
@godofcows4649
@godofcows4649 4 жыл бұрын
Excellent video and start to a transistor computer! I'll definitely look out for your next video!
@kwgm8578
@kwgm8578 2 жыл бұрын
Lev, this used to be part of the BSEE undergraduate education. I hope that it still is. You sound like you're having fun. I certainly did, 45 years ago! Best wishes.
@leozendo3500
@leozendo3500 4 жыл бұрын
this channel will explode
@LollosoSiTV
@LollosoSiTV 4 ай бұрын
Would be really interesting to see this project made with SMD and no floating wires
@brycemw
@brycemw 4 жыл бұрын
I really love this project so far! Of course the recursive printing is just for demonstration, but one thing you could do, is only jump to the print function at the end rather than jump to subroutine. Then, when you find the null terminator, you could use return from subroutine and it would immediately go back to where it left off rather than going through every layer of recursion first. Essentially tail recursion optimization.
@levkruglyak
@levkruglyak 4 жыл бұрын
I'm glad you're enjoying it! I think that's just the normal way to print a string, since that's essentially a loop. I'm pretty sure it's also the most efficient way to print a string using my instruction set.
@brycemw
@brycemw 4 жыл бұрын
Lev Kruglyak I’m surprised that I just happened to have come up with the correct way by accident though I guess it makes sense. I love seeing these types of projects of building things from scratch. I’ve had one of my own sitting on my ideas list for a while now. I wanted to try building a hardware BF interpreter that is expandable both in memory and looping depth. Good luck with yours!
@AlbySilly
@AlbySilly 2 жыл бұрын
Great stuff so far, I'm looking forward to seeing the next video you make, whatever it may be
@bkucenski
@bkucenski Жыл бұрын
What kills these projects is memory and storage. The 4004 CPU had 2300 transistors. SRAM uses 6 transistors per bit while DRAM uses 1 transistor and a capacitor. 2KB of memory would require 12,288 transistors. It's cool but would probably be better as an educational series that just focuses on particular components and some theory or using an emulator. One of my projects in college for a digital design class was building a 4 bit ALU. It was all done with a piece of software for emulating digital circuits down to the logic gates rather than down to transistors. Even with low power transistors, eventually it gets ridiculous just to power something this complex.
@DAVIDGREGORYKERR
@DAVIDGREGORYKERR Жыл бұрын
Looks like it is using an FFTs to do the division the algorithm is found in the Numerical Recipes in C/C++.
Жыл бұрын
Will you make a part 3 any time in the future?
@ri-gor
@ri-gor 4 жыл бұрын
I'm in the planning stages of a similar project (although less ambitious on the speed/interfacing front and more ambitious on the architecture front). I look forward to future updates from you!
@techdoc99
@techdoc99 6 ай бұрын
Very impressive work! And you were only in high school then? How far we’ve come! I hope you continued on the path of exploration and continue to challenge yourself. You’ve undoubtedly learned much more than you could just reading books and taking tests!
@celsopinheiro
@celsopinheiro 4 ай бұрын
Hey Lev, What happened at the end? no more videos?
@tristanhameleers7506
@tristanhameleers7506 3 жыл бұрын
I find it weird you have so little subscribers because you are amazing
@RealPronotfound
@RealPronotfound 2 жыл бұрын
And here i thought i was gonna see this entire series only to realise you havent posted for 2 years..
@mastermindd
@mastermindd 2 жыл бұрын
Yeah... it's a pity. Maybe he enrolled to college, and now doesn't have time for real professional stuff, like this - been there, done that
@PeetHobby
@PeetHobby 2 жыл бұрын
Great work, but; 7:55 When will the future video come? It's 2 years later now. 😁
@zulfazlihamjah8897
@zulfazlihamjah8897 Жыл бұрын
You are really inspiring.......
@AI_Image_Master
@AI_Image_Master 3 жыл бұрын
Very cool. I have been building a 4 bit computer from transistors. Very similar to what you are doing except smaller in scale and a bit simpler in design. Not using pre printed boards but still a lot of soldering. Using several data registers, alu, control logic (not in a rom), program counter, command register and an input panel. A few of my own commands, just trying to add and subtract a few numbers at first. Basically have it all in my head. Version 2 to add memory and more complex commands. Trying to do every thing with transistors, from registers to alu to logic to clock. Only problem is memory, since a computer of this time would have used core memory. Can't use transistors because that would be a heck of a lot of transistors for a small amount of memory. Oh well, will most likely use a sram chip, that should be the only compromise. Nearing version 1. All modules are working just need to tie it all together.
@guntergras4278
@guntergras4278 3 жыл бұрын
That's very interesting stuff. I want to learn more about computer architecture and build my own computer as well. Maybe you would like to share a video about your project progress😀. That would be a nice thing👍
@chromosundrift
@chromosundrift 4 жыл бұрын
props to dad for making the assembler !!
@suncrafterspielt9479
@suncrafterspielt9479 2 жыл бұрын
hey, will you continue this series?
@matthewrease2376
@matthewrease2376 2 жыл бұрын
No part 3 yet? :(
@denjhang316
@denjhang316 4 жыл бұрын
Amazing work.I'll try it out in a minute, because you've given the gerbers file.
@ecosta
@ecosta 2 жыл бұрын
Interesting project, but I'm not sure about 14:40 - why the "RTS" instruction pops out all recursive calls at once? If you were using "23 jmp print_msg" instead of "JSR", then it would be a classic tail-call optimisation. But in that architecture, it seems you can't have more than one on-going subroutine. Am I missing something important here?
@denjhang316
@denjhang316 3 жыл бұрын
More than half a year has passed, and I have been waiting for your third video.
@levkruglyak
@levkruglyak 3 жыл бұрын
Stay tuned, I’ve been very busy with work during the year, so I had to pause the project for about half a year. I started working on it again recently and I’ve already finished soldering all 3,000 transistors all that’s left is a bunch of wire wrapping
@andrepascoa6687
@andrepascoa6687 3 жыл бұрын
@@levkruglyak did you enter MIT?
@pcnikos7836
@pcnikos7836 3 жыл бұрын
​@@levkruglyak i am going to enjoy it and i will try to make it
@Engiduck
@Engiduck Жыл бұрын
@@levkruglyak Even a year on were still waiting (but take your time).
@hannescampidell
@hannescampidell Жыл бұрын
@@levkruglyak could you give us a update
@jimviau327
@jimviau327 2 жыл бұрын
At least you owe us an explanation as to why we do not see a third and fourth... video.
@ianwalsh3868
@ianwalsh3868 2 жыл бұрын
Hopefully this gets continued!
@borxanderson8159
@borxanderson8159 17 күн бұрын
Part 3 when it reaches 100k Views? 🥺👉👈
@stickworldanimated9545
@stickworldanimated9545 2 жыл бұрын
Really Nice Architecture! Hope you get through college using that!
4 жыл бұрын
Wow. Impressive.
@Kenbomp
@Kenbomp 2 жыл бұрын
Nice using through hole where you can get to the pins something magical about them. You can probably create a graphics processor unit for display that does rotation and such in hardware. Though that's a project too.
@thek3743
@thek3743 4 жыл бұрын
Very interesting, keep going!
@ArielLothlorien
@ArielLothlorien 2 жыл бұрын
What program is that Digital Circuit Simulator? I can't seem to find it
@levkruglyak
@levkruglyak 2 жыл бұрын
its a custom program I made a few years back: github.com/LevKruglyak/CircuitSimulator
@hannescampidell
@hannescampidell Жыл бұрын
@@levkruglyak when will the next video in this series come out
@kalj7
@kalj7 2 жыл бұрын
Cool project and video! Here's to hoping you will get around to doing the rest of it :)
@rdoetjes
@rdoetjes 3 жыл бұрын
Really impressive and such commitment! Can’t wait for the next one. One question though: why not use SMD SOT323 MOSFETS? They can still be easily soldered and saves a lot of space.
@levkruglyak
@levkruglyak 3 жыл бұрын
The main reason was price and familiarity; I found a pretty good deal for bulk 2N7000s and I used them throughout the prototype phase so I was pretty familiar with their specs. Also I think they’re easier to solder for me, I’ve never done any smd soldering
@gurmeens6469
@gurmeens6469 2 жыл бұрын
Ive done some SMD soldering and it’s actually faster for bulk smd soldering, would save a ton on soldering but then again you wont have access to the back board for quick wire connections
@chromosundrift
@chromosundrift 4 жыл бұрын
If you had used 74 series logic chips or maybe smd instead of through hole, would it be easier to make it run faster?
@levkruglyak
@levkruglyak 4 жыл бұрын
Most definitely, it would be possible to get it to run in the megahertz range then.
@derekchristenson5711
@derekchristenson5711 2 жыл бұрын
What a neat project! Did you continue it or have to put it on indefinite hold?
@xenon7n342
@xenon7n342 2 жыл бұрын
when will the part 3 come out?
@Mizai
@Mizai 2 жыл бұрын
never
@xenon7n342
@xenon7n342 2 жыл бұрын
@@Mizai y :[
@hannescampidell
@hannescampidell Жыл бұрын
@@Mizai hopfully not
@RaizelCadisEtrama-j5d
@RaizelCadisEtrama-j5d 3 ай бұрын
What types of electronic components do you use?
@KSATica
@KSATica 2 жыл бұрын
Looks amazing
@lucaboyle8338
@lucaboyle8338 2 жыл бұрын
What program is he using At 7:05 I want to see it or use it
@WD40651
@WD40651 3 жыл бұрын
Awesome project!
@nitrogamesstudios5276
@nitrogamesstudios5276 Жыл бұрын
what program is it at 6:44
@theorphanobliterator
@theorphanobliterator 2 жыл бұрын
Carry in+carry out is not a half adder, but a full adder. Half adder only has carry out
@canaDavid1
@canaDavid1 2 жыл бұрын
Cool! Still waiting for the next episode, though
@raiden542
@raiden542 Жыл бұрын
what program did you use at 6:37?
@RoboticsDIY
@RoboticsDIY Ай бұрын
Great educational project. Trough I guess you didnt finish it as there arent any updates for 4 years..?! :(
@walterpark8824
@walterpark8824 3 жыл бұрын
Terrific! This is way down into the 'bare metal' where every bit is built from analog. When you get around to talking about the MOSFETs, I'd like to hear about the decision you made defining levels for 1 and 0. How much can you minimize power (voltage, really) before the values become ambiguous?
@rpocc
@rpocc 2 жыл бұрын
Great job! Can’t imagine how much effort it takes to design and solder a whole computer just of a bag of 2N7000s. Just curious why didn’t you implement some peripheral registers based on arduino placed directly to the address bus. Though it’s never too late to attach such register implementing virtually any peripheral device.
@parsarasti2301
@parsarasti2301 3 жыл бұрын
Hello friend can you create a video about the gates and create the projects with gate
@richardlighthouse5328
@richardlighthouse5328 4 жыл бұрын
How about using STM32 to replace arduino mega, so you can run it faster than 4khz?
@hannescampidell
@hannescampidell Жыл бұрын
but a stm32 is 3.3 volts so a lot of level shifters are needed
@ArielLothlorien
@ArielLothlorien 2 жыл бұрын
Keep up the good work!
@1st_ProCactus
@1st_ProCactus 2 жыл бұрын
No part 3 in a year... Owell 2 good videos anyeay
@hipposhark
@hipposhark 2 жыл бұрын
ayo how are you going to do the control word??
@uso2484
@uso2484 2 жыл бұрын
where is the new series?
@nathanforsaken3248
@nathanforsaken3248 2 жыл бұрын
how do i bookmark this video?
@JamesLoper
@JamesLoper 2 жыл бұрын
Where is Part 3?!?!?!
@DAVIDGREGORYKERR
@DAVIDGREGORYKERR Жыл бұрын
It might be possible to have it built using SMDs and make the whole unit smaller.
@mlab3051
@mlab3051 2 жыл бұрын
I build TTL from bjt once but never sucess to build CMOS. seem like FET inside CMOS has very high ON-resistant so it not worry about shoot-through.
@demnyan
@demnyan 3 жыл бұрын
What the program you use 6:12 ? Thanks)
@levkruglyak
@levkruglyak 3 жыл бұрын
It’s a program I made myself in Java, which I haven’t released publicly yet
@demnyan
@demnyan 3 жыл бұрын
@@levkruglyak wow, ok, thanks)
@1frīja
@1frīja 3 жыл бұрын
7:21 what software are you using
@1frīja
@1frīja 3 жыл бұрын
Any one?
@jzjzjzj
@jzjzjzj 2 жыл бұрын
@@1frīja i read his quora ands its something hes made himself, which im guessing isnt available unless you contacted him
@namisali
@namisali 2 жыл бұрын
Where are you now?
@JamonTerrell
@JamonTerrell 4 жыл бұрын
Which specific mosfets are you using?
@levkruglyak
@levkruglyak 4 жыл бұрын
Jamon Terrell I’m using 2N7000s
@koshyalex8009
@koshyalex8009 3 жыл бұрын
wow. i accidently found this awesome channel . pls consider making a simple os for a simple processor in the feature.
@robodev6033
@robodev6033 2 жыл бұрын
Did you using putty to connect with it?
@zoeyzhang9866
@zoeyzhang9866 2 жыл бұрын
Really informative content!
@lucaboyle8338
@lucaboyle8338 2 жыл бұрын
What program are you using to simulate all this appears in multiple points in this video and I don’t know what the problem is
@Kamo9
@Kamo9 2 жыл бұрын
please,, come back when you got time, i'm really curious
@tristunalekzander5608
@tristunalekzander5608 4 жыл бұрын
Hey great video why did you go with MOSFET's? Are you planning on doing CMOS?
@douro20
@douro20 4 жыл бұрын
He said one day. It would be good to go to CMOS eventually as it doesn't require as many transistors.
@tristunalekzander5608
@tristunalekzander5608 4 жыл бұрын
@@douro20 It requires about twice as many transistors and more expensive transistors but virtually no resistors or diodes so less components overall. I've learned a lot since then and CMOS mainly just saves power. I really like it though and I'm going to make my design mainly CMOS despite the extra cost.
@Fred_Klingon
@Fred_Klingon 10 ай бұрын
Waiting for part 3
@ctbram0627
@ctbram0627 Жыл бұрын
where is the digital circuit design app you are using to demonstrate the circuits? It looks a little like Sabastians Digital Logic Sim app but I like the layout much better. Is it downloadable from somewhere?
@levkruglyak
@levkruglyak Жыл бұрын
it’s a Java project I made quite a while back, here’s a link to the GitHub: github.com/LevKruglyak/CircuitSimulator Just warning that this was coded by 10th grade me so it will have bugs and use way too much RAM
@ctbram0627
@ctbram0627 Жыл бұрын
@@levkruglyak Do not apologize you should be proud of what you have done. Thank you for sharing.
@jumbleblue
@jumbleblue 3 жыл бұрын
Very amazing!!!!
@pcnikos7836
@pcnikos7836 3 жыл бұрын
this is the greatest computer homemade i have ever seen with transistors i am waiting for more parts and excelent job.Also can i use bc547?
@V8Power5300
@V8Power5300 2 жыл бұрын
You could, but shouldn't. You would need a current limiting resistor for the base and could drop the pulldown. The main downside to transistors is the constant current draw from the base that doesn't exist on a mosfet gate
@MrGigi-dz9cv
@MrGigi-dz9cv 3 жыл бұрын
I wish i had the time to learn and understand all of these things.
@Althu-blog
@Althu-blog 3 жыл бұрын
Amazing my brother. Am good saporting ok
@Oberon4278
@Oberon4278 2 жыл бұрын
Been two.years buddy, what's the hold up?
@zetaconvex1987
@zetaconvex1987 4 жыл бұрын
Mind-blowing. I see you used Powder Toy to simulate the computer.
@levkruglyak
@levkruglyak 4 жыл бұрын
Not exactly, I coded this logic gate simulator myself. Powder toy seems really cool though, so thanks for the reference.
@arthurfacredyn
@arthurfacredyn 4 жыл бұрын
Hooooolllly crap this looks pro
@vatanzengin6614
@vatanzengin6614 3 жыл бұрын
Awesome!
@ShopperPlug
@ShopperPlug 2 жыл бұрын
This is cool!
From Transistors To Tetris Part 1 : Computer Architecture
20:17
Lev Kruglyak
Рет қаралды 293 М.
“Hello, world” from scratch on a 6502 - Part 1
27:25
Ben Eater
Рет қаралды 5 МЛН
Build an 8-bit retro computer powered by a Z80 ! [Zeal 8-bit]
13:47
Zeal 8-bit Computer
Рет қаралды 99 М.
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 2,1 МЛН
Original »Apple 1 Computer«, 1976;  24 November 2012 - Auction
7:03
AUCTION TEAM BREKER KÖLN
Рет қаралды 889 М.
Emulating a CPU in C++ (6502)
52:28
Dave Poo
Рет қаралды 1 МЛН
"Z2" - Upgraded Homemade Silicon Chips
5:46
Sam Zeloof
Рет қаралды 2,1 МЛН
The world's worst video card?
32:47
Ben Eater
Рет қаралды 7 МЛН
What is a stack and how does it work? - 6502 part 5
24:25
Ben Eater
Рет қаралды 756 М.
HOW TRANSISTORS RUN CODE?
14:28
Core Dumped
Рет қаралды 645 М.