YouTube2Text

[CS61C FA20] Lecture 14.2 - Intro to Synchronous Digital Systems: Transistors — Transcript

by CS 61C Departmental · 2,662 words · 419 segments · language en · Watch on YouTube

Full transcript

  1. 0:01and welcome back
  2. 0:03now let's talk about the next big piece
  3. 0:05in our logic design puzzle
  4. 0:07the transistor so the transistor was
  5. 0:10born
  6. 0:11two days before christmas 1947 just a
  7. 0:13couple of years after the war ended
  8. 0:16boy fundamentally transformed everything
  9. 0:18we know about electronics
  10. 0:20and all the hardware devices you have
  11. 0:22give it
  12. 0:23if it's due to the fact that they
  13. 0:24invented this transistor back then it
  14. 0:26was huge it was this big it was
  15. 0:28it was the goal was to and the goal was
  16. 0:31to try to figure out
  17. 0:32what was happening they fully didn't
  18. 0:34understand what was happening in the
  19. 0:34early days if you look at the story
  20. 0:36there's a whole
  21. 0:36i linked on the top right a couple of
  22. 0:38videos and i encourage you to watch
  23. 0:40pbs.org transistor for the history
  24. 0:43they were like discovering this
  25. 0:45wonderful piece of science that
  26. 0:47like current can flow it's called a
  27. 0:49semiconductor because current flows
  28. 0:51um and is even amplified uh in this
  29. 0:54wonderful way if the distance between
  30. 0:57these two leads is just right so they
  31. 0:59had to take a razor blade and cut them
  32. 1:00watch that video it's a fascinating
  33. 1:01video but the idea is
  34. 1:03it's called a semiconductor for a reason
  35. 1:05sometimes it conducts sometimes it
  36. 1:07doesn't and
  37. 1:08you can control whether it conducts
  38. 1:09electricity or not with another source
  39. 1:12so it's like one source acts like the
  40. 1:14gate to
  41. 1:15tell you whether these two leads are
  42. 1:16connectable or connectable are either
  43. 1:18amplified
  44. 1:19uh the voltage here is either amplified
  45. 1:21or either connected or not connected so
  46. 1:23we can either use to be as an amplifier
  47. 1:25or as a switcher as well i want to give
  48. 1:27credit to bridene shockley and pretend
  49. 1:30as the adventures of this back in the
  50. 1:32day before that they had vacuum tubes
  51. 1:34which used to
  52. 1:35which were you know thousands of times
  53. 1:37the size and would
  54. 1:38break and fail at you know unexpected
  55. 1:42times and it was really hard
  56. 1:43just replacing the vacuum tubes and all
  57. 1:44the electronics before the transistor
  58. 1:46came in so it also had
  59. 1:47a better life a better longevity for
  60. 1:50them
  61. 1:52after that integrated circuits shrinking
  62. 1:55the size of these things every year we
  63. 1:57see
  64. 1:57um the the size of transistors shrink
  65. 2:00it's remarkable what they were able to
  66. 2:02do in today's
  67. 2:03computer engineering so it's incredible
  68. 2:05you build these things in networks um
  69. 2:08model digital modern digital systems use
  70. 2:10cmos
  71. 2:11cmos stands for complementary metal
  72. 2:13oxide semiconductor
  73. 2:14so this is the technology used and they
  74. 2:17use the vulture control switches so
  75. 2:18we're talking we're going to continue
  76. 2:19the idea of a switch we saw in the last
  77. 2:20lecture
  78. 2:21with the idea that could you make this
  79. 2:22transistor via switch i'm not going to
  80. 2:24try by amplifiers in the analog domain
  81. 2:25just a switch
  82. 2:27so here's a picture a transistor is
  83. 2:30usually a three lead device and you can
  84. 2:32tell whether it's
  85. 2:33going to be used as an amplifier or not
  86. 2:35whether it has a heat sink on it because
  87. 2:36these things get hot so if it's a big
  88. 2:38one that you're going to use
  89. 2:39if it has a big heat sink sink on it
  90. 2:40probably it's using is used as an
  91. 2:41amplifier and that heatsink is being
  92. 2:43used to dissipate that heat
  93. 2:45if it's not if it does if it's a smaller
  94. 2:46one you go to electronics store and you
  95. 2:48buy a smaller one that doesn't have a
  96. 2:49heatsink probably it's used as a
  97. 2:50switcher device or it's a low
  98. 2:51low level amplifier here's the idea
  99. 2:55you have three leads drain gate and
  100. 2:56source how do you remember those three
  101. 2:58names
  102. 3:00dgs well dan garcia says drain gate and
  103. 3:02source
  104. 3:04and here's the idea source has potential
  105. 3:07i have this water and i want to be able
  106. 3:08to flow to the to the drain
  107. 3:11but i can't there because there's a gate
  108. 3:12preventing it and that's the idea it's a
  109. 3:14voltage controlled gate that's the big
  110. 3:16idea here
  111. 3:17so as i get my pen let me just show you
  112. 3:20here
  113. 3:21here's my source i want to be able to
  114. 3:22send current to the drain i'm going to
  115. 3:24pour it into the drain it's too heavy
  116. 3:25i've got all this current
  117. 3:27got all this potential got to pour it
  118. 3:28down got to get some current flowing so
  119. 3:30i can pour this potential into the drain
  120. 3:32but the gate's saying uh hold on my gate
  121. 3:35controls it so that when the gates
  122. 3:37voltage
  123. 3:38is higher than the source voltage this
  124. 3:42thing closes
  125. 3:42and there's a path okay so only when
  126. 3:45this gate voltage goes above a certain
  127. 3:47threshold
  128. 3:47which is you know epsilon above the
  129. 3:49source voltage then that closes the
  130. 3:51switch and now there's a path and
  131. 3:52current flows and everybody's happy
  132. 3:54okay closed circuit this is called an
  133. 3:57n-channel transistor and i think of n as
  134. 4:00a normal that's the normal way of
  135. 4:01thinking about it okay
  136. 4:02p which has a circle is the opposite
  137. 4:05okay this is kind of like a
  138. 4:07complementary side of this
  139. 4:08so p is the opposite when you have high
  140. 4:11when you have high voltage when the gate
  141. 4:13voltage is bigger than the source
  142. 4:14voltage
  143. 4:15then it opens so normally it closes the
  144. 4:17gate
  145. 4:18you know the current goes up the voltage
  146. 4:19goes high it closes a circuit
  147. 4:22this is exactly the opposite current
  148. 4:23goes high it opens the circuit okay so
  149. 4:25let's actually see a little animation of
  150. 4:26this
  151. 4:26so here we go so g is low so my gate
  152. 4:30voltage is low therefore the n channel
  153. 4:33transistor is open
  154. 4:34the p channel transistor is closed and
  155. 4:38when the gate voltage is high the
  156. 4:40opposite happens
  157. 4:41i close the gate in the and channel and
  158. 4:43i open the gate in the p
  159. 4:44channel okay remember that because we're
  160. 4:45going to use it in one slide you got it
  161. 4:47ready
  162. 4:48and action okay
  163. 4:51i built a circuit this is pretty cool
  164. 4:54i've got a voltage source
  165. 4:56well three volts we'll call it one we
  166. 4:57call it a digital one
  167. 4:59okay and i've got ground like into the
  168. 5:01ground no no potential
  169. 5:03ground i can put a wire into the ground
  170. 5:04that's ground and that's zero volts
  171. 5:07so i've got a y out here and y needs a
  172. 5:10value
  173. 5:11now if nothing if i disconnect y y has
  174. 5:14no value it isn't either
  175. 5:150 or 3 volts it's just floating in there
  176. 5:18we can't have that
  177. 5:19so we always have to have our y have one
  178. 5:21connection either the 0 or three
  179. 5:24that's part one and part two is y can't
  180. 5:27also there can't ever be a short circuit
  181. 5:29i can't ever have a path
  182. 5:31from three volts from a one to a zero
  183. 5:33without going through a resistor
  184. 5:35that's going to be bad that would be
  185. 5:36like shorting out something you don't
  186. 5:37want to short that out
  187. 5:38so there has to also be uh never a
  188. 5:40connection in these circuits between
  189. 5:42three volts and zero volts
  190. 5:43or from one to zero remember those two
  191. 5:44things okay output has to have at least
  192. 5:46something driving it that's one
  193. 5:48and two you can never short circuit uh
  194. 5:51high to ground okay
  195. 5:52power to ground all right here we go
  196. 5:55what's the relationship though between x
  197. 5:57and y is a beautiful circuit
  198. 5:59okay so when it's three volts
  199. 6:03i'm drawing this picture here three
  200. 6:05volts remember this is the n-type down
  201. 6:06here
  202. 6:07there's the normal type and here's the
  203. 6:09p-type you remember it from the circle
  204. 6:11so let's think about this here we go
  205. 6:13well
  206. 6:14when i've got zero volts okay when x is
  207. 6:17zero x is low okay this is x is low okay
  208. 6:22x is low that means this closes
  209. 6:25the p type closes this is a connection
  210. 6:28now i've made a little wire like it goes
  211. 6:30up and down it goes across there is a
  212. 6:31connect
  213. 6:32the gate has been closed there but we
  214. 6:34saw that before on an end type
  215. 6:36it's an open it's an open switch okay
  216. 6:39well
  217. 6:39then does what that's that's it is there
  218. 6:41a connection from three volts to zero
  219. 6:43no okay because this is an open circuit
  220. 6:46that means there's no way that
  221. 6:47this three volts who's going to go three
  222. 6:49three volts three volts three volts
  223. 6:51y gets three volts and then here's a see
  224. 6:53this open circuit doesn't go to zero so
  225. 6:55that's good so far
  226. 6:56so when i put x is zero volts when x is
  227. 6:59low
  228. 7:00y is high they go low
  229. 7:04you go high huh see how it did that with
  230. 7:06the michelle obama okay
  231. 7:08now next what happens when x goes
  232. 7:12high you say michelle does that mean
  233. 7:14when when they go high we go low is what
  234. 7:15that means well let's see let's see what
  235. 7:17happens here
  236. 7:18so x goes high okay well that means this
  237. 7:22is going to open
  238. 7:23and then this is going to close and then
  239. 7:26when that closes what's y
  240. 7:27does y have a value yes it is it's
  241. 7:29connected directly to zero through that
  242. 7:31path
  243. 7:31and it is disconnected from three volts
  244. 7:33so we both y does have a value
  245. 7:35and it's not i'm not short circuiting
  246. 7:37one to zero
  247. 7:38and therefore it's when x is three
  248. 7:42y is zero can you see what gate that
  249. 7:45would be
  250. 7:46x is low we're high x is high we're low
  251. 7:50can you get it huh with the thing is it
  252. 7:52it's a not gate
  253. 7:53isn't that cool with your switches
  254. 7:55that's pretty cool
  255. 7:57we made a not gate so now
  256. 8:00we're going to see in these series of
  257. 8:01lectures we can one-to-one connect
  258. 8:03current flowing transistors to a boolean
  259. 8:06circuit and then a truth table on this
  260. 8:08beautiful page this is the this is the
  261. 8:10last slide before we end this lecture
  262. 8:12let's actually take a look at this so
  263. 8:13the idea is
  264. 8:15i've got a transition transistor circuit
  265. 8:16representation and i've got a block
  266. 8:18diagram and i'm going to say abstractly
  267. 8:20all i need to worry about is the block
  268. 8:21diagram from here out but if i
  269. 8:23if i lift the hood in that block diagram
  270. 8:25i'd say well this one transistor is
  271. 8:26doing the right thing wired a certain
  272. 8:28way
  273. 8:29let's see if this works let's actually
  274. 8:31take a look and
  275. 8:32and and discover the circuit more
  276. 8:34complicated circuit
  277. 8:35i've got a and b as input and c is
  278. 8:37output but also keep in mind
  279. 8:39again we never want to short circuit
  280. 8:40high to low and we always want to have c
  281. 8:42have a value so let's make sure this is
  282. 8:44true in all these cases
  283. 8:45and let's play with it okay so this is
  284. 8:48this is let me make sure okay this is
  285. 8:52a serial line two switches in cereal we
  286. 8:55said that
  287. 8:55and in fact c only connects when a and b
  288. 8:59if this is a so let's go back this is a
  289. 9:01these are both
  290. 9:02n type these are p types up here so
  291. 9:06when a and b go high here we go
  292. 9:09a and b go high so that's
  293. 9:12over here only when the a and b go high
  294. 9:16only then is c connected to ground
  295. 9:19now when a and b are high what happens
  296. 9:21well this opens up
  297. 9:22that opens up this opens up
  298. 9:26and b opens up remember when that goes
  299. 9:28high the p-type
  300. 9:30opens up so that means c does have a
  301. 9:33connection
  302. 9:34to one value there isn't a connection
  303. 9:37from c
  304. 9:38to the one up here to our three volts
  305. 9:41because both of these are open there's
  306. 9:42no way for that
  307. 9:43that ground to get to the three so we're
  308. 9:45okay we're in this row
  309. 9:48so now we're in one one zero and watch
  310. 9:50what happens the other three cases are
  311. 9:52identical
  312. 9:52watch out so that's like one set of
  313. 9:54cases okay we only get to that zero
  314. 9:56when a and b are both high the n channel
  315. 9:59closes
  316. 10:00and now c is ground and both of those
  317. 10:02guys are open
  318. 10:04now watch this here we go now all of
  319. 10:07these are the same category watch this
  320. 10:09this is really kind of fun
  321. 10:12how does this work well if either
  322. 10:15in those three cases we know either a or
  323. 10:17b or both are zero
  324. 10:19which means this is disconnected
  325. 10:22both of these guys are disconnected
  326. 10:25that's pretty cool
  327. 10:28so there's no connection from c to
  328. 10:30ground and
  329. 10:32this also means that one of these guys
  330. 10:36if one or both of them are zero one of
  331. 10:38these guys is closed remember when it's
  332. 10:40a zero
  333. 10:40the b type closes
  334. 10:44the end type opens with a zero so that
  335. 10:46means
  336. 10:47one there's gonna be a path either here
  337. 10:49or in here we saw that
  338. 10:50a parallel guy which means i don't care
  339. 10:52or both
  340. 10:53therefore c is gonna be one so in these
  341. 10:56three cases
  342. 10:57c is one when either one or both of a or
  343. 10:59zero c is one
  344. 11:01and only when both of these are one do
  345. 11:03both of these open up
  346. 11:04do both of these open up both of these
  347. 11:07open up oops i should draw this better
  348. 11:09both of these open up both of these open
  349. 11:12up
  350. 11:12no connection and c routes down there so
  351. 11:15this is my output
  352. 11:17we're going to see later this is called
  353. 11:19a nand gate
  354. 11:21it's like an and and says they're only
  355. 11:23one if both a and
  356. 11:24output is only one if both both a and b
  357. 11:27the inputs are
  358. 11:28both high nand is exactly the opposite
  359. 11:31so
  360. 11:31an an and gate would have been 0 0
  361. 11:350 1 and nand gate is the opposite of
  362. 11:37that so this is why this is a nand gate
  363. 11:40and here is a nand gate there that's
  364. 11:42pretty cool
  365. 11:44so we're going to see in the series of
  366. 11:45lectures how we're going to think about
  367. 11:47transistor networks
  368. 11:48and then very quickly move into the
  369. 11:50block diagram this is like a
  370. 11:52you know a building block call it an and
  371. 11:54move it on move forward from there
  372. 11:56once we live in the nan world we're now
  373. 11:58digital and we're not thinking about the
  374. 11:59transition anymore we're kind of
  375. 12:00abstract
  376. 12:00it's below our level level of
  377. 12:01abstraction for the rest of these
  378. 12:02lectures that's pretty cool
  379. 12:04also there's this really interesting
  380. 12:06fact that by wiring nand gates together
  381. 12:09if i just
  382. 12:09if you just went to fry's electronics
  383. 12:10and you bought a pool an arm full of
  384. 12:13nand gates
  385. 12:14could you build an and gate out of a
  386. 12:16nand gate out of wiring an and gate
  387. 12:18by you know maybe wiring one of the
  388. 12:20inputs to zero or to one
  389. 12:21or the two themselves or something like
  390. 12:23this could you make an and
  391. 12:25could you make an ore could you make a
  392. 12:27not gate and the answer is you can
  393. 12:29all you need to go to fry's is to buy
  394. 12:32series of nand gates that's not the
  395. 12:33optimal way to do it
  396. 12:34and from there you can build end or not
  397. 12:36and from and or not you can build
  398. 12:37everything after that it's pretty cool
  399. 12:39so nand gate is all you need it's really
  400. 12:41very very neat so
  401. 12:42that's kind of a cool thing so i started
  402. 12:44talking about your transistors i talked
  403. 12:46about transistors networks
  404. 12:47how to treat them with switches and how
  405. 12:49to move on to thinking of them as a
  406. 12:50block diagram as a
  407. 12:52you know digital circuit has some inputs
  408. 12:53has some outputs we got to make sure the
  409. 12:55transistor is never short circuit
  410. 12:57nothing in the transistor network short
  411. 12:58circuits and the output is always linked
  412. 13:00to at least one or one of one or
  413. 13:02zero never just kind of floating in the
  414. 13:03air so we got that we all
  415. 13:05that was true for this case and we're
  416. 13:06really happy so in the next series of
  417. 13:08lectures we're going to talk about
  418. 13:09signals and waveforms
  419. 13:11we'll see you there

About this transcript

This page contains the full transcript of [CS61C FA20] Lecture 14.2 - Intro to Synchronous Digital Systems: Transistors by CS 61C Departmental, generated from the public captions YouTube serves with the video. The transcript has 2,662 words across 419 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.