8-bit CPU control logic: Part 1
Channel:Ben Eater · Length:27:52 · Published:2017-04-16 · Views:1469139
Summary
Ben Eater writes a program in a made-up machine language and walks through the control logic an 8-bit breadboard CPU needs to execute it. It is part of his build-an-8-bit-computer series.
Why HN recommends it
Recommended as the key video for understanding control logic and microcode.
If you only have a limited amount of time I would highly recommend the control logic video — HN, 2017
Computer architecture & CPUs · Electronics & circuit design
Subtitles (excerpt)
let's look at how we' actually write a program and how a program would actually get executed so I've written a program here that basically says load a uh 14 and so what that's saying is load the contents of memory address 14 into the a register and then it's saying add 15 and what that means is add the contents of memory location 15 to the a register and put the result in the a register and then the last instruction is out and what that instruction means is take the contents of the a register and output it to the display now you might be wondering where do these commands come from how how do we you know why does load A14 mean mean that uh and this is actually a really cool thing is we're building this computer ourselves and so we get to Define what the language is we get to Define what these commands are so I made these up and really we can come up with any commands that we want as long as you know it's some operation that we can actually do with this computer computer and we can call them whatever we want and you know we can come up with with whatever we want uh so this is this is just what I've what I've come up with is this load a command and I've decided that what that means is it means to take whatever is in the
On Hacker News
This is really amazing. In addition to the interesting project this individual has a great gift for articulating everything in a concise manner and with a very pleasant cadence. What a great teacher. Thanks for sharing. I'm looking forward to seeing the rest of this series. If you only have a limited amount of time I would highly recommend the control logic video: [VIDEO] — bogomipz, 2017-06
Ben Eater on YouTube has recreated an 8-bit computer on breadboards. [VIDEO] That is the start of the videos where the control logic gets microcoded. Its pretty basic but over the next few videos he comes up with about 10 different OPCODES and programs their microcode (a series of control logic activations). Its pretty amazing to see it all come together and work in the end. — pests, 2023-07
I found these Ben Eater YouTube videos very useful to understanding what microcode is and how it works: 8-bit CPU control logic [VIDEO] 8-bit CPU reprogramming microcode [LINK] In short, the microcode instructions are a bunch of flags that enable different parts of the processor during that clock cycle (eg is data being loaded off the bus into a register? Is the adder active? Etc), so to implemen… — dkersten, 2023-03
Yeah, it was my understanding that the opcodes directly encoded what we would nowadays call microcode, that is, bits which selected which CPU component acted on which data[1], so these illegal instructions are just unused bit patterns that select various operations just by having those bits set, not something that was ever intended to be actually used. So it would make sense that they're not docu… — dkersten, 2021-06
Related videos
- Great Earthquakes of the Pacific Northwest · Central Washington University · 1:04:01
- The Complete History of the A Button Challenge · Bismuth · 5:22:14
- This is the WORST Monitor Ever...ON PURPOSE! - Dasung PaperlikeU E-Ink Monitor · Linus Tech Tips · 15:59
- Simplicity Ain't Easy - Stuart Halloway · ClojureTV · 50:00
- WHY Exercise is so Underrated (Brain Power & Movement Link) · Joseph Everett - WIL · 15:14
- Everything you think you know about addiction is wrong | Johann Hari | TED · TED · 14:42
- The Speed of Light is NOT About Light · PBS Space Time · 12:46
- Quick-sort with Hungarian (Küküllőmenti legényes) folk dance · AlgoRythmics · 6:54
- AT&T Archives: Similiarities of Wave Behavior (Bonus Edition) · AT&T Tech Channel · 28:02
- 8-bit computer update · Ben Eater · 6:53
- Light Years Ahead | The 1969 Apollo Guidance Computer · TNMoC · 1:21:22
- “Hello, world” from scratch on a 6502 — Part 1 · Ben Eater · 27:24
- Finding the Missing Memristor - R. Stanley Williams · The Qualcomm Institute · 47:52
- [LIVE] How to Achieve Proper Grounding - Rick Hartley - Expert Live Training (US) · Altium · 2:19:51
- The Ultimate Game Boy Talk (33c3) · media.ccc.de · 1:01:06
- The Thirty Million Line Problem · Molly Rocket · 1:48:55