Visualizing Data with 7-Segment Displays
Displaying numbers is trickier than I expected! In this video we explore how to visualize the data inside of our simulated 4-bit registers, with the help of the double dabble algorithm and some seven segment displays.
Series playlist: • Exploring How Computer...
Simulation tool (work in progress): sebastian.itch.io/digital-log...
Source code: github.com/SebLague/Digital-L...
Support the channel: / sebastianlague
Correction for a mistake in my boolean algebra explanation: • Boolean Algebra Correc...
Resources and Inspiration:
en.wikipedia.org/wiki/Double_...
electronics.stackexchange.com...
pdf1.alldatasheet.com/datashe...
Music:
github.com/SebLague/Misc-Proj...
Chapters
0:00 Intro
0:49 Two’s Complement Refresher
1:34 Seven-Segment Display + Truth Table
2:58 Boolean Algebra Basics
5:43 Simplifying the Equation
6:48 Converting Algebra to Logic Gates
8:33 Computer-Assisted Design
11:25 Testing the Digit Display Design
12:36 A Real-World Version (the 74LS248)
14:20 Visualizing the Data in a 4-bit Register
15:14 All Ten Digits
17:22 Binary Coded Decimal
19:49 The Double Dabble Algorithm
22:58 Dabbling with Logic Gates
24:05 Implementing Double Dabble
26:39 Displaying an 8-bit Number
27:18 Ripple Blanking
29:32 Displaying Negative Numbers
32:34 Testing the Final Design
33:50 Outro
Hi everyone, the new version of the simulation software is now available here: sebastian.itch.io/digital-logic-sim Please note: I made a mistake in part of my boolean algebra explanation, and I've uploaded a quick video to correct that here: kzhead.info/sun/dJGvfLaMn5iAZ4k/bejne.html Also, the 1080p quality setting seems to have a lot of visual artifacts for some reason , so if you're able to watch at 1440p instead I'd highly recommend it!
"This was supposed to be just a short segment" Looks like some scope creep happened and it turned into 7 short segments ;) Absolutely love this series btw, such an awesome idea!
it's looking great! I absolutely enjoy watching your videos!
It's because KZhead gives a lot more bandwidth to resolutions higher than 1080p. So even if you can't watch it at full resolution, the higher bandwidth still makes for a better picture.
@@graealex Interesting..
I really hope that you will not let two year go by before a new video.
A while ago, I saw the first video you made which used that logic gate program, and was inspired to make a simplified version of that program. One of the things I tried to make was a 7-Segment Display. Eventually I did it, and while my solution was absurdly massive and overcomplicated, I was too busy celebrating the fact that I actually made a functioning program and made something with that program, and I have you to thank for it. I rarely write comments like this, but just know that even if we don't comment, there are many of us who are inspired by you, whether we're newcomers who have never written a "Hello World!" in their life, or veterans working on their next project. These videos are not only high quality, but incredibly informative, so keep up the outstanding work! Let's get you to 2 million subs next year!
Thank you, that means a lot!
I have neither the desire nor skill for stuff like this but boy do I find Sebastians explanations both beautifull and educational. Whilst understanding very little of the technical side, I always get a much better understanding of all the concepts. This is all achieved while keeping me highly entertained.
@@SebastianLague As one of the people you have inspired, these boolean logic videos are my favorite video series on youtube.🙂
Awesome! Have you thought about uploading that program to GitHub in order for others to be inspired by it as well? I know that you might think that it's not good enough to share, but believe me - it is. It's a start and might help to overcome the barrier of doubt for whoever views it.
I was wondering around to learn about electronics and soldering And saw this and got curious on how does the 7 segment really works I knew it was binary but god damn it's complexity I only had a base idea
I love how Sebastian's voice makes it sound like he's constantly smiling, enjoying himself doing all those great projects, and enjoying sharing them with others... that "audio smile" of his is super communicative, i always come out of those vids feeling happier and more optimistic about the world -- so thank you Sebastian!
I was thinking about this the whole time i was watching lol, it’s great
I can't really pack a display inside a chip. I mean, i have a 4 bit register with a display, which works fine when I am inside the chip. When I am dragging the chip in a new chip, the display is not being shown. Please someone help if you know what's happening.
@@neon_arch he didnt add that in for the downloadable version
Sure! Blessed voice. I can see his smile only from his voice. Blessed
Hi Sebastian, just wanted to let you know you're my hero. No, seriously. I had a bunch of practical exams on digital design (comparators, MUX, registers) and I absolutely ACED them thanks to this series. Your style and visual explanations are always soothing, so it didn't even feel like I was studying while watching your videos ❤
I’m happy to hear that, congrats on acing your exams!
Me too 🤩 I had exams of Digital Electronics and Semiconductor Devices in Dec 2021... Although I didn't ace the exams, but the concept became more clear than how my teachers taught in class. I'd like to thank you Sebastian, And also Ben Eater, Carrie Anne from Crash Course Computer Science and Paul Malvino for his book - Digital Computer Electronics.
I can't really pack a display inside a chip. I mean, i have a 4 bit register with a display, which works fine when I am inside the chip. When I am dragging the chip in a new chip, the display is not being shown. Please someone help if you know what's happening.
@@SebastianLague its good because i am going to make my own pc using digital code design
@ honestly, reply back to me when you get that done. I would love to see it!
He casually taught the entire first year CS number system course in a single video!
The visualization at 24:06 is genuinely so amazing, it's a perfect way to understand how you can take an algorithm you'd normally think of as imperative and step-by-step, and turning it into a direct pure functional solution
I do much agree, like it's phenomenal and logically sound.
Sometimes we forgot how many things are going on under our technology. A seemingly "simple" 3-digit visualization requires a lot of creativity and innovation. I have really enjoyed watching the Double Dabble algorithm explanation. I was surprised by the algorithm... it was like watching an exciting movie. 🎥 Thank you for bringing curiosity and education into the world! I really appreciate your effort.
totál egyetértek... elképesztő, hogy pár logikai kapuval és 0-1-ek felhasználásával hova jutottunk...
Totally agree
Beautiful. As an electrical engineer I always enjoy such videos. I hope people outside of computer science field also find these basic digital computing concepts as interesting as they are to us. Keep up the great videos
I’m a freshman in MEC engineering with currently the most minimal coding knowledge and surface level circuitry skills and this video is extremely interesting (and confusing 😅)
I absolutely love this project. It's so satisfying to see all the individual steps combining into something bigger, and that in turn being a new step in a different scale. It's just so nice.
Finally! I've been waiting for the third episode for so long! Just so you know, the two videos you made have gotten me very deep into electronics, and especially 8 bit computing, I even bought an arduino uno kit because of how intresting it was. I looked so much into computing and have watched through almost all of Ben Eater's videos. I just wanna say thank you, your videos have been very amazing and have thought me so much and introduced me into something that is my biggest hobby today. Thank you
I’m really happy to hear that!
I'm new to both these guys and have watched like 1 video each, I didn't even realize it wasn't Ben Eater lol (considering one did a Globe game and the other works with hardware mostly). Both of them are amazing and keep you glued throughout! Also this project was a big assignment on our Switching Circuits course, from start to end of the video, had a great time revisiting too.
I can't imagine how much time you invested to make such a beautiful and interesting video You're the best Teacher 👏👏👏
These videos are some of the best on the entire platform! They’re so informative and clear, have amazing visuals, and your enjoyment of it all shines through as well!
Fantastic to see you are continuing your work on Digital Logic Sim! Your logic tutorials are presented so entertaining and you are almost "live" building the tool to teach it with at the same time.
this series is way more eye-opening than my whole semester at digital engineering subject. Huge thanks to you, all your works are incredibly inspiring.
As a person who is bad with technology this video is helpful.
I love chicken, but sorry I love lamb more ^^
Hey im a chicken too. Just a bit zoomed out
I can tell with the double spaces lol
@@SomeOne-sv4vv you hate KFC , right?
Congratulations! Your **Block Coding** method has evolved into **Logic Gates method!**
This series in my opinion is now the gold standard for anyone who want's to get into the basics of 8bit and logic circuits. Brilliant work Seb.
Ben Eater has some great video series too.
Just an amazing video! Thank you for keeping up the work on this series. Explaining the 2-s compliment by saying the first bit becomes a negative 8 instead of arguing around with logic gates is something I've never seen before and that just instantly made me go "ohh that's how it works" which a semester of Computer science couldn't... Super cool, awesome work. Keep it up! Also excited to play with your logic simulator whenever it gets released! Would love to design my own cpu with it
Thank you so much for putting subtitles on! The auto-generated ones are good, but they don't nearly convey the way speech actually is heard. It was incredibly helpful, and I just wanted to express how thankful I am.
On behalf of everyone here, I will like to tell you that we really do APPRECIATE ALL TIMMME AND EFFORT you put into this. I can only imagine it. Thank you once again
This is great! Since your first video on the topic I took undergrad courses on building compact and robust logic circuits, cpu design, and compiler creation so now I get to appreciate these videos in a totally different way. Awesome presentation by the way. I love videos that don't skip too many steps, but are still visualized beautifully so that everything is very intuitive. That's a skill they don't teach you nearly enough when you are learning technical skills.
Just started wondering how my desktop computer actually works on a more in depth level and found your vids from two years ago. Delighted to see you decided to continue it even more just recently. You've got an amazing voice for this type of stuff, you explain things extremely concisely, and you even show both virtual and real world examples. I just want to say thank you for putting so much time and effort into teaching others this stuff, and you've done one hell of a job in doing so! I hope you get the attention you deserve 🤟
Thank you!
If you like learning about this topic I'd suggest maybe giving Ben Eater's series on building an 8-bit breadboard computer a watch too. He also does a pretty good job of explaining exactly what he is doing and why which helps to understand how things work too.
@@seraphina985 Thank you very much for this 🙏
This series is amazing. Even though I've already studied a lot of stuff you talk about, I still feel like it gives me a clearer and deeper understanding of things. It's fascinating to see you start from simple logic gates and building from them step by step, and I'm excited to see how far you'll go with this! (Can't wait to see you build a CPU hahaha). Looking forward to the next episode!
YESSS it's so great to see a new episode in this series! It's my favourite of yours, and that's saying something since I think all of your videos are fantastic :) Thanks heaps Sebastian
As someone who is taking my 1st semester in electrical engineering this series made me understand and enjoy my Digital Systems class. The way he can narrow down each concept so quickly but efficiently and with good visuals is what makes his videos so great
I recently had to do this exact same task for my computer science lecture and i am honest, you explained it way faster and better than the professors. Great video!
12:36 Truly remarkable work Sebastian's done on this new "Reality" project of his. The graphics look excellent!
That part really did look like a render
Please never stop this series! This is the most entertaining stuff on KZhead BY FAR!
This is my favorite series on your channel, really eye-opening
I cannot overstate how amazing this series is 🤩. Please make more of these 😁! Every single video in this series is covering the equivalent of a few classes of college/university courses in ~20 minutes 👀.
Absolute masterclass of how to teach technical topics. Amazing video. Thank you so much for your hard work on this.
i love this series so much, thank you for continuing to work on it Sebastian. this is top notch stuff. sharing the simulation software is just a whole 'nother level of awesome. you're the man
I love how joyful and entertaining your voice sounds. It really shows how much you like what you're talking about and it brings a smile to my face.
Man your visualizations have become really outstanding
Its been a long time since the last episode!! But I respect your hard work. Please continue the series, it helps us a lot!
you sound so happy while narrating everything to us in such a detailed yet simplified way
I love your visual style, it's so unique and relaxing
A year ago, I saw the first two episodes of this series and it actually inspired me to get into computer science, and thanks to your videos, I felt a new sense of purpose. Seeing this video on my recommended made my day, as I thought this series was discontinued. Please continue this series as much as you'd like to, because it is so entertaining and interesting. Thank you, Sebastian Lague!
In a similar sense, I have been always interested in stuff, but these videos are the only thing that provide me with a learning experience good enough to teach me how to do it.
This is NOT Computer Science, this is Electronics Engineering or Computer Engineering!
Even though, I have studied these things in college your videos always end up teaching me something new. I never knew why we did the +6 in BCD encoding or the +3 in double dabble. Thanks for another great video!
I’ve been waiting for this video for months. Legendary series, keep it up!
I learn an immense amount from these videos. I really hope you keep going with this series. Super interesting.
I'm really glad you continue this series! Definitely enjoy learning all these as a first year undergrad computer engineering student where college hasn't got into any kind of computer programming yet. This was a lot of fun and helps me pre-study for classes I'm about to take in the future. Thank you so much!
This is absolutely incredible. Thank you Sebastian ❤
This video has brought back painfully pleasant memories of figuring out my own 7-segment display maps for my college assignments (One of which I vividly remember watching your video on logic gates to help me understand it), and MAN does it put a smile on my face to just...see this stuff in action and know I can follow along nicely now. Great video as always, and nice graphics too! I wish the logic gate mapper I used was this nice-looking...
Wow, I'm blown away by the quality of your explanations and visualizations! Truly inspiring and very well done! I learned a lot.
That was wild Thanks for the update in the series
Thanks, it’s been a lot of fun working on the series again!
Ehh? 14 hours before the video was posted? (Edit: Just realised its probably Patreon or something) Great video btw!
Was waiting for another video in this series for a long time. And will will wait again. Keep up the amazing production value! (EDIT: a person, who replied in my comments using Sebastian's profile picture is not him. DO NOT CONTACT HIM, HE'S A SCAMMER! If you want to help, report his account)
As always. Some of the highest quality videos on KZhead. Well done. Look forward to the next one.
I've loved this series and watched it multiple times. I was both surprised and exited when this came out, please make more.
This series is giving very strong Zachtronic vibes! The way it teaches binary through simple components which are "boxed up" or "chippified" and reused to build more complex circuits is endlessly satisfying. I feel it would make for a super compelling (and educational) game where you make circuits from scratch and past "chips" to the point where you've made a very complex design, and it's your circuitry all the way down until you get to basic gates
Turing Complete does exactly this, and it's very fun
People like you make learning fun and interesting. Thanks a lot!!
Great video as always! I love how they're so calm and got such a beautiful visualisation as well! Thanks a lot!
I'm so happy to see that you decided to continue the series, I enjoyed the entire episode, and I will be looking forward to the next one.
I never cease to be amazed at the amount of work you put into each new video.
Oh, huh! I've always seen truth tables brought up only as a method of "visualizing" simple logic gates, I didn't know they actually had such an incredible use for simplifying logic design beyond that. I always learn so much from these videos.
The way you explain the logic makes it very easy to understand. Insane stuff, I love it!
I was so excited to see the continuation of this series! The first two videos were a great inspiration to learn more. Thank you Sabastian!!
I love it how this entire video is Sebastian slowly re-discovering what you can do with Verilog, yosys and netlistsvg in a few minutes. Welcome to digital design!
What's happeneing is he is learning it himself and teaching others while he learns. He's not rediscovering it, and the way you said this could be taken the wrong way.
Hey Sebastian! I am so thankful that I found you in youtube.. This is just so valuable and I really hope you are enjoying making these too! The gap between your videos is nothing compared to the value of your videos. Seriously, these are one of the most well made presentations on these kinds of topics, which people are having a hard time understanding. Thank you
Please keep making these videos as you've helped me to discover a new passion. I write an exam for my digital electronics course tommorow and next semester I will be in a computer architecture class and you're videos explain almost all the relative concepts in such a fun, easy to understand and interactive manner.
I love your videos! They are always so pristine looking and go into lots of details. You really inspire me!
I'm always amazed by how well put together your videos are
A feature you might add is to have a button to cycle through all input combinations. And perhaps have a way to tell it what inputs are allowed. Very nice project you're working on, and of course a brilliant presentation!
Absolutely incredible breakdown of digital logic and information display. I applaud your efforts. THANK YOU!
Please bring the later videos. We are super excited to watch them all.. they're very informative and interesting. Good work.!!!
I cant use any words in the english langauge to explain to you how good this video was. Explaining so clearly, awesome graphics, nice voice, interesting topic. Everything in this video ist just perfect. Also loved the animation 5:42 , made me smile :) Really a 10/10 video, loved it. I wish I could give you more than just one like :( Now I am gonna watch some of your other videos :))
Sebastian, please continue the series, this is freaking amazing !!!
I have absolutely no experience with anything like this and you made it completely understandable and also fun to watch. What an absolutely amazing video.
These videos are the best resource in the world for learning this stuff. It never feels like work and its all so clear to understand. Thank you :)
I love this series so much! Reminds me of doing redstone logic in minecraft as a kid, and the little tool youve made (with the ability to construct more complex gates/chips out of simple ones) is something I've always wanted as a tool for logic designing! I've tried programming something like it myself, but always got bored by having to make UI and never got very far.
I built an ALU in Minecraft 2 years ago by following the first video I just looked up how to make logic gates in the game. Funnily enough I tried to make a 7 segment display but had no idea how to do it. I guess I’ll finally do it . Edit: I built the 7 segment display and attached it to the output of my ALU. It works perfectly, although it is somewhat slow and it’s also huge. I don’t know if I’ll try building further as it will take a lot of time and be quite complicated maybe this could become a really long project(well technically it already is).
Chicken nuggies
I have a final in a couple of days in Switching Circuits and this video just summed up half of the content. I love your work and I appreciate every bit of it. Love.
you are insane tbh. I already knew all the concepts but you explain it so well and your simulation tool is amazing. Good job.
Hello Sebastian, just a quick suggestion if I may: On 16:00 where you talk about how the solver works, a better way to approach the problem IMHO would be to get a K-map minterms or maxterms solution and then apply De Morgan's laws to rewrite the expression so that it uses the allowed logic gates only. I have no idea how long this would take (especially if aiming for minimum gates) but it would be at least closer to how a human designer would approach the problem and possibly not need so long to refine to something passable as with completely random generation. Thanks for the awesome vid!
16:10 you can convert any truth table into a huge net of or and not and and gates (a net that litterally just takes every output and gives the exact inputs needed, then ors all those together), and then use some simplification algorithms to convert that to as small of an arrangement as possible.
That algorithm part seems to be the tough part though. Such an algorithm is interesting for sure I think
What a timing! I'm built this like a week ago. A little bit different ways, but it's working, and I'm very happy to see some other ways to do that!
We need a complete series about that !! Amazing videos !!!
when is the updated version out for us?
Would you consider allowing others to try your truth table resolving program? I'm mostly curious how you wrote that. It seems fairly complex but oddly useful. And it may not be 100% but it seems to have worked fairly well. Just curious, because I would love to understand that one. You are making awesome videos by the way, I'm hooked!
I love Boolean and Binary so much, this video is amazing. Such a concise and clear explanation of all of the little things. Thank you!
An informative, well-presented and inspiring video, as always ! Thank you for the hard work you put in your videos, they are always a delight to watch.
How do you make visualizations in your videos? I am very curious about that. A behind the scenes video would be great
It’s not a visualisation he programs it in Unity like he does with all his projects
@@gower1973 Yeah I know but there are some animations too like for example the one where he pushed the equation up or when he explains equations they popup with animations
If I drag out the digit display, the 7-segment display doesn't show.. just the text "DIGIIT DISPLAY", how do I fix this?
The same problem for me,did you fix it any how?
@@nizarbk866 nope idk
Yay! Glad to see updates on the DLS. I know there are other simulation tools, but I have a 4th grader who loves your videos and built the 4 bit ALU. It's just a lot more accessible than some of the others.
genuinely interesting to see and understand the concepts behind those 2 lines of code that we take for granted. much appreciated!
can you update download version ?
The 7 segment display won't show up on the chip, what do I do?
He is the creator of game and he made it so it work for him but not for everyone else
@@ilovebrisket55 wow I didn't know that 🤯
@@ilovebrisket55 It's not a game
This is really awesome. I'm looking forward to watching future videos
Simply facinating!
Hi Sebastian, thank you for the amazing videos. Could you someday show us how you make these videos, the animations (i believe they're in unity, but it must be very tough unless you've developed a separate system for it).
sir that is an 8 segment display 🛂
Decimal point doesn't count 😊
These videos are really helpful! Special mention to the subtle yet fun animations
Sebastian, as many in this thread, have already done I want to commend you on a fantastic series and magnificent voice and demeanor. I am retired now and have time to play with my hobbies in electronics and programming. This series compresses semesters of electrical engineering into what, a bit over an hour? I cannot imagine the time and skills needed to produce it. To say I am envious of your talent would be an immense understatement. Cheers, --RM
PS - I would have loved to have had your Digital-Logic-Sim application when I was back at university and it should be included in any Electrical engineering curriculum. It would be wonderful to see it developed further.
And just another comment with regard to these well-polished presentations. Someone suggested a behind-the-scenes production covering the process you use to produce one of these videos. I would be very excited to see something like this. In fact, it should be packaged and sold to university professors! These far exceed any lectures I can recall. Although, I could be lulled into a trance by your melodic voice (smile).
Thanks again! Took discrete math this semester, I wish you were my professor cause your practical use of truth tables helped solidify the early content.
Your work is hugely amazing and supportive to many other people. Thanks
Thank you very much for this video! You're literally answering the questions, that have been in my head for a long time. I loved watching this, and your other videos!
Definitely my favorite electronics series on KZhead. Happy to see another episode :)
These are some of the best videos talking about the gates inside the computer, I am happy you returned to this.
Thanks - I’ve read and listen to descriptions of twos compliment, but never seen it visualized as -8 (or equivalent) it now makes perfect sense to me
I love this series, I'm following along. Please keep up the great work!
I was JUST looking up your channel yesterday to see you had posted to no avail. Christmas comes early this year!