[CS61C FA20] Lecture 14.1 - Intro to Synchronous Digital Systems: Switches — Transcript
Full transcript
- 0:05oh
- 0:06so sorry i didn't see you there welcome
- 0:08to cs61c's lecture
- 0:10on synchronous digital systems woo
- 0:14great to have you back let's jump right
- 0:16in we're talking about
- 0:18switches so this is the picture you've
- 0:22seen before
- 0:22this is the layers of abstraction that
- 0:25we talk about in old school machine
- 0:27structures this course is called machine
- 0:29structures and very as well
- 0:30the great idea could be great ideas in
- 0:32computer architecture so this talks
- 0:34about
- 0:34the action happens all around the middle
- 0:36the isa the instruction set architecture
- 0:39we kind of work our way down from the
- 0:40top and we kind of work our way up from
- 0:42the bottom
- 0:43to to teach you how a complete computer
- 0:46works and so we'll continue to do this
- 0:48kind of going from the bottom up these
- 0:49lectures are starting from the bottom
- 0:50and working our way up
- 0:52new school machine structures it's a
- 0:53little more complicated
- 0:55you've got a warehouse scale machine
- 0:57which is breaking up broken up into
- 0:59computers and that computer has multiple
- 1:01cores in one of those cores you have
- 1:03a processor that that's the kind of
- 1:05piece of a processor of a core
- 1:07execution units functional units memory
- 1:10and then within that is
- 1:11main within that is the logic gates
- 1:14so when we talk about the parallelism on
- 1:16the left we're mentioning there's a lot
- 1:18we're going to eventually at the end by
- 1:19the end of the year
- 1:20teach you all five of these but for now
- 1:22we're going to teach you the first one
- 1:23which is
- 1:24parallel hardware descriptions when you
- 1:26say and
- 1:28bitwise and of a and b 32
- 1:31parallel and gates go and have the
- 1:34output has another 32 bits so it's a 32
- 1:37wide and gate bitwise and gate so how do
- 1:40you even build that i don't even think
- 1:41about that
- 1:42probably you can imagine how to do that
- 1:43just put 32 ands together but if you as
- 1:45you get more complicated operations
- 1:46we'll teach you how to do this in these
- 1:47series of lectures
- 1:48it's going to be kind of cool again here
- 1:51is the
- 1:51kind of new school way of thinking about
- 1:53another way of looking at the layers of
- 1:54abstraction from the languages to the
- 1:56top
- 1:56to the circuit levels at the bottom and
- 1:58we're going to do everything below that
- 1:59everything below the isa line we're
- 2:01teaching in these series of lectures
- 2:03this particular one is sts and then
- 2:05we'll get there and we'll say okay now
- 2:06we have blocks
- 2:07i headed over to borah and borah's going
- 2:08to take it over and talk about how to
- 2:10then take those blocks and build
- 2:12a running risk 5 computer that's amazing
- 2:15so by the end of this you're going to
- 2:16have a running risk drive computer to
- 2:18run
- 2:18the machine code you compiled assemble
- 2:21and linked down to so this connection
- 2:23day is going to be a really special day
- 2:24and i can't wait till we get to that
- 2:25stage 661c is a special course for that
- 2:28reason
- 2:29so we're talking about synchronous
- 2:30digital systems let's let's kind of
- 2:32decompact that and decompress that just
- 2:34understand what those words mean
- 2:35synchronous means you've got a heartbeat
- 2:37you've got a heartbeat to the system
- 2:39that heartbeat is your clock and that
- 2:41clock operates probably nowadays in the
- 2:43three or four gigahertz
- 2:44range back when i was coming up uh it
- 2:47was
- 2:47100 megahertz and then 200 megahertz and
- 2:49everyone kept saying oh my gosh three
- 2:51can't wait till it's 400 and 500 then
- 2:53when we hit a gig oh my gosh a gigahertz
- 2:54what can you imagine
- 2:56so four gigahertz means four billion
- 2:58times a second that clock is going one
- 3:00zero one zero as a square wave pretty
- 3:02incredible pretty incredibly fast
- 3:04um digital means you saw digital we
- 3:06talked about analog to digital
- 3:08conversions um digital means we're going
- 3:10to take the
- 3:11beautifully wonderful real world analog
- 3:13values of voltage and current
- 3:15and quantize them to be a zero and a one
- 3:18and that's the idea that's what a bit
- 3:19comes from
- 3:20so when current is flowing we've got a
- 3:22one current is not flowing
- 3:24it's a zero pretty simple so we'll think
- 3:26about that and talk about that
- 3:27actually by going to the lowest level so
- 3:28let's actually talk about
- 3:30first logic designer then switches and
- 3:32kind of the basics of that if you were
- 3:33to do this at home you can by the way do
- 3:35this at home with a
- 3:36a bulb and a light the next slide or two
- 3:38so in the next series of
- 3:39several weeks we're gonna be talking
- 3:41about how to build a processor we're
- 3:42gonna
- 3:43we talked about how to compile and link
- 3:44assemble and link down to machine code
- 3:46how do we even begin to think about
- 3:48building a processor that can
- 3:50run that code and actually execute it
- 3:52flawlessly i mean flawlessly remarkable
- 3:54never makes a mistake if
- 3:56all the pieces work i have a working
- 3:57risk five machine that should work
- 3:59forever
- 3:59amazing how do we do that well we're
- 4:01going to start at the lowest level
- 4:03hardware design it's great to understand
- 4:06what this is it's i mean it's nice to be
- 4:07able to for the same reason the 621a is
- 4:09great you don't have to worry about how
- 4:10memory management works or how
- 4:12anything is you know what the run time
- 4:14really is below the line maybe you do a
- 4:15little bit
- 4:16and then 6 to 1b we unpacked it a little
- 4:18bit we teach you how still memory
- 4:19management is covered for you
- 4:21but you need to know what the size of
- 4:22the you know this is a float this is a
- 4:24double you need to know that you didn't
- 4:25need to know that
- 4:26certainly you need to know it at python
- 4:28you could note about that you didn't
- 4:29need to
- 4:29as we get lower as we continue to reveal
- 4:31the layers of the onion
- 4:33it's great to not just stop at the isa
- 4:35and say well somehow hardware does this
- 4:37thing i don't know how it does it
- 4:38it's great to actually understand what's
- 4:40beneath the hood to be able to optimize
- 4:42to be able to say oh wow that's how i
- 4:44can optimize
- 4:44the cache or use parallelism in
- 4:46different ways or be able to know what
- 4:48the limitations of a bid are this is why
- 4:49this
- 4:50course is so wonderful revealing all the
- 4:51layers behind that were all abstracted
- 4:53away from you in other courses so what
- 4:56what are processors good at what are
- 4:57processors bad at what can they do fast
- 4:59what can't they so
- 5:00avoid the slowed things and optimize for
- 5:02the fast things they can do
- 5:03um there are more courses beyond this
- 5:05150 152 where courses you can take
- 5:07beyond that i encourage you strongly to
- 5:09think about that
- 5:10um and there there are other things you
- 5:12can do with other than just
- 5:13take a processor from the store and use
- 5:16it you could design your own processor
- 5:17you can
- 5:18design custom hardware for some task you
- 5:20need to understand basics of hardware
- 5:22and logic design
- 5:23helps you give those tools to be able to
- 5:24build that build that hardware pretty
- 5:26cool
- 5:26you walk you walk and you walk a little
- 5:28taller once you learn this material like
- 5:30wow i could actually build
- 5:31any machine yeah you actually can after
- 5:33these courses it's pretty pretty cool
- 5:35so very basic let's we're going to walk
- 5:38really slowly before we start to run
- 5:40later
- 5:41implement a simple circuit i think i did
- 5:42this in third grade
- 5:44where i had i folded up some aluminum
- 5:46foil and i had this and i had a light
- 5:48bulb from my i had a i had a flashlight
- 5:49i took the light bulb out
- 5:50and i had a i had a battery and then i
- 5:53literally
- 5:54taped the battery to this side and i
- 5:55made a connection and so
- 5:57we're going to actually start to use
- 5:58some language that will help connect
- 6:00this to the material a little later on
- 6:02so we're going to see i have this
- 6:05circuit
- 6:06this is about let me actually use this
- 6:07and give you a little bit of a thing
- 6:09here
- 6:10so this is the symbol for a battery
- 6:13that's pretty cool um this is a symbol
- 6:16for a light
- 6:17and this is the symbol for a switch okay
- 6:19so i've got my simple circuit i did
- 6:21before i was in fourth grade
- 6:22and the idea is we're going to consider
- 6:25that switch
- 6:26open to start with and we're going to
- 6:28close it then
- 6:29when i close it it forms a full circuit
- 6:31and you probably remember this from
- 6:33early you know experiments in in science
- 6:35class
- 6:36you have to have a closed circuit for
- 6:37current to flow you can't have an open
- 6:39circuit
- 6:40so a closed circuit that means there's a
- 6:42there's a way for a current to flow
- 6:43around that and
- 6:44current you can think of these electrons
- 6:46are flowing from the battery they go
- 6:48through the light they get the light
- 6:49excited and they flow back and they go
- 6:50back to the inside once
- 6:52only when you have that that circuit
- 6:53closed can you have any current flowing
- 6:56and have that light go on
- 6:58so when a that switch goes to set to one
- 7:02we're going to say it's closed i now
- 7:03have a closed circuit and now i have the
- 7:05light goes going on
- 7:07if a goes to zero by the way we're going
- 7:08to call that also asserted when i assert
- 7:11a so our cert means turn it to one or
- 7:13close it in this particular case okay
- 7:15so when i assert a light goes on when i
- 7:18uninsert
- 7:19a blink i open that that circuit that i
- 7:21open that
- 7:22switch it's now an open circuit now
- 7:24there's no way for current to kind of
- 7:26have a loop anymore
- 7:27and because of that the light goes off
- 7:29okay so we're going to say
- 7:31that the brightness of z is connected to
- 7:33a
- 7:34one to one so now
- 7:37can you actually wire some circuits to
- 7:39do some logic you can and you could have
- 7:40done this in fourth grade too
- 7:42what if i had two switches and i lined
- 7:44them up in serial
- 7:46this is the first picture is in serial
- 7:48well
- 7:49i've got two switches here you might
- 7:52think to yourself
- 7:53when is there a closed circuit when can
- 7:55when can there if there's a light in a
- 7:57you know
- 7:57a battery and a light as part of that
- 7:59loop when is there a connection
- 8:01there's again this is just replacing
- 8:02that switch with this two here this is
- 8:03showing the battery in the light anymore
- 8:06well you can see that i only have
- 8:08current to be able to flow when both
- 8:10a and b i could have said this to a
- 8:13fourth grader they say yeah when a
- 8:14and b so they're already thinking about
- 8:16kind of the logical sense of it they
- 8:18probably don't even know what a truth
- 8:19table is
- 8:19but you realize they're only a closed
- 8:21circuit when a and
- 8:23b are both asserted closed so
- 8:26here z is a and b all of a sudden just
- 8:28thinking about switches connected to our
- 8:30boolean logic it's pretty cool not still
- 8:31a single bit
- 8:32but it's pretty cool and this is wiring
- 8:35them
- 8:36in parallel so i don't care whether
- 8:39current by the way current doesn't
- 8:40either
- 8:40current doesn't care whether it goes
- 8:42through one or down the other one
- 8:44through a or through b or through both
- 8:46kermit's just happy to get from from
- 8:47left side to the right side but from
- 8:48right side to the left side
- 8:50so this is a connection wiring them in
- 8:52parallel gives me the
- 8:53or gate the boolean one bit boolean or
- 8:56gate
- 8:57it's closed there's a path if a
- 9:00or b are closed that's pretty cool so
- 9:02already we're seeing a connection
- 9:04between our switches our very basic
- 9:06switches that again you could wire at
- 9:08home with
- 9:09some aluminum foil and a battery and a
- 9:11light bulb from your flashlight
- 9:13although they're now leds and so i don't
- 9:15know if that still works but you know
- 9:16maybe you can
- 9:16connect it connect it to the leads of
- 9:18your flashlight and say flashlight's
- 9:19still going but you're connecting out
- 9:21here and making some switches out here
- 9:22you could do that it'd be really fun to
- 9:23do and i'd love to see
- 9:24please feel free to post on piazza with
- 9:26pictures of yourself doing that that'd
- 9:27be really fun
- 9:28so anyway here's switches to boolean
- 9:30logic pretty cool
- 9:33let me just give a historical note
- 9:34before we close this this set of lecture
- 9:35this lecture off
- 9:37um in the early days folks just build ad
- 9:39hoc circuits and they were like oh
- 9:40look what this does i look what this
- 9:41does and then they say wait there's kind
- 9:43of an andy thing going on and there's
- 9:44kind of an ori thing going on this is
- 9:46the early early days
- 9:48it really wasn't until claude shannon uh
- 9:51people consider claude shannon the
- 9:53father of information systems
- 9:55his master's thesis he was a brilliant
- 9:57you know brilliant scholar and his
- 9:58master's thesis made a connection
- 10:00between transistors the thing he was
- 10:01working on
- 10:02and this mathematician back from the
- 10:0519th century named george bull is a
- 10:06picture of him on the bottom right
- 10:08and he decided to call it boolean in his
- 10:11honor
- 10:12he made that connection says you know
- 10:13what there's really some boolean natures
- 10:15to it so
- 10:15the word bullying came from that
- 10:17connection between george bull
- 10:19and the work that he was doing in
- 10:20transistors is pretty cool and we
- 10:22arrived and
- 10:22we realized through that connection we
- 10:24realized now we can use mathematics
- 10:25to do amazing things like hardware
- 10:27design minimization
- 10:28um boolean boolean algebra
- 10:32models of circuits all these things
- 10:33we'll teach you in these series of
- 10:35lectures
- 10:35and that connection was again made by
- 10:36claude shannon pretty cool we'll see the
- 10:38next lecture we're talking about
- 10:39transistors see you then
About this transcript
This page contains the full transcript of [CS61C FA20] Lecture 14.1 - Intro to Synchronous Digital Systems: Switches by CS 61C Departmental, generated from the public captions YouTube serves with the video. The transcript has 2,370 words across 378 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.