[CS61C FA20] Lecture 16.3 - Combinational Logic: Boolean Algebra — Transcript
Full transcript
- 0:00and welcome back this still series is
- 0:02called combinational logic but we're
- 0:04going to learn about boolean algebra
- 0:05that i've hinted
- 0:06about before so i also mentioned a
- 0:08couple lectures ago that george boole
- 0:10claude shannon made the connection
- 0:11between transistors
- 0:13and the mathematical work of george
- 0:14boole to wow ones and zeros and and
- 0:17transistors and circuits
- 0:18that connection was really wonderful and
- 0:20really rich and so he named it bowling
- 0:22algebra in honor of george boole
- 0:24there are some primitive functions that
- 0:26boolean algebra has
- 0:28they're and or and not powers are that
- 0:30we can use normal mathematics and
- 0:32connections between
- 0:33massaging things in the boolean algebra
- 0:34world and then making a connection
- 0:35between how the circuit might change and
- 0:37be equivalent as well
- 0:38this is the first thing i'm sharing
- 0:39that's brand new from now on
- 0:42if i ever say plus i mean or
- 0:46if i mean if i say times i mean and
- 0:49and if i draw a bar on top i mean not
- 0:52and if that bar is over a big expression
- 0:54i mean invert that whole expression
- 0:57the bar is only over a term i just mean
- 0:59invert that term okay so remember that
- 1:01as we move on
- 1:02to this so here is the boolean algebra
- 1:04here's the circuit
- 1:05of a majority function what would that
- 1:08look like in boolean algebra let's take
- 1:09a look
- 1:10i'm seeing a and
- 1:14c which remember now is a times c
- 1:18i'm also seeing b times c
- 1:21i'm also seeing a times c
- 1:24and there's an or with all of that which
- 1:26means they all have to be grouped with a
- 1:28plus between them and that's what i get
- 1:30a times b
- 1:32a times c and b times c
- 1:36and you're going to notice by the way i
- 1:37didn't do the same order
- 1:39the interesting thing is this order
- 1:41doesn't matter why because boolean
- 1:42algebra tells us that
- 1:44that addition is commutative a or b
- 1:47is the same as b or a and i can also
- 1:50flip the order of these two as well
- 1:52a times b is equal to b times a because
- 1:54multiplication is also commutative
- 1:56pretty cool okay
- 1:59because we don't know you know when
- 2:01we're kind of learning algebra maybe in
- 2:03ninth grade we don't have to put a dot
- 2:05between any two product we can just say
- 2:06a b now remember i don't mean
- 2:08a b a single line called ab and there's
- 2:11a single line called act in a single
- 2:12line called book
- 2:13i don't mean that i mean these are three
- 2:15different signals and they're
- 2:16the products are themselves this is a
- 2:18challenge where we go to the next slide
- 2:19where you see
- 2:20that sometimes our input names aren't
- 2:23single letters they are
- 2:24they're even more complicated this input
- 2:26means it's a
- 2:27single in a single single sig
- 2:30single signal that's i say that 10 times
- 2:33fast
- 2:34um that that happens to have five
- 2:37letters describing it
- 2:38ps is a two-bit signal so i have to have
- 2:42ps
- 2:42sub one and ps a sub zero again this can
- 2:45be complicated but let's see if we can
- 2:47actually work through this
- 2:48we saw this before okay this is our
- 2:50finite state
- 2:52machine encoded as a truth table and
- 2:54it's a one
- 2:55only if and only if the first
- 2:59ps sub one is one and
- 3:03ps sub zero is zero
- 3:06and input is one
- 3:09so there's my circuit we see this before
- 3:11okay we also saw we could simplify it to
- 3:14that
- 3:15and the interesting thing is how do i
- 3:16then take this
- 3:18and write this in a boolean algebra way
- 3:21well i've got ps sub 1 and
- 3:24or times not ps of 0
- 3:30and input so output should be the
- 3:32product of all three of those terms
- 3:34with a bar over ps of zero and that's
- 3:36exactly what i get
- 3:37output is ps sub one one term and
- 3:40not ps of zero and input okay and don't
- 3:43remember don't think this is
- 3:45five different inputs each a single bit
- 3:47long and it's i
- 3:48times n times p that's not what we have
- 3:50and so try to try not to have you can
- 3:52have a system where
- 3:53there's also an n and a p and a u and
- 3:55that don't do that
- 3:56make sure you're very clear and don't
- 3:57ever have another bit input
- 3:59here's an i input and an n and then some
- 4:01product is
- 4:02input and that that would be
- 4:03indistinguishable from this input which
- 4:05is a single line and you mean five
- 4:07different lines don't do that
- 4:08so keep the naming uh consistent you can
- 4:10get in trouble with that so try just to
- 4:11be clean with that
- 4:13we can do a simplification we're going
- 4:15to reuse this our last slide on this but
- 4:16we're going to be able to see that i can
- 4:18go from a circuit
- 4:19to then some kind of equation derived
- 4:21from that circuit and then use my
- 4:23balloon algebra
- 4:24to actually simplify that circuit to get
- 4:27the simplified version this is the
- 4:29simplest form of boolean algebra
- 4:31therefore i've simplified the actual
- 4:33circuits needed to so if i'm gonna have
- 4:34to wire these guys
- 4:35or use transistors on a chip i would
- 4:37much rather have the simplified version
- 4:39that's the fewest number transistor to
- 4:41use that this is only one gate
- 4:43i love that that's much better than
- 4:44these three gates this has much more
- 4:46delay
- 4:47this is more area on a chip i have more
- 4:49delays there's a lot of reasons i don't
- 4:50like this
- 4:51more complicated circuit i do want the
- 4:52simplest form fewer delays all of that
- 4:55so
- 4:55we're going to see the power of blue and
- 4:57algebra is this and the next slide the
- 4:59next lecture is going to be
- 5:00all talking about what are these
- 5:02identities we're doing to massage these
- 5:04equations down
- 5:05they look like you know they look like a
- 5:06normal look a b plus a
- 5:08somehow i distribute like an a out to
- 5:11get b plus one
- 5:12how is b plus one one we're going to
- 5:14show you all of those rules
- 5:15in the next lecture we'll see you there
- 5:19there's just one more thing before i
- 5:20close i almost forgot to mention this
- 5:22one of the great ideas about balloon
- 5:23algebra is i can say i got two circuits
- 5:26are they the same or not actually if i
- 5:28use boolean algebra
- 5:30to simplify both circuits so convert the
- 5:33convert the circuits to the
- 5:34algebraic equivalent then massage them
- 5:37down to
- 5:38see if at the core they end up at the
- 5:40same simpler equation
- 5:42after the same simple equation they are
- 5:44the same circuit so it's a great way to
- 5:45be able to see if two different circuits
- 5:46that look very very different
- 5:48are actually the same thing once i use
- 5:50my building algebra to simplify them to
- 5:51the simplest form
- 5:52i can just compare those simplest forms
- 5:54it's often hard to kind of figure out
- 5:55what the simplest form is
- 5:56if you kind of just have magic fewest
- 5:58gates or something but it's really a
- 5:59nice way to be able to compare two
- 6:00different circuits
- 6:01just want to make sure i added that
- 6:02before i closed thanks
About this transcript
This page contains the full transcript of [CS61C FA20] Lecture 16.3 - Combinational Logic: Boolean Algebra by CS 61C Departmental, generated from the public captions YouTube serves with the video. The transcript has 1,211 words across 193 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.