[CS61C FA20] Lecture 16.5 - Combinational Logic: Canonical Forms — Transcript
Full transcript
- 0:01and welcome back this is now the last in
- 0:03a series of combinational logic lectures
- 0:05in which we talk about
- 0:06canonical forms so canonical forms is
- 0:10a way to describe the word canonical
- 0:12means it's like the one representative
- 0:13thing of something
- 0:15so it says there are lots of ways to
- 0:16take this truth table and
- 0:18transfer it into a series of boolean
- 0:21algebra expressions
- 0:22but there is only one canonical form and
- 0:24so let's talk about that canonical form
- 0:26is and that actually helps us think
- 0:27about
- 0:27how to do this in general with any truth
- 0:29table so this is the part that i was
- 0:30talking about i didn't really tell you
- 0:31how to do this in general
- 0:32now we're going to go very slowly and
- 0:33make sure we do this so the way you do
- 0:36this in canonical form is you take a
- 0:37look at your truth table
- 0:39and you say where is there a 1
- 0:43in my output okay
- 0:46let's now back back for every one i kind
- 0:48of hinted to this how to do this but now
- 0:50i'm
- 0:50telling you formally every time you have
- 0:52a one this is a one
- 0:54if and only if this is a zero
- 0:57and that is a zero and that is a zero
- 1:00and
- 1:00another example this is a one when this
- 1:02is a zero this is a zero and that's a
- 1:04one
- 1:05so what expression would be true for
- 1:08just
- 1:08that row just that row every
- 1:12time you have a zero you put a not in
- 1:14front of that term every time there's a
- 1:15one
- 1:16every time there's a one you just leave
- 1:18that term there
- 1:20so in general let's pick a term that has
- 1:21ones and zeros in it
- 1:23so this term would be for that one only
- 1:26that one would be when
- 1:28a is true and b is false
- 1:31and c is false otherwise otherwise known
- 1:34as
- 1:34a not b not c
- 1:37if you do this for all the rows now i
- 1:39have just a term for here a term for
- 1:41there a term for there a term for there
- 1:43then you then take that and say well
- 1:46it's this
- 1:47it's a one where this is the case or
- 1:50when that's the case or when that's the
- 1:53case or
- 1:54that's the case and so we're going to
- 1:56see is this canonical form
- 1:58is called the sum of products
- 2:01and that's the idea it's saying it's
- 2:04that row
- 2:04or that row or that row or etc or that
- 2:07row until you're all done
- 2:09and that's the canonical form for taking
- 2:11a truth table
- 2:12and you can do this now for any truth
- 2:13table i can have an infinite long truth
- 2:14table and i just go over every one
- 2:16in the outputs for however many outputs
- 2:18i have that one for that particular bit
- 2:20is true when
- 2:21and i go through and i make a product
- 2:23and i somehow have to negate some of
- 2:24these terms
- 2:25and it's that there you know it's like a
- 2:27and b and not c
- 2:29which is the last term in this example
- 2:30okay so that's canonical form part one
- 2:34then i take the canonical form and i
- 2:37bring it into my world of boolean
- 2:38algebra
- 2:39i dip my hands in building algebra
- 2:41massage oil and i start working it i
- 2:43start working that mess
- 2:44i start working that expression so let's
- 2:46do this together and i'm here showing
- 2:48you exactly this is
- 2:49i had to do this by the way when i was
- 2:50taking my geometry uh
- 2:52lessons back in high school where i had
- 2:54to kind of make the rule the trend
- 2:56oh this is a side angle side and then
- 2:57move it to the next level and i always
- 2:58have to label it with
- 3:00what is the rule i'm applying there we
- 3:02could ask you to do that so make sure
- 3:03you know what the rules are
- 3:04we always let you bring your you know
- 3:05bring the table of that slide
- 3:07of all the rules with you but i don't
- 3:09tell you how to use them so here we go
- 3:11well i've got these three terms i see a
- 3:14common not a not b
- 3:16here so i could reverse distribute
- 3:19not a not b into this so i have this
- 3:21term out the same thing with
- 3:23a and not c that's also
- 3:26that's also communicativity i'm
- 3:28switching that so the a not c
- 3:30is in the front so a not c not b
- 3:33or a not c b that gives you these two
- 3:36terms
- 3:37now c or not c well
- 3:40i'm either happy or i'm not happy folks
- 3:43you're always going to be a 1 there
- 3:45i'm either happy or not i either have
- 3:47pizza i don't have pizza either burrito
- 3:48or no burrito
- 3:49folks that's a one so that's the
- 3:51complementarity rule we saw there
- 3:54and this is the easy one you know this
- 3:55from algebra that's just identity and
- 3:57that gives you
- 3:58the simplest form here so this is not a
- 4:01not b
- 4:02or a and not c and we can now
- 4:05transfer this into a gate diagram and so
- 4:08i now have
- 4:09i take my watch here i try to make use
- 4:12of the fact that
- 4:13i've got to have um actually this is all
- 4:15unique there's not a single doubling up
- 4:17here
- 4:17so i've got a not b i need i've got a
- 4:19not a and an a i need
- 4:21and i need not c i don't need c and i
- 4:23also don't need b
- 4:24there's no c and b terms in here and
- 4:26this is an or of that so i can already
- 4:28see this i can already see there's going
- 4:29to be one
- 4:30ore and i'm going to see an and here and
- 4:32i see an and here
- 4:34and i probably need some knots for these
- 4:35guys each of these mapped to those
- 4:37knots and if i then remove the not gates
- 4:40and push those bubbles up to the front
- 4:41or the output
- 4:43uh so you know you push the if i had a
- 4:44knot at the end if i had if i had a knot
- 4:46at the end i would have pushed that
- 4:47bubble there so
- 4:48you take the knots and then push those
- 4:50in as another way of thinking this is
- 4:52kind of what everyone
- 4:53pro tip draws is we don't draw any knot
- 4:55case we always draw them as bubbles and
- 4:57you push them into the either the input
- 4:58of the output of the gates of and and or
- 5:00or x or whatever whatever you have it
- 5:02okay
- 5:03that's pretty cool so truth table
- 5:07massage truth table sum of products to
- 5:09get canonical form
- 5:11and now i take that to then bubble it
- 5:13down to be the simplest form i can
- 5:16okay very good
- 5:19in conclusion
- 5:23we're going to pipeline big delay
- 5:25combination logic for a faster clock we
- 5:27saw that
- 5:28we love finite state machines they're
- 5:30able to describe a brain of a system
- 5:32how to do something a turing machine a
- 5:34universal turing machine is basically a
- 5:35finite state machine drive
- 5:36driving how a tape moves left and right
- 5:39and we can see these
- 5:40this beautiful graph to describe how we
- 5:43move
- 5:43from truth tables to boolean expressions
- 5:45to gate diagrams
- 5:47i can go back and forth from a truth
- 5:48table to a boolean expression no problem
- 5:50i can go back and forth from a truth
- 5:52table from a gate diagram
- 5:54to a bully expression and back but
- 5:57it's not immediately clear how i go from
- 6:00a truth table
- 6:01to a date gate diagram that's hard to do
- 6:03we say
- 6:04you know i can't get there to hear i
- 6:06want you to go to a balloon expression
- 6:08and then maybe simplify it and then go
- 6:10to the date guided so this is not
- 6:11something we
- 6:12we say it's easy to do you want to go to
- 6:14a bully expression and then massage it
- 6:15to that the simplest decay diagram
- 6:17because again you want the simplest
- 6:18driving gate diagram you can that's it
- 6:21that's the end of this lecture
- 6:22we'll see the next one take care
About this transcript
This page contains the full transcript of [CS61C FA20] Lecture 16.5 - Combinational Logic: Canonical Forms by CS 61C Departmental, generated from the public captions YouTube serves with the video. The transcript has 1,365 words across 207 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.