video thumbnail 34:25
Visualizing Binary Data with 7-Segment Displays

2022-12-09

[public] 138K views, 38.1K likes, dislikes audio only

channel thumbSebastian Lague
4K

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: https://www.youtube.com/playlist?list=PLFt_AvWsXl0dPhqVsKt1Ni_46ARyiCGSq

Simulation tool (work in progress): https://sebastian.itch.io/digital-logic-sim

Source code: https://github.com/SebLague/Digital-Logic-Sim

Support the channel: https://www.patreon.com/SebastianLague

Correction for a mistake in my boolean algebra explanation: /youtube/video/A-vLRThfJ4Q

Resources and Inspiration:

https://en.wikipedia.org/wiki/Double_dabble

https://electronics.stackexchange.com/questions/499884/3-digit-of-7-segment-on-logisim/499916#499916

https://pdf1.alldatasheet.com/datasheet-pdf/view/5697/MOTOROLA/SN54/74LS248.html

Music:

https://github.com/SebLague/Misc-Project-Info/blob/main/Digital-Logic-Sim/7Seg%20Music%20Credits.txt

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


Boolean Algebra Correction by Sebastian Lague
/youtube/video/A-vLRThfJ4Q
Intro
/youtube/video/hEDQpqhY2MA?t=0
Two’s Complement Refresher
/youtube/video/hEDQpqhY2MA?t=49
Seven-Segment Display + Truth Table
/youtube/video/hEDQpqhY2MA?t=94
Boolean Algebra Basics
/youtube/video/hEDQpqhY2MA?t=178
Simplifying the Equation
/youtube/video/hEDQpqhY2MA?t=343
Converting Algebra to Logic Gates
/youtube/video/hEDQpqhY2MA?t=408
Computer-Assisted Design
/youtube/video/hEDQpqhY2MA?t=513
Testing the Digit Display Design
/youtube/video/hEDQpqhY2MA?t=685
A Real-World Version (the 74LS248)
/youtube/video/hEDQpqhY2MA?t=756
Visualizing the Data in a 4-bit Register
/youtube/video/hEDQpqhY2MA?t=860
All Ten Digits
/youtube/video/hEDQpqhY2MA?t=914
Binary Coded Decimal
/youtube/video/hEDQpqhY2MA?t=1042
The Double Dabble Algorithm
/youtube/video/hEDQpqhY2MA?t=1189
Dabbling with Logic Gates
/youtube/video/hEDQpqhY2MA?t=1378
Implementing Double Dabble
/youtube/video/hEDQpqhY2MA?t=1445
Displaying an 8-bit Number
/youtube/video/hEDQpqhY2MA?t=1599
Ripple Blanking
/youtube/video/hEDQpqhY2MA?t=1638
Displaying Negative Numbers
/youtube/video/hEDQpqhY2MA?t=1772
Testing the Final Design
/youtube/video/hEDQpqhY2MA?t=1954
Outro
/youtube/video/hEDQpqhY2MA?t=2030
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support on Patreon patreon.com
https://www.patreon.com/SebastianLague/
I Created a (terrible) Video Game Console 2,210,305 views
/youtube/video/TURzbXTNaA0
I Tried Creating a Game Using Real-World Geographic Data 5,172,413 views
/youtube/video/sLqXFF8mlEU