YouTube2Text

[CS61C FA20] Lecture 17.3 - Combinational Logic Blocks: Adder/Subtractor — Transcript

by CS 61C Departmental · 3,821 words · 599 segments · language en · Watch on YouTube

Full transcript

  1. 0:00and welcome back we're so close we've
  2. 0:03got an aou
  3. 0:04we don't know about overflow yet we know
  4. 0:06about the atom subtractor so we know
  5. 0:08about the and and the ore box
  6. 0:09let's actually take a deeper dive into
  7. 0:11the adder and subtractor
  8. 0:13so we can do the two ways right we solve
  9. 0:15this we can use the truth table
  10. 0:18figure out the canonical form use build
  11. 0:20an algebra to minimize the terms and
  12. 0:21then have
  13. 0:22some big circuit that does that or we
  14. 0:24could be smarter about it we could
  15. 0:26look into breaking the problem into
  16. 0:27smaller parts and see if we have some of
  17. 0:29the parts that we might
  18. 0:30actually have existed already on my
  19. 0:31shelf shelf i can
  20. 0:33put together cobble together and make
  21. 0:34and that's actually what we're going to
  22. 0:35do so we'll do the second one
  23. 0:37so let's actually just do a add and
  24. 0:39subtractor here's a nibble adder
  25. 0:41okay four bits plus four bits equals
  26. 0:43four bits and let's think about
  27. 0:45what is required to build this nibble
  28. 0:47adder and whether we can actually maybe
  29. 0:49cascade some adders together
  30. 0:51so the lowest level the lowest level
  31. 0:54i'm adding bit a0 and b0 this is the
  32. 0:57least significant bit
  33. 0:58and i need to get to this sum but i also
  34. 1:00have a carry
  35. 1:02and this carry is like here there's my c
  36. 1:051
  37. 1:05that's the carry that's going to pass in
  38. 1:07to be passed into the next guy
  39. 1:08so when is that when is when let's look
  40. 1:11at the logic of that when is
  41. 1:12what's the value of s0 and carry one
  42. 1:15based on a and b
  43. 1:17it's basically add up these two bits
  44. 1:19what's the sum of zero plus zero
  45. 1:21zero what's zero plus one one is one
  46. 1:23plus zero one what's one plus
  47. 1:25one plus one two okay so guess what
  48. 1:28i just i just literally take this number
  49. 1:30and i write it in binary
  50. 1:32this is
  51. 1:36here and this is here but this is
  52. 1:38flipped
  53. 1:40it's like if i wrote that number but
  54. 1:42flipped it okay
  55. 1:47so two is really zero and one carries
  56. 1:51okay one is just one with no carry
  57. 1:54zero is zero with zero carries so this
  58. 1:56is all this is that's very simple
  59. 1:58so now once i have that have you seen
  60. 2:00this before
  61. 2:01yes you have it's called xor exclusive
  62. 2:04or
  63. 2:05have you seen this before yes you have
  64. 2:06it's and so that's kind of neat just a
  65. 2:09very simple truth table not the full
  66. 2:1032-bit one just
  67. 2:11one bit at a time let's have slices at a
  68. 2:13time i get x or an and
  69. 2:15that's the lowest bit that's pretty easy
  70. 2:18how about the next one i'm not going to
  71. 2:19give you the answer because that first
  72. 2:20one's a little bit easy but this is the
  73. 2:21next one let's actually do it together
  74. 2:23this one requires three bits y this is
  75. 2:27carry in
  76. 2:30and this is carry in plus one and by the
  77. 2:33way
  78. 2:33this calculation is for all the rest of
  79. 2:36the bits
  80. 2:37so i lifted i here not just one because
  81. 2:40in general i'm going to say well what
  82. 2:42happens on the ith level so let's change
  83. 2:44this to be an i
  84. 2:45and an i and i okay and this
  85. 2:48is the truth table for every other
  86. 2:51column every other you know two's column
  87. 2:54four's column eight's column every other
  88. 2:55column does this
  89. 2:56let's do it together we saw this before
  90. 3:00all i'm doing is adding together a plus
  91. 3:02b a i plus b
  92. 3:03i plus c i let's do it together on the
  93. 3:05left okay here we go
  94. 3:07that is zero one one
  95. 3:10i'm just adding up the number one so i'm
  96. 3:11doing two
  97. 3:14one two two
  98. 3:18three okay what's the low order bit the
  99. 3:20low order bit is this one
  100. 3:22which is s of i that's the sum of i
  101. 3:26and the carry is carry i
  102. 3:29oops let me clear this up here
  103. 3:32the this sorry this is
  104. 3:36this is sum of i and this is carry i
  105. 3:39plus one okay
  106. 3:40so i take this number and i flip it
  107. 3:44and this is the low bid and this is the
  108. 3:46high bit okay
  109. 3:47so zero two zeros one zero one one
  110. 3:50zero one two one zero one zero one
  111. 3:53two one zero two one zero three one one
  112. 3:56okay
  113. 3:56so far not too bad right i was i got
  114. 3:58confused for a second
  115. 4:00and now how do i let's let have you ever
  116. 4:03seen
  117. 4:04this is a little harder now much easier
  118. 4:06when you have just four rows
  119. 4:07figure out what the pattern is have you
  120. 4:09ever seen
  121. 4:10those two in any of the lectures we've
  122. 4:14shown before
  123. 4:16okay take your time pause it go back
  124. 4:19i'm not gonna tell you the answer until
  125. 4:20you think about it okay take your time
  126. 4:22think about it and come on back
  127. 4:24in three seconds i'll tell you the
  128. 4:26answer
  129. 4:28welcome back i've seen them before you
  130. 4:30know how i've seen it before
  131. 4:32look at this guy this guy
  132. 4:35is if i count the number of ones what's
  133. 4:38happening
  134. 4:39there's some kind of parody thing going
  135. 4:40here how many times is the number of one
  136. 4:43one number one odd look at that oh
  137. 4:45that's interesting
  138. 4:47number one is odd here interesting
  139. 4:49number one is odd here
  140. 4:51so i think s of i to me looks like
  141. 4:55an xor
  142. 4:58how about the c column you've seen this
  143. 5:00before you didn't know you've seen it
  144. 5:01before you forgot it probably
  145. 5:03what's happening here look when i have
  146. 5:07two ones it's a one when i have two ones
  147. 5:10it's a one two ones it's a one three
  148. 5:13ones it's a one
  149. 5:14otherwise there's more o's than one and
  150. 5:15they're all o's they're all zeros
  151. 5:19so remember this before it is the
  152. 5:23majority circuit exactly right we've
  153. 5:25seen this before we only saw two
  154. 5:27we only saw two uh three bit blocks
  155. 5:30you buy fries and one was well actually
  156. 5:32we saw the and we saw the ore we saw xor
  157. 5:34we saw the majority circuit this is the
  158. 5:36majority circuit and we remember what
  159. 5:38the majority circuit was remember it was
  160. 5:39a b a c and b c that's it
  161. 5:43so we can now wire this together
  162. 5:46so here we go there's my one bit adder
  163. 5:51one bit adder has how many inputs i've
  164. 5:53got i count three inputs here right
  165. 5:55everybody coming in is that
  166. 5:56here's my two outputs this is the
  167. 5:58general case
  168. 5:59okay not just the low not just the lsb
  169. 6:02editor but this is the general adder
  170. 6:04and what is this that's the s
  171. 6:07i that's the sum is the xor what is this
  172. 6:11this is the majority and that is the
  173. 6:13carry
  174. 6:14so i just got it i'm almost done
  175. 6:19how do i take these and put them
  176. 6:21together how do i wire them
  177. 6:22that's the little harder part right now
  178. 6:23i know how one bit adder works
  179. 6:25three inputs eight rows in the truth
  180. 6:26table how do i
  181. 6:28take and one bit adders and actually
  182. 6:30make it work well you saw there's
  183. 6:32this box that had like carry and carry
  184. 6:33out and they're kind of like left and
  185. 6:35right
  186. 6:36exactly right i just cascade them
  187. 6:39i literally just plug them in side by
  188. 6:41side by side by side
  189. 6:43and that's it i'm all done this is
  190. 6:46pretty magical
  191. 6:47i've got my c0 which is my carry zero is
  192. 6:49there a carry in
  193. 6:50not really so let's we're probably gonna
  194. 6:53set this to zero for now
  195. 6:54we may set it to another value later
  196. 6:56think about it because i'm not really
  197. 6:57adding anything in but again
  198. 6:59i can only buy the same box the box is
  199. 7:01this three input thing what about how do
  200. 7:02i wire that first input on that first
  201. 7:04guy
  202. 7:04the rest of them log in now i got to
  203. 7:06carry out what do i do with this this is
  204. 7:08certainly the sum i can make use of that
  205. 7:10this is certainly my pairs of inputs i
  206. 7:12can make use of that
  207. 7:14i know how to wire that together but
  208. 7:15what do i do for my carryout
  209. 7:17is this always overflow maybe i don't
  210. 7:20know
  211. 7:21we definitely locked this into zero
  212. 7:23let's play with that a little bit that's
  213. 7:24pretty cool right
  214. 7:25so what about overflow let's actually
  215. 7:27answer that question what about overflow
  216. 7:31well if i'm doing an unsigned
  217. 7:35computation
  218. 7:36a pure unsigned a and b are unsigned
  219. 7:39when does it overflow
  220. 7:41well it overflows when i can't store the
  221. 7:44output here
  222. 7:45how do you know i can't store the output
  223. 7:46here because
  224. 7:48this guy goes high so actually for an
  225. 7:51unsigned point of view
  226. 7:52that is my overflow for two unsigned
  227. 7:56numbers
  228. 7:56that's my overflow i'm feeling good
  229. 7:58about that right when i can't store it
  230. 7:59oop i stored through 232 but numbers
  231. 8:01and there was one extra thing that
  232. 8:03bubbled over sorry if
  233. 8:05overflow means i couldn't store the
  234. 8:07valid sum in the 32 bits i have
  235. 8:09well once that guy goes high once sieve
  236. 8:11n goes high that last guy
  237. 8:13goes out it's proof it's like like water
  238. 8:16bubbled off
  239. 8:16the edge of the thing it's proof that
  240. 8:18this thing is full i can't store it and
  241. 8:20that was loss that was i'm supposed to
  242. 8:22have this big a number a 33 bit
  243. 8:24wide number but if 32 bits wide but i
  244. 8:27can't whatever wide this is i'm supposed
  245. 8:28to have an n bit wide number but
  246. 8:30actually i need n plus one bits to do
  247. 8:32that and that c of n tells me that's
  248. 8:34what that n plus one bit is
  249. 8:35when that's a zero that says i can fit
  250. 8:36it in the lower end bits when it's one i
  251. 8:38says i can't fit in the lower end bits
  252. 8:41this is complicated so let's actually
  253. 8:44take a look at
  254. 8:46what happens when it's signed
  255. 8:49computation
  256. 8:50okay so unsigned easy right it's that
  257. 8:52carry out
  258. 8:53but let's look at the sign computation
  259. 8:55and this is i spent a lot of time making
  260. 8:57this slide so i hope
  261. 8:58and a lot of animation let's hope this
  262. 9:00all works
  263. 9:01okay we're going to start by looking at
  264. 9:04a single two bit number
  265. 9:06two bit number if i have a two-bit
  266. 9:07number what are the values of that well
  267. 9:10zero zero zero one one zero one one
  268. 9:12that's just the raw bit bits
  269. 9:14what are they really interpreting what
  270. 9:15do they mean well you know that all ones
  271. 9:17an assigned number you should notice all
  272. 9:18ones is negative one
  273. 9:20always with two's complement all ones is
  274. 9:21always i don't care how many bits you're
  275. 9:23talking about
  276. 9:24all ones is negative one so
  277. 9:28this is an issue okay here stay with me
  278. 9:29stay with me this is fun
  279. 9:32deep breath so this is
  280. 9:35the series of numbers i'm really adding
  281. 9:37and this is the numbers here
  282. 9:38and these are going to be the same
  283. 9:39numbers for the whole column so that's
  284. 9:40all zeros on the
  285. 9:41on the top number okay here's one
  286. 9:45all the top this is the bottom number
  287. 9:50zero zero zero one one zero one one
  288. 9:53and in a way i can think of this two-bit
  289. 9:55number as kind of being
  290. 9:56a number and a weight it's sine in a way
  291. 9:58okay so i'm thinking about just a
  292. 10:00two-bit number
  293. 10:00and looking at what is it always this
  294. 10:03output of the upper level that's that
  295. 10:05that's c2 is it always that is that
  296. 10:08sorry is it that c2 is always it's that
  297. 10:09c2 that's telling me when this overflows
  298. 10:12well i don't know first unsigned okay so
  299. 10:15let's actually treat this unsigned for
  300. 10:17now because it turns out
  301. 10:18we use the same machinery to add
  302. 10:21unsigned numbers as i do to add
  303. 10:23two's complement numbers you say
  304. 10:24machinery the only thing that's
  305. 10:26different is how we trigger
  306. 10:27overflow that's all that's different
  307. 10:29everything else is the same that's
  308. 10:30really cool that's one of these we love
  309. 10:31two's complement numbers
  310. 10:33same idea for adding these together okay
  311. 10:36so let's do it together unsigned numbers
  312. 10:39let's start here
  313. 10:400 plus anything
  314. 10:44is anything right look same value zero
  315. 10:46zero zero one zero one
  316. 10:48two two three three nothing magical
  317. 10:50there
  318. 10:51what's one plus i don't know these are
  319. 10:53all by the way anything up here is all
  320. 10:54the same as
  321. 10:55this triangle so i don't need to copy
  322. 10:57that okay so i don't i only do half the
  323. 10:59triangle
  324. 11:00and by the way this is a little way i
  325. 11:01think of this you know of this is my
  326. 11:03upper level i'm looking at c2 here is c2
  327. 11:07here and this is c1 coming in
  328. 11:10okay c2
  329. 11:14and c1 all right
  330. 11:17let's do this together one plus one is
  331. 11:19two
  332. 11:20there is a carry though there's a carrot
  333. 11:23this is carry this is c1 there was a
  334. 11:25carry one there okay that's fine
  335. 11:27how about one plus two is three no
  336. 11:29problem this is all unsigned so far i'm
  337. 11:31just thinking unsigned okay
  338. 11:33and by the way because the addition is
  339. 11:34the same the only difference is how do i
  340. 11:37trigger an overflow one plus three well
  341. 11:40that's four
  342. 11:42so that was both this carry in i mean
  343. 11:44there's both this kind of carry in here
  344. 11:45and a carryout in that case okay this
  345. 11:48guy only had to carry in
  346. 11:49this guy had a carry in and a carryout
  347. 11:51okay or c1 and c2
  348. 11:55how about two let's start on sign two
  349. 11:57plus two
  350. 11:58two plus two four that only had to carry
  351. 12:02out or
  352. 12:02c two how about two plus three
  353. 12:06that's five right so this is five and i
  354. 12:08again only had a carryout there
  355. 12:10how about three plus three that's six
  356. 12:14i had a carry in or a c1 and a carryout
  357. 12:17a c2
  358. 12:18okay that was unsigned so is it right to
  359. 12:22determine
  360. 12:22that is am i right that unsigned was
  361. 12:24only that thing when when did their
  362. 12:25overflow
  363. 12:26okay let's look at overflow everybody
  364. 12:28that has let's
  365. 12:29circle all the overflows unsigned
  366. 12:33because i can't represent four four five
  367. 12:35or six
  368. 12:36and guess what if i just look at let's
  369. 12:38look those guys that circle are overflow
  370. 12:40these are
  371. 12:40here's my overflow unsigned and each one
  372. 12:43of them has the unique pattern that
  373. 12:45there's a one on carry out so i was
  374. 12:47right i was right that at least in two
  375. 12:49bits
  376. 12:50and i could extend that to n bits that
  377. 12:51when carryout goes high
  378. 12:53then it's an overflow unsigned now let's
  379. 12:56do
  380. 12:57a sine computation okay so now what i'm
  381. 12:59really doing
  382. 13:01it's the same by the way here's the fun
  383. 13:03part i'm not going to change any values
  384. 13:05here i still have
  385. 13:06carry out carry in none of that's going
  386. 13:07to change but
  387. 13:09when it is an overflow might change okay
  388. 13:12so let's do this together
  389. 13:130 this is really 0 plus 0
  390. 13:161 minus 2 and minus one is
  391. 13:20zero one minus two minus one that
  392. 13:23doesn't change okay
  393. 13:26one one plus one
  394. 13:30two one plus minus
  395. 13:342. by the way what are the values i can
  396. 13:35store i can store
  397. 13:37i can store 0 1 minus 2 and minus 1.
  398. 13:40okay so 1 plus 1
  399. 13:44that's 2 is 2 something that i can
  400. 13:47represent
  401. 13:48in in two's complement with two bits
  402. 13:51no so that's gonna be a problem so
  403. 13:53remember that one there that's gonna be
  404. 13:55trouble
  405. 13:56how about one plus minus two
  406. 14:00well one plus minus two that should be
  407. 14:02minus one is this minus one
  408. 14:04it is so this stuff still works that's
  409. 14:06what's amazing this stuff still works
  410. 14:08by the way can i represent minus one i
  411. 14:09can that's not a problem that's good
  412. 14:13how so this by the way this was overflow
  413. 14:15even though there was no
  414. 14:16overflow bit there out of that upper
  415. 14:19carry so something we gotta remember
  416. 14:20it's a little different for two's
  417. 14:21complement
  418. 14:22how about one plus minus one
  419. 14:25well that's zero and it is zero look at
  420. 14:28this
  421. 14:28wait wait wait this is weird it's zero
  422. 14:31in the lower bits
  423. 14:32but it's still saying carry out but
  424. 14:34there's no error there one plus minus
  425. 14:36one is zero
  426. 14:37i get this weird carry out guy but
  427. 14:39that's not an error
  428. 14:40that's a fine number i can represent
  429. 14:42zero and if i just get the lower bits
  430. 14:43that's not an overflow
  431. 14:44so i kind of need to ignore the it's
  432. 14:46kind of weird i got an overflow here
  433. 14:49but it but but his overflow there but
  434. 14:52the carryout guy didn't tell me anything
  435. 14:55i
  436. 14:55didn't have an overflow here but the
  437. 14:58carryout was high so kind of it's not as
  438. 15:00simple as just
  439. 15:01treating the carry out there let's do
  440. 15:03here minus 2 plus
  441. 15:04actually minus 2 plus anything look at
  442. 15:06that the other two numbers are negative
  443. 15:07numbers
  444. 15:08if i'm already the smallest negative
  445. 15:10number anything negative is going to
  446. 15:11push me past the limit and that is is
  447. 15:13that underflow
  448. 15:14no it's overflow otherwise known as
  449. 15:16negative overflow so both of these are
  450. 15:18going to be trouble
  451. 15:18let's try it my i don't even care what
  452. 15:20these what these what's down here
  453. 15:22i can't represent it it's not minus two
  454. 15:25plus minus two
  455. 15:26it's certainly not zero and it's
  456. 15:28certainly not one if i just look at
  457. 15:29those lower bits so that's not right so
  458. 15:31something's wrong with this guy
  459. 15:33this guy and this guy okay so far
  460. 15:36how about this how about minus one plus
  461. 15:38minus one let's try it
  462. 15:40look at those two bits what does that
  463. 15:42encode that encodes minus two
  464. 15:45that's fine so in fact the only guys
  465. 15:48that are trouble
  466. 15:49are one and one remember one and one so
  467. 15:52this guy is trouble
  468. 15:53that's overflow and minus two plus
  469. 15:56anything negative
  470. 15:57which are these two guys so that's the
  471. 15:58key remember that okay remember that as
  472. 16:00we go forward but everyone else is fine
  473. 16:02here we go when can the lowest two bits
  474. 16:05of the sum not represent the correct sum
  475. 16:07you saw that
  476. 16:08when one adds to one or when minus two
  477. 16:10adds to anything negative okay we saw
  478. 16:12that already
  479. 16:13in those cases i circled before here's
  480. 16:15the official circle from the animation
  481. 16:18is there a pattern this is the fun part
  482. 16:20you now stare at this
  483. 16:22slide pause the video see if there's a
  484. 16:24pattern
  485. 16:25if you can see when this happens hint
  486. 16:29check the carry bit and the sum force
  487. 16:31column bit which means
  488. 16:32check this check c2 and check c1
  489. 16:36is there anything unique about those
  490. 16:38three circles that have that
  491. 16:40that's different from every other circle
  492. 16:42everything
  493. 16:43every other non-circled expression
  494. 16:46can you see that pause it and then come
  495. 16:48back i'll tell you what it is okay
  496. 16:52well if we look at the highest adder
  497. 16:55we're looking at this highest adder look
  498. 16:56at this guy right here
  499. 16:58okay and i look at only these two
  500. 17:01characters i'm gonna look at only these
  501. 17:02blue guys only the blue guys
  502. 17:04what is the pattern when i have and
  503. 17:07remember this is i'm going to extend
  504. 17:08this by the way to end bits
  505. 17:10i'm only have to look at the upper level
  506. 17:12adder that's in a way the sign bit it's
  507. 17:14not really signed inside magnitude but
  508. 17:15it's sine when it's one it's negative
  509. 17:17when it's zero
  510. 17:18it's uh zero or positive so it actually
  511. 17:20works out pretty well to kind of call it
  512. 17:21the sign the sign
  513. 17:22the signed um the highest adder
  514. 17:24representing in a way the sign
  515. 17:26of that the output is the sign in a way
  516. 17:27that's sum
  517. 17:29okay so here we go stay with me stay
  518. 17:32with me
  519. 17:33if i have no c out or c
  520. 17:37in okay when is that the case this means
  521. 17:40let's go here when do i have no blue
  522. 17:42anywhere
  523. 17:43here all these guys no blue anywhere you
  524. 17:47agree
  525. 17:48no cia or cn there's no overflow there
  526. 17:51i see no overflow in those cases that's
  527. 17:53totally fine
  528. 17:55how about if i have c out and c in
  529. 17:59that's this rare case here is a c out
  530. 18:02here is a cn there's no overflow i
  531. 18:05didn't circle the guys that are red are
  532. 18:07the overflows
  533. 18:08that's fine
  534. 18:12how about c in but no c out what's that
  535. 18:16mean
  536. 18:16here's a c in but no c
  537. 18:19out that's an overflow that's when i try
  538. 18:21to add one to one and i can't do it
  539. 18:23that's when two positive numbers add
  540. 18:24look
  541. 18:25a and b are both bigger than zero
  542. 18:27overflow okay
  543. 18:30how about that's this guy how about
  544. 18:34c out but no cn here's my c
  545. 18:38out can you see this c out but no cn up
  546. 18:41here
  547. 18:42you see that point that is they're both
  548. 18:44negative two in this case
  549. 18:46okay so problem
  550. 18:49all right now
  551. 18:53what operation is it i have two bits
  552. 18:57c out and c in see if you can remember
  553. 19:00from all that we've learned so far when
  554. 19:03do you have
  555. 19:04one but not the other or the other but
  556. 19:06not the first one so
  557. 19:07c out c n but no c out or
  558. 19:10c out but no c in but not both
  559. 19:13when it's both when it's both when it's
  560. 19:16both it's no overflow so it's one of the
  561. 19:20other
  562. 19:20but not both that's right xor
  563. 19:27that's it that's our overflow two's
  564. 19:30complement xor
  565. 19:31looks at the upper level adder this is a
  566. 19:34this is a a two one bit adder it's a one
  567. 19:37bit adder
  568. 19:38here's the upper highest bit on on both
  569. 19:40the numbers however
  570. 19:41you got n bits i don't care how many
  571. 19:43what n is n bits
  572. 19:44the upper level adder there's a carry
  573. 19:47coming in from all the other computation
  574. 19:49and there's a carry coming out and only
  575. 19:50when one or the other
  576. 19:53is high is that two's complement
  577. 19:56going to be overflow if it's just
  578. 19:59unsigned i only look at c
  579. 20:00out only look at the guy coming out and
  580. 20:02this is like coming from this way going
  581. 20:03that way okay
  582. 20:04but in the case of in the case of a
  583. 20:07general two's complement number
  584. 20:08it is when this c in is high but no c
  585. 20:12out or the c out is high but no c n
  586. 20:14that's the idea that's it
  587. 20:16xor of those two values and that's the
  588. 20:19two's complement overflow that's pretty
  589. 20:20cool
  590. 20:21so now i've covered that we're almost
  591. 20:22ready to do our put it together
  592. 20:25wrap it up i've got the overflow covered
  593. 20:27how do you handle the added subtractive
  594. 20:28part that's a little bit do i have to
  595. 20:29have a whole box for the adder
  596. 20:31hold back for the subtractor can i think
  597. 20:32about that so that's the next lecture
  598. 20:34we'll close it together
  599. 20:35alright we'll see you there

About this transcript

This page contains the full transcript of [CS61C FA20] Lecture 17.3 - Combinational Logic Blocks: Adder/Subtractor by CS 61C Departmental, generated from the public captions YouTube serves with the video. The transcript has 3,821 words across 599 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.