1 00:00:00,280 --> 00:00:02,960 Speaker 1: Brought to you by the reinvented two thousand twelve Camray. 2 00:00:03,160 --> 00:00:08,840 Speaker 1: It's ready. Are you get in touch with technology? With 3 00:00:09,000 --> 00:00:17,720 Speaker 1: tech Stuff from how stuff works dot com. Hello everyone, 4 00:00:17,760 --> 00:00:20,720 Speaker 1: welcome to tex Stuff. My name is Chris Pollette and 5 00:00:20,760 --> 00:00:23,680 Speaker 1: I am an editor how stuff works dot Com, sitting 6 00:00:23,680 --> 00:00:26,239 Speaker 1: across from me, as always his senior writer, Jonathan Strickland, 7 00:00:26,400 --> 00:00:29,680 Speaker 1: logic clearly dictates that the needs of the many outweigh 8 00:00:29,720 --> 00:00:34,519 Speaker 1: the needs of the few. Okay, so today we're going 9 00:00:34,600 --> 00:00:37,800 Speaker 1: to plug Thank you. Today we're gonna talk about logic gates. 10 00:00:37,840 --> 00:00:40,320 Speaker 1: But before we get started, let's let's let's begin with 11 00:00:40,360 --> 00:00:44,440 Speaker 1: a little Facebook feedback you. This comes from James and 12 00:00:44,520 --> 00:00:49,519 Speaker 1: James's suggestion Electronics one oh one logic gates. Thanks James, 13 00:00:49,720 --> 00:00:52,239 Speaker 1: it was an easy one. Yes, we're going to tackle that, 14 00:00:52,280 --> 00:00:55,360 Speaker 1: but before we do, I have a little listener mail. 15 00:01:00,280 --> 00:01:02,880 Speaker 1: This listener mail comes from Chris and not the Chris 16 00:01:02,920 --> 00:01:05,360 Speaker 1: who's sitting across from me. Chris says, you say in 17 00:01:05,360 --> 00:01:08,200 Speaker 1: your three hundred episode that machine code can't be easily 18 00:01:08,240 --> 00:01:11,440 Speaker 1: read by humans. That got me thinking humans made machines. 19 00:01:11,480 --> 00:01:13,760 Speaker 1: I understand that the best concept at the time was 20 00:01:13,800 --> 00:01:17,760 Speaker 1: to code computers and machines with this complicated and unreadable language. 21 00:01:17,840 --> 00:01:20,240 Speaker 1: But in this day and age, why don't we build 22 00:01:20,280 --> 00:01:23,240 Speaker 1: computers and machines that can understand our language. It just 23 00:01:23,319 --> 00:01:25,640 Speaker 1: seems to me that some kind of cycle humans build 24 00:01:25,720 --> 00:01:28,720 Speaker 1: machines that only understand a complicated language, we adapt to 25 00:01:28,760 --> 00:01:31,319 Speaker 1: that language, and we build programs that translate a simpler 26 00:01:31,400 --> 00:01:34,560 Speaker 1: language to the machine language. Is it possible for computers 27 00:01:34,600 --> 00:01:38,120 Speaker 1: and machines to be built to process information in the 28 00:01:38,200 --> 00:01:42,560 Speaker 1: languages we are accustomed to? Now these two items are 29 00:01:42,600 --> 00:01:46,319 Speaker 1: actually related to one another. You might think, well, one 30 00:01:46,319 --> 00:01:48,200 Speaker 1: of these we're talking about natural language, and the other 31 00:01:48,200 --> 00:01:50,640 Speaker 1: one we're talking about logic gates. How do those end 32 00:01:50,760 --> 00:01:55,160 Speaker 1: up being related? Well, it's because machine code is based 33 00:01:55,240 --> 00:02:00,560 Speaker 1: upon the binary system zeros and ones and logics are 34 00:02:00,680 --> 00:02:04,200 Speaker 1: as well. And it turns out that the way we've 35 00:02:04,200 --> 00:02:09,000 Speaker 1: built computers is based upon this binary system, and that's 36 00:02:09,040 --> 00:02:12,799 Speaker 1: why we have machine code. It's this two humans. It's 37 00:02:12,840 --> 00:02:15,480 Speaker 1: a it's a complex way of trying to get a 38 00:02:15,520 --> 00:02:18,200 Speaker 1: machine to do a relatively simple task, or at least 39 00:02:18,200 --> 00:02:22,400 Speaker 1: one that seems simple to us. And unfortunately, there is 40 00:02:22,480 --> 00:02:27,400 Speaker 1: not an easy way to translate natural human language into 41 00:02:27,480 --> 00:02:30,840 Speaker 1: machine code in order to make a machine understand natural 42 00:02:30,919 --> 00:02:34,720 Speaker 1: language in a on a fundamental level, like on a 43 00:02:34,760 --> 00:02:40,720 Speaker 1: mechanical level, we would have to completely change the foundation 44 00:02:41,000 --> 00:02:45,360 Speaker 1: of computing. Yeah, so that's why it's a big deal. Uh. 45 00:02:45,600 --> 00:02:47,480 Speaker 1: You know. Instead, what we do is we end up 46 00:02:47,480 --> 00:02:53,560 Speaker 1: building programs that can understand on on a superficial level 47 00:02:54,040 --> 00:02:57,360 Speaker 1: what natural language is and translated into machine code so 48 00:02:57,400 --> 00:03:00,560 Speaker 1: that a computer can respond the proper way. It's not 49 00:03:00,680 --> 00:03:04,799 Speaker 1: true understanding, because again, a computer is just running processes. 50 00:03:05,160 --> 00:03:09,440 Speaker 1: It's just running, uh, series of calculations using these zeros 51 00:03:09,440 --> 00:03:13,919 Speaker 1: and ones and logic gates are the very foundation of that. 52 00:03:14,000 --> 00:03:16,880 Speaker 1: It's the foundation of circuit treats, the foundation of electronics, 53 00:03:16,880 --> 00:03:19,720 Speaker 1: and the foundation of computers. But it kind of goes 54 00:03:19,760 --> 00:03:23,079 Speaker 1: back a long way back, in fact, before there were 55 00:03:23,240 --> 00:03:27,320 Speaker 1: electronic computers. Oh yeah, I mean, because you know, I 56 00:03:27,320 --> 00:03:29,400 Speaker 1: I think of it as, uh, well, we actually have 57 00:03:29,600 --> 00:03:33,000 Speaker 1: an interesting article about it, um about something that has 58 00:03:33,040 --> 00:03:36,120 Speaker 1: come up with a couple of centuries ago by a 59 00:03:36,120 --> 00:03:42,560 Speaker 1: guy named George. Yeah you know. Oh yes, because logic 60 00:03:42,600 --> 00:03:46,640 Speaker 1: gates operate using Boolean logic, we have then there is 61 00:03:46,680 --> 00:03:49,280 Speaker 1: an article on how Boolean logic works, on how stuff 62 00:03:49,280 --> 00:03:51,760 Speaker 1: works dot com, I recommend actually, which is basically about 63 00:03:51,760 --> 00:03:55,000 Speaker 1: logic gates, which is kind of funny. I had no 64 00:03:55,080 --> 00:03:59,280 Speaker 1: idea until I started doing research on it um because 65 00:03:59,280 --> 00:04:02,640 Speaker 1: we also have a an article about how electronic gates 66 00:04:02,680 --> 00:04:07,000 Speaker 1: work on the the the site. But there's they're sort 67 00:04:07,040 --> 00:04:08,920 Speaker 1: of hand in hand. It's better probably to go back 68 00:04:08,920 --> 00:04:11,760 Speaker 1: through the bully and logic article first and then go 69 00:04:11,800 --> 00:04:15,640 Speaker 1: to the other um. But yeah, I mean, he basically 70 00:04:15,680 --> 00:04:18,880 Speaker 1: figured out how to use uh, you know, I guess 71 00:04:19,040 --> 00:04:23,280 Speaker 1: it's sort of the marriage of language and mathematical operation 72 00:04:23,720 --> 00:04:26,839 Speaker 1: in some ways, wouldn't you say? Yeah? And I also 73 00:04:27,120 --> 00:04:31,240 Speaker 1: tend to to relate it back to symbolic logic, which 74 00:04:31,279 --> 00:04:35,520 Speaker 1: is another way of marrying mathematics with language. Now, if 75 00:04:35,520 --> 00:04:39,240 Speaker 1: you're not familiar, symbolic logic is a concept where you 76 00:04:39,400 --> 00:04:44,520 Speaker 1: reduce statements to sort of almost like an equation, and 77 00:04:44,640 --> 00:04:48,320 Speaker 1: using the equation form, you evaluate that statement to determine 78 00:04:48,360 --> 00:04:51,640 Speaker 1: whether or not the statement or the combination of statements 79 00:04:51,760 --> 00:04:55,160 Speaker 1: is true or faulse um. And you know, you have 80 00:04:55,240 --> 00:04:58,280 Speaker 1: to make some certain assumptions in order to do that, 81 00:04:58,279 --> 00:05:03,200 Speaker 1: but you can build more and more complex equations using 82 00:05:03,240 --> 00:05:05,920 Speaker 1: all these series of statements to determine if the ultimate 83 00:05:05,960 --> 00:05:09,080 Speaker 1: conclusion is true or false, and by true or faulse, 84 00:05:09,120 --> 00:05:13,280 Speaker 1: we're really talking about whether the argument holds water or not. 85 00:05:13,680 --> 00:05:16,200 Speaker 1: So you can actually do this. You could take a 86 00:05:16,279 --> 00:05:19,680 Speaker 1: debate and you could take one person's side of the debate, 87 00:05:20,040 --> 00:05:23,720 Speaker 1: reduce it to this sort of mathematical equation, and then 88 00:05:23,800 --> 00:05:27,359 Speaker 1: determine whether or not the ultimate outcome of that of 89 00:05:27,440 --> 00:05:30,599 Speaker 1: that person's side of the debate makes sense from a 90 00:05:30,680 --> 00:05:34,520 Speaker 1: logical standpoint. Yeah. Now again we're talking logic here. We're 91 00:05:34,520 --> 00:05:38,760 Speaker 1: not talking about, uh, you know, trying to get someone 92 00:05:38,839 --> 00:05:42,359 Speaker 1: to agree to something based upon its emotional weight, but 93 00:05:42,600 --> 00:05:45,680 Speaker 1: simply does this argument makes sense? Does it follow the 94 00:05:45,760 --> 00:05:49,160 Speaker 1: rules of logic? Yeah? And a lot of these UM 95 00:05:49,240 --> 00:05:52,880 Speaker 1: when we talk about the logic gates UM, they're actually 96 00:05:52,880 --> 00:05:59,479 Speaker 1: devices inside electronics that use these logical operators, these rules, 97 00:05:59,520 --> 00:06:04,520 Speaker 1: these rules within the machine. Basically, they're passing instructions based 98 00:06:04,560 --> 00:06:06,520 Speaker 1: on the type of circuit they are and according I 99 00:06:06,600 --> 00:06:09,479 Speaker 1: actually look this up in Access Science, which is UM 100 00:06:09,600 --> 00:06:14,040 Speaker 1: a really awesome database for for technical things like this. UM. Basically, 101 00:06:14,080 --> 00:06:17,279 Speaker 1: the Access Science said that if you're creating a gate 102 00:06:17,320 --> 00:06:20,520 Speaker 1: circuit UM, they could be made up of transistors, diodes, 103 00:06:20,600 --> 00:06:24,680 Speaker 1: or resistors, in some combination. Now most today are are 104 00:06:24,720 --> 00:06:27,920 Speaker 1: generally transistors only, but they could be made up a 105 00:06:28,000 --> 00:06:32,240 Speaker 1: variety of components um and they're they're basically, you know, 106 00:06:32,560 --> 00:06:35,080 Speaker 1: you hook these up, and you can hook them up 107 00:06:35,080 --> 00:06:37,400 Speaker 1: in a variety of different ways depending on the type 108 00:06:37,400 --> 00:06:39,480 Speaker 1: of device and what you're trying to get it to do. 109 00:06:40,320 --> 00:06:43,839 Speaker 1: Um it. We'll get into that later, but basically, these 110 00:06:43,920 --> 00:06:48,520 Speaker 1: circuits are um a series of components that are wired 111 00:06:48,520 --> 00:06:52,920 Speaker 1: together to perform a logical operation within a device. So 112 00:06:53,040 --> 00:06:56,200 Speaker 1: let's start off from the very very very basic steps. 113 00:06:56,320 --> 00:07:02,760 Speaker 1: So it all begins with bits, zeros, and ones. Now 114 00:07:03,880 --> 00:07:06,919 Speaker 1: this these aren't just numbers zero and one does not 115 00:07:07,120 --> 00:07:10,440 Speaker 1: that doesn't that to us, That doesn't really mean anything 116 00:07:10,440 --> 00:07:13,200 Speaker 1: other than the fact that we can do mathematical processes 117 00:07:13,400 --> 00:07:17,400 Speaker 1: using them. As as as values zero and one um 118 00:07:17,440 --> 00:07:23,040 Speaker 1: they actually translate into other concepts. So a zero in 119 00:07:23,080 --> 00:07:28,760 Speaker 1: an electronics system would be a low voltage meaning zero volts, 120 00:07:28,880 --> 00:07:31,680 Speaker 1: and a one is high voltage, meaning five volts. So 121 00:07:31,720 --> 00:07:34,760 Speaker 1: a one means you've got electrons running through there at 122 00:07:34,760 --> 00:07:37,320 Speaker 1: five vaults. Zero means there are no electrons running through 123 00:07:37,400 --> 00:07:42,160 Speaker 1: zero vaults. But a zero also would mean a false statement. 124 00:07:43,080 --> 00:07:46,000 Speaker 1: One means a true statement. Zero could also be thought 125 00:07:46,000 --> 00:07:48,880 Speaker 1: of as being on in the off position. One is 126 00:07:48,920 --> 00:07:54,040 Speaker 1: in the on position. So let's we have to do. 127 00:07:54,080 --> 00:07:56,280 Speaker 1: You know, zero and one is kind of shorthand of saying. 128 00:07:56,280 --> 00:07:58,320 Speaker 1: So if we're talking about zeros, we're talking about false, 129 00:07:58,560 --> 00:08:00,240 Speaker 1: and we're talking about once, we're talking about true. For 130 00:08:00,240 --> 00:08:02,120 Speaker 1: time about zero's we're talking about low voltage. If we're 131 00:08:02,120 --> 00:08:04,480 Speaker 1: talking about one, we're talking about high voltage. This is 132 00:08:04,480 --> 00:08:11,080 Speaker 1: how we translate ideas conceptually into a real device, a 133 00:08:11,120 --> 00:08:16,200 Speaker 1: physical device that does something one there we go true. 134 00:08:16,640 --> 00:08:21,280 Speaker 1: So now a logic gate will process a signal and 135 00:08:21,920 --> 00:08:24,240 Speaker 1: what it does to that signal, like it has an 136 00:08:24,240 --> 00:08:27,320 Speaker 1: input and an output, what it does to that signal 137 00:08:27,360 --> 00:08:30,120 Speaker 1: when it comes in through the input is based upon 138 00:08:30,240 --> 00:08:33,400 Speaker 1: two things. The nature of the logic gate, because there 139 00:08:33,400 --> 00:08:37,880 Speaker 1: are several different basic types of logic gates, and the 140 00:08:37,920 --> 00:08:41,240 Speaker 1: whether or not the input was true or false, so 141 00:08:41,320 --> 00:08:43,120 Speaker 1: whether or not it was a one or a zero. 142 00:08:44,120 --> 00:08:47,920 Speaker 1: Those two elements will determine what the output of that 143 00:08:48,000 --> 00:08:52,080 Speaker 1: specific logic gate is. And the simplest logic gate is 144 00:08:52,120 --> 00:08:55,800 Speaker 1: a not git that's also known as an inverter. Yes, 145 00:08:56,040 --> 00:08:58,480 Speaker 1: Now inverters what they do is, they will take an 146 00:08:58,520 --> 00:09:02,600 Speaker 1: input and switch it to the opposite output. So, in 147 00:09:02,640 --> 00:09:07,080 Speaker 1: other words, if a zero is fed into a not gate, 148 00:09:07,240 --> 00:09:10,640 Speaker 1: it will produce a one. So false statement comes into 149 00:09:10,640 --> 00:09:12,880 Speaker 1: a not gate, it flips it to a true statement 150 00:09:12,920 --> 00:09:17,320 Speaker 1: coming out right, all right, so or against low voltage 151 00:09:17,360 --> 00:09:20,320 Speaker 1: to high voltage, yes, vice versa. So whatever the signal 152 00:09:20,360 --> 00:09:25,000 Speaker 1: coming into the the not gate is, the opposite goes out. 153 00:09:25,800 --> 00:09:28,840 Speaker 1: Now it can only have one input, which makes it 154 00:09:28,960 --> 00:09:32,760 Speaker 1: unique among the gates. The other gates have two or 155 00:09:32,880 --> 00:09:35,560 Speaker 1: more inputs, and they combine the two in order to 156 00:09:35,559 --> 00:09:40,160 Speaker 1: produce a result. Alright, So then the next one would 157 00:09:40,200 --> 00:09:45,080 Speaker 1: be an and gate. Now and gates will produce a 158 00:09:45,120 --> 00:09:49,600 Speaker 1: true result only if both inputs coming into the gate 159 00:09:49,679 --> 00:09:52,920 Speaker 1: are also true. I think of that like the programming 160 00:09:52,920 --> 00:09:57,360 Speaker 1: statement if then if both are true, then it will 161 00:09:57,400 --> 00:10:01,679 Speaker 1: return true results. So that means that let's say imagine 162 00:10:01,679 --> 00:10:04,280 Speaker 1: that you have this. You can actually imagine that this 163 00:10:04,360 --> 00:10:06,600 Speaker 1: is a gate and there are two roads leading into 164 00:10:06,600 --> 00:10:09,000 Speaker 1: the gate, and you have two cars going up to 165 00:10:09,120 --> 00:10:14,520 Speaker 1: the gate. If both cars are are true, then you've 166 00:10:14,559 --> 00:10:16,440 Speaker 1: got a true result coming out. Otherwise you have a 167 00:10:16,440 --> 00:10:18,760 Speaker 1: false result coming out. Actually, it would be and if 168 00:10:18,880 --> 00:10:22,240 Speaker 1: and only if yes. So, in other words, if you 169 00:10:22,320 --> 00:10:26,000 Speaker 1: have to If you have these two uh inputs coming 170 00:10:26,000 --> 00:10:29,520 Speaker 1: into the and gate and both are a one, so 171 00:10:29,600 --> 00:10:32,320 Speaker 1: both are true, both are high voltage, you get a 172 00:10:32,320 --> 00:10:34,920 Speaker 1: one as a result. Any other combination you get a 173 00:10:35,040 --> 00:10:38,640 Speaker 1: zero as a result a false statement or low voltage. 174 00:10:38,880 --> 00:10:42,280 Speaker 1: Zero and one will equal zero. In this case, zero 175 00:10:42,400 --> 00:10:45,160 Speaker 1: zero will be zero, zero one will be zero, one 176 00:10:45,320 --> 00:10:47,960 Speaker 1: zero will be zero because you have to think of 177 00:10:48,080 --> 00:10:51,920 Speaker 1: all three instances that way. Even though you might say, wait, 178 00:10:52,000 --> 00:10:54,160 Speaker 1: zero one and one zero, isn't that the same thing? No, 179 00:10:54,360 --> 00:10:57,520 Speaker 1: Because you're talking about two different inputs coming into a gate, 180 00:10:58,240 --> 00:11:00,960 Speaker 1: and those two inputs are coming from two different sources. 181 00:11:01,000 --> 00:11:04,120 Speaker 1: Sometimes yeah, sometimes they come from the same source, but 182 00:11:04,200 --> 00:11:07,000 Speaker 1: usually they come from two different sources. And that means 183 00:11:07,080 --> 00:11:09,720 Speaker 1: that because they're coming from two different sources, you have 184 00:11:09,760 --> 00:11:12,200 Speaker 1: two different configurations. You have one where one is true 185 00:11:12,240 --> 00:11:14,280 Speaker 1: and one is faults, and another one where one is 186 00:11:14,320 --> 00:11:17,120 Speaker 1: faults and the other is true. Sounds kind of complicated, 187 00:11:17,160 --> 00:11:19,480 Speaker 1: it's actually pretty simple. And again, if this starts to 188 00:11:19,600 --> 00:11:22,040 Speaker 1: sound confusing, check out these articles that we have on 189 00:11:22,040 --> 00:11:26,120 Speaker 1: our site because they will help illustrate these concepts. So, 190 00:11:26,480 --> 00:11:29,440 Speaker 1: besides the end gate, you have the nand gate or 191 00:11:29,520 --> 00:11:33,960 Speaker 1: not and now and not and will produce a true 192 00:11:34,000 --> 00:11:38,560 Speaker 1: result in every case except where both inputs or more 193 00:11:38,679 --> 00:11:41,160 Speaker 1: are true, because you can have more than two inputs 194 00:11:41,240 --> 00:11:44,080 Speaker 1: in an end or a nand gate. So in other words, 195 00:11:44,200 --> 00:11:46,960 Speaker 1: if you have two zeros, a zero, one, or a 196 00:11:47,000 --> 00:11:49,360 Speaker 1: one zero, you're gonna get a one out of a 197 00:11:49,440 --> 00:11:52,200 Speaker 1: nand gate. If it's a one and one, it's going 198 00:11:52,240 --> 00:11:55,400 Speaker 1: to come out as a zero in a nand gate, right, 199 00:11:56,120 --> 00:11:59,200 Speaker 1: Then you've got the or gate, and or gate will 200 00:11:59,240 --> 00:12:02,640 Speaker 1: produce a true result if at least one of the 201 00:12:02,720 --> 00:12:07,400 Speaker 1: inputs is true, so zero, one, one, zero, and one 202 00:12:07,440 --> 00:12:10,720 Speaker 1: one will all produce a one. Only zero zero produces 203 00:12:10,760 --> 00:12:13,960 Speaker 1: a zero or a false statement. Then you've got the 204 00:12:14,040 --> 00:12:16,800 Speaker 1: Nora gate, which is not or It will produce a 205 00:12:16,800 --> 00:12:20,520 Speaker 1: true result if both inputs are false, so zero zero 206 00:12:20,679 --> 00:12:23,920 Speaker 1: will produce a one zero, one one zero and one 207 00:12:23,920 --> 00:12:27,839 Speaker 1: one will produce a zero. Then you have now all 208 00:12:27,880 --> 00:12:31,040 Speaker 1: of those gates, the the and nand or and nor 209 00:12:31,160 --> 00:12:35,000 Speaker 1: gates can receive multiple inputs. And in order to really 210 00:12:35,040 --> 00:12:37,199 Speaker 1: kind of sort this out, I know it sounds confusing, 211 00:12:37,440 --> 00:12:40,680 Speaker 1: you can actually build a truth table. A truth table 212 00:12:40,720 --> 00:12:43,319 Speaker 1: is essentially just a it's like it's almost like a spreadsheet, 213 00:12:43,600 --> 00:12:47,880 Speaker 1: and it shows you what each scenario, what the outcome 214 00:12:47,960 --> 00:12:51,280 Speaker 1: would be for that particular scenario for that particular gate. 215 00:12:52,280 --> 00:12:55,680 Speaker 1: So like if A equal zero and be equal zero, 216 00:12:56,120 --> 00:13:00,480 Speaker 1: results C will equal whatever I should say result Q 217 00:13:00,679 --> 00:13:05,120 Speaker 1: because that's typically how they label it in uh in diagrams. Yeah, 218 00:13:05,280 --> 00:13:08,120 Speaker 1: they usually use a que to differentiate, so there's no 219 00:13:08,160 --> 00:13:11,360 Speaker 1: confusion that it's zero. They they you use a que 220 00:13:11,400 --> 00:13:14,319 Speaker 1: so that you get the ideas. Oh yeah, that's the output. 221 00:13:14,960 --> 00:13:17,400 Speaker 1: Um yeah, I was just gonna say that truth table 222 00:13:17,480 --> 00:13:20,640 Speaker 1: kind of sounds like a medieval torture device. Him on 223 00:13:20,760 --> 00:13:28,320 Speaker 1: the truth table, nobody resists the machine. I really don't 224 00:13:28,320 --> 00:13:31,199 Speaker 1: know what that would do to you. Um Now I 225 00:13:31,320 --> 00:13:34,000 Speaker 1: just quote Princess Bride, but of this, I was gonna 226 00:13:34,040 --> 00:13:37,720 Speaker 1: say that there's an extra bonus movie quote. Remember this 227 00:13:37,840 --> 00:13:41,640 Speaker 1: is for posterity, so please be honest. There are two 228 00:13:41,640 --> 00:13:44,360 Speaker 1: more gates. Two more gates. Yes, there's X or the 229 00:13:44,400 --> 00:13:48,000 Speaker 1: exclusive or gate, which produces a true result if the 230 00:13:48,040 --> 00:13:51,760 Speaker 1: two inputs are different. So if a zero, zero or 231 00:13:51,840 --> 00:13:54,080 Speaker 1: one one comes into an ex or gate, you're gonna 232 00:13:54,080 --> 00:13:56,560 Speaker 1: get a zero, right if you get a if it's 233 00:13:56,600 --> 00:13:59,840 Speaker 1: one zero or zero, one going into an ex orgate 234 00:14:00,080 --> 00:14:03,600 Speaker 1: get a one. Uh. Now, because of the nature of 235 00:14:03,640 --> 00:14:07,080 Speaker 1: this gate, it can only accept two inputs. You cannot 236 00:14:07,200 --> 00:14:10,640 Speaker 1: you cannot have multiple inputs beyond two in an x 237 00:14:10,760 --> 00:14:14,080 Speaker 1: or gate because it has to be specifically geared that way. Right, 238 00:14:14,160 --> 00:14:17,800 Speaker 1: because because it has to be if it if it's if, 239 00:14:17,840 --> 00:14:20,800 Speaker 1: if they have to be different. Uh, then there are 240 00:14:20,840 --> 00:14:23,400 Speaker 1: only two choices, right, there's a zero, there's a one. 241 00:14:24,040 --> 00:14:26,680 Speaker 1: If you have three inputs going into something and they 242 00:14:26,720 --> 00:14:28,640 Speaker 1: have to be different and there's only two choices, there's 243 00:14:28,640 --> 00:14:30,760 Speaker 1: no way two of those inputs have to be the same. 244 00:14:31,560 --> 00:14:35,320 Speaker 1: Bye bye again following logic. So therefore, and an ex 245 00:14:35,480 --> 00:14:38,600 Speaker 1: or gate, only two inputs can go into that gate. 246 00:14:38,840 --> 00:14:41,920 Speaker 1: Then you have the x nore gate and it produces 247 00:14:41,960 --> 00:14:44,400 Speaker 1: a true result if both inputs are the same. So 248 00:14:44,480 --> 00:14:46,960 Speaker 1: if a zero zero or a one one goes into 249 00:14:47,000 --> 00:14:49,600 Speaker 1: an exnore gate, you get a one. Otherwise you get 250 00:14:49,600 --> 00:14:51,880 Speaker 1: a zero. Same thing as the ex or gate in 251 00:14:51,880 --> 00:14:56,360 Speaker 1: that you can only have two inputs going into that gate. Now, 252 00:14:57,760 --> 00:15:00,720 Speaker 1: using these gates that we have just described here, if 253 00:15:00,760 --> 00:15:04,160 Speaker 1: you build you can actually build up a circuit using 254 00:15:04,200 --> 00:15:06,800 Speaker 1: those as their basic building blocks. In fact, you can 255 00:15:06,840 --> 00:15:09,360 Speaker 1: go to a hobby store and buy chips that have 256 00:15:09,520 --> 00:15:13,440 Speaker 1: logic gates built onto them. Yes, and we were talking 257 00:15:13,440 --> 00:15:17,480 Speaker 1: about the the RDU know a few weeks ago, And 258 00:15:17,560 --> 00:15:20,000 Speaker 1: these are the kinds of projects now if you can 259 00:15:20,040 --> 00:15:21,880 Speaker 1: get a basic grip on this, these are the kinds 260 00:15:21,880 --> 00:15:23,800 Speaker 1: of things that you can add to your projects if 261 00:15:23,840 --> 00:15:28,080 Speaker 1: you're doing um hobbies yourself and want to do this. Now, 262 00:15:28,440 --> 00:15:30,000 Speaker 1: you know, once you get a basic understanding of this, 263 00:15:30,120 --> 00:15:33,240 Speaker 1: you can make much more complex projects. Yeah, so, uh 264 00:15:33,400 --> 00:15:36,760 Speaker 1: you know, we you can consider building a circuit using 265 00:15:36,800 --> 00:15:40,400 Speaker 1: this as as using combinational logic. You're combining various gates 266 00:15:40,400 --> 00:15:43,120 Speaker 1: together in order to get a different results. So you 267 00:15:43,200 --> 00:15:46,560 Speaker 1: might have three inputs going into a system, and then 268 00:15:46,600 --> 00:15:50,600 Speaker 1: you you align various gates in a very in a 269 00:15:50,640 --> 00:15:54,080 Speaker 1: particular sequence in order to get a different result, and 270 00:15:54,920 --> 00:15:58,040 Speaker 1: it all will obey the laws of the truth tables. Now, 271 00:15:58,080 --> 00:16:01,560 Speaker 1: these these circuits can get pretty lunkey and pretty complex, 272 00:16:01,600 --> 00:16:05,160 Speaker 1: which is why we've sort of abandoned the uh you know, 273 00:16:05,400 --> 00:16:08,080 Speaker 1: it works great as a concept. In reality, we've virtualized 274 00:16:08,120 --> 00:16:10,520 Speaker 1: a lot of this since then because it just otherwise 275 00:16:10,520 --> 00:16:12,800 Speaker 1: it would just be a massive piece of hardware in 276 00:16:12,880 --> 00:16:16,680 Speaker 1: order to build a really really complex circuit um. But 277 00:16:16,840 --> 00:16:20,080 Speaker 1: you you can actually lay these out in various configurations 278 00:16:20,080 --> 00:16:23,160 Speaker 1: to get different results. So it might you might have 279 00:16:23,400 --> 00:16:28,680 Speaker 1: uh two inputs going into and and UH gate and 280 00:16:28,720 --> 00:16:32,000 Speaker 1: another input going into a not gate, and then those 281 00:16:32,080 --> 00:16:36,000 Speaker 1: the results of those um of those particular functions will 282 00:16:36,040 --> 00:16:39,400 Speaker 1: go into a third gate and then now that way 283 00:16:39,440 --> 00:16:41,680 Speaker 1: you have something coming out like maybe the maybe those 284 00:16:41,720 --> 00:16:44,560 Speaker 1: are both going into an ex or gate, and then 285 00:16:44,600 --> 00:16:48,800 Speaker 1: whatever the result is is what you're looking for. Uh. These, 286 00:16:50,000 --> 00:16:52,440 Speaker 1: like I said, get pretty clunky pretty fast. The interesting 287 00:16:52,440 --> 00:16:56,320 Speaker 1: thing is you can actually replace the function of some 288 00:16:56,400 --> 00:16:58,800 Speaker 1: of these gates using other gates. You just have to 289 00:16:58,880 --> 00:17:02,280 Speaker 1: put them in the right configu duration to do so. 290 00:17:02,280 --> 00:17:03,720 Speaker 1: So you can think of some of these gates is 291 00:17:03,720 --> 00:17:06,360 Speaker 1: almost being like shorthand like this gate does this one 292 00:17:06,480 --> 00:17:10,159 Speaker 1: function and so therefore uh it does it um. You know, 293 00:17:10,200 --> 00:17:12,720 Speaker 1: that's all it does. You just put that in this place. 294 00:17:12,760 --> 00:17:15,640 Speaker 1: But sometimes you might be working with a system where 295 00:17:15,640 --> 00:17:18,560 Speaker 1: you don't want to have lots of different types of gates. 296 00:17:18,800 --> 00:17:21,200 Speaker 1: You want to use maybe one or two types of 297 00:17:21,240 --> 00:17:22,760 Speaker 1: gates and you don't want to have to deal with 298 00:17:22,800 --> 00:17:25,199 Speaker 1: all the others. Well you can do that. You just 299 00:17:25,280 --> 00:17:28,320 Speaker 1: have to build the gates in the proper sequence in 300 00:17:28,440 --> 00:17:31,520 Speaker 1: order to get the result you want, UH for it 301 00:17:31,560 --> 00:17:34,320 Speaker 1: to to copy the function of one of the other gates. 302 00:17:34,359 --> 00:17:36,600 Speaker 1: And there's various ways of doing this. Now, it does 303 00:17:36,680 --> 00:17:40,520 Speaker 1: mean that you're going to use more gates overall usually 304 00:17:41,000 --> 00:17:43,600 Speaker 1: than you would if you were using the the different types, 305 00:17:43,640 --> 00:17:46,560 Speaker 1: but you would all be using the same type of gates. 306 00:17:46,560 --> 00:17:49,280 Speaker 1: So you're you've reduced it to a single type of gate, 307 00:17:49,600 --> 00:17:52,400 Speaker 1: but you you're using more of that particular gate than 308 00:17:52,440 --> 00:17:54,800 Speaker 1: you would if you were using multiple types of gates. 309 00:17:55,960 --> 00:17:59,080 Speaker 1: Sounds a little complicated, but it does. It does mean 310 00:17:59,119 --> 00:18:02,240 Speaker 1: that when you're sketching it out, it really cuts down 311 00:18:02,320 --> 00:18:04,440 Speaker 1: on the sort of gates that you have to design 312 00:18:04,800 --> 00:18:08,520 Speaker 1: when you're when you're at least conceptually building your circuitry. Now, 313 00:18:10,160 --> 00:18:12,840 Speaker 1: go ahead, and I was just gonna say that these 314 00:18:12,920 --> 00:18:16,919 Speaker 1: these gates can be run in parallel or in a series, 315 00:18:17,280 --> 00:18:20,040 Speaker 1: and um it actually kind of reminds me in a 316 00:18:20,080 --> 00:18:25,399 Speaker 1: way of a very complex UH railway, because I mean, 317 00:18:25,440 --> 00:18:28,560 Speaker 1: you're basically using these switches to control the flow of 318 00:18:28,600 --> 00:18:35,199 Speaker 1: information in your electronic device. Um So as a you know, 319 00:18:35,240 --> 00:18:37,879 Speaker 1: as someone would watch the board and make sure that 320 00:18:37,880 --> 00:18:41,840 Speaker 1: the trains don't collide. Um. You're also sort of you know, 321 00:18:41,960 --> 00:18:44,960 Speaker 1: you can actually control the way information flows through the 322 00:18:45,520 --> 00:18:48,000 Speaker 1: device using these switches, and you can place them in 323 00:18:48,040 --> 00:18:51,680 Speaker 1: ways that make the most sense to to what you're 324 00:18:51,680 --> 00:18:53,800 Speaker 1: trying to carry out, which is essentially what you just said. 325 00:18:53,800 --> 00:18:58,359 Speaker 1: But um, it helps me think about this conceptually, to 326 00:18:58,880 --> 00:19:02,080 Speaker 1: put it in and out analogy from that to something 327 00:19:02,119 --> 00:19:04,560 Speaker 1: that I can think about, like trains, because trains are 328 00:19:04,640 --> 00:19:06,800 Speaker 1: nice and and if you wanna, you know, if you 329 00:19:06,800 --> 00:19:09,199 Speaker 1: really want to get into this, each of these gates 330 00:19:09,240 --> 00:19:15,840 Speaker 1: has a particular um graphical representation of you know, what 331 00:19:15,960 --> 00:19:19,280 Speaker 1: it does. So it's I'm not bothering describing it on 332 00:19:19,320 --> 00:19:21,280 Speaker 1: the podcast because this is an audio podcast. It would 333 00:19:21,320 --> 00:19:23,280 Speaker 1: be kind of it would be kind of pointless to 334 00:19:23,320 --> 00:19:25,800 Speaker 1: do it. And the shapes, the shapes aren't you know, 335 00:19:26,280 --> 00:19:29,040 Speaker 1: like a circle or a triangle or a square something 336 00:19:29,080 --> 00:19:32,679 Speaker 1: that is uh easy to describe, a lot of these 337 00:19:32,680 --> 00:19:35,920 Speaker 1: shapes are modifications of those types of things. So you 338 00:19:36,000 --> 00:19:38,480 Speaker 1: might say a trianglar looking thing, but you're really not 339 00:19:38,520 --> 00:19:40,840 Speaker 1: going to get it. It makes more sense to actually 340 00:19:40,840 --> 00:19:43,200 Speaker 1: go to a website that has them all laid out, 341 00:19:43,520 --> 00:19:46,639 Speaker 1: and then once you learn what the the sort of 342 00:19:46,760 --> 00:19:50,119 Speaker 1: graphic representation of a gate what it looks like. You 343 00:19:50,160 --> 00:19:54,359 Speaker 1: can start looking at um the combination of gates and say, oh, 344 00:19:54,400 --> 00:19:56,920 Speaker 1: well that's an and gate. So that means that since 345 00:19:56,960 --> 00:20:00,560 Speaker 1: I know that and gates always give a result, that is, 346 00:20:00,760 --> 00:20:02,959 Speaker 1: it will produce a true result only if both inputs 347 00:20:03,000 --> 00:20:05,159 Speaker 1: are true. I know what the output of this end 348 00:20:05,200 --> 00:20:08,080 Speaker 1: gate will be depending upon the inputs. So, because it's 349 00:20:08,080 --> 00:20:10,400 Speaker 1: always going to behave the same way, it's never going 350 00:20:10,440 --> 00:20:13,959 Speaker 1: to behave uh in a way opposite or different unless 351 00:20:13,960 --> 00:20:17,040 Speaker 1: you you know, well never, it will never do that. 352 00:20:17,320 --> 00:20:19,080 Speaker 1: It's only if you were using a nand gate that 353 00:20:19,119 --> 00:20:23,440 Speaker 1: it would be different than the way it normally is. UM. 354 00:20:23,560 --> 00:20:26,880 Speaker 1: So that way, since you know how each gate behaves 355 00:20:26,920 --> 00:20:32,000 Speaker 1: in any specific circumstance given time, you can decipher what 356 00:20:32,240 --> 00:20:35,800 Speaker 1: a fairly complex diagram will do. You just say, all right, 357 00:20:35,920 --> 00:20:39,200 Speaker 1: I know that this gate always behaves this way. Therefore, 358 00:20:39,960 --> 00:20:44,480 Speaker 1: this is what would happen given this particular series of inputs. 359 00:20:44,920 --> 00:20:47,119 Speaker 1: You can actually build out a truth table for a 360 00:20:47,119 --> 00:20:50,199 Speaker 1: complex circuit that way, and you will ultimately know what 361 00:20:50,359 --> 00:20:55,080 Speaker 1: the circuit will produce given any particular set of circumstances. Now, 362 00:20:55,119 --> 00:20:57,680 Speaker 1: the more complex a circuit gets the wider that truth 363 00:20:57,720 --> 00:20:59,800 Speaker 1: table is gonna be, and the more you're gonna have 364 00:20:59,840 --> 00:21:02,480 Speaker 1: to really check to make sure you're following the logical 365 00:21:02,560 --> 00:21:07,400 Speaker 1: rules so that the results are are accurate, um other 366 00:21:07,520 --> 00:21:10,600 Speaker 1: and we call this, we actually call this programming a circuit. 367 00:21:10,720 --> 00:21:13,320 Speaker 1: Even though you might think of programming is something you 368 00:21:13,359 --> 00:21:17,199 Speaker 1: do sitting down typing on a keyboard. This and this 369 00:21:17,240 --> 00:21:21,879 Speaker 1: involves actual physically hooking up wires to logic gates in 370 00:21:21,920 --> 00:21:25,359 Speaker 1: whatever sequence or series you need. Uh, we still call 371 00:21:25,400 --> 00:21:28,320 Speaker 1: that programming. Yeah, an engineer might graft this out using 372 00:21:28,359 --> 00:21:31,119 Speaker 1: these symbols on a piece of paper to get an 373 00:21:31,160 --> 00:21:33,959 Speaker 1: idea of how it works. But logic gates can be 374 00:21:34,080 --> 00:21:36,480 Speaker 1: very very small. I mean, we're we we've talked about 375 00:21:36,520 --> 00:21:39,240 Speaker 1: the manufacture of transistors before. I mean, you can have 376 00:21:39,960 --> 00:21:43,840 Speaker 1: millions of transistors and a very small piece of silicon 377 00:21:44,600 --> 00:21:48,320 Speaker 1: and the logic gates I mean, using the metal oxide 378 00:21:48,359 --> 00:21:53,040 Speaker 1: semiconductor UH type, which is apparently predominant according to Access 379 00:21:53,040 --> 00:21:56,840 Speaker 1: Science and manufacturing today, you can have many, many of 380 00:21:56,880 --> 00:21:59,399 Speaker 1: these devices. So it helps I mean, I think it 381 00:21:59,400 --> 00:22:01,280 Speaker 1: would help me if I were trying to figure out 382 00:22:01,320 --> 00:22:03,960 Speaker 1: exactly how I wanted to lay out this device to 383 00:22:04,080 --> 00:22:06,399 Speaker 1: have it you know, drafted out with these symbols and 384 00:22:06,440 --> 00:22:08,399 Speaker 1: get an idea of how it's it's working. I'm sure 385 00:22:08,440 --> 00:22:11,440 Speaker 1: a lot of them use computers. Actually have a program 386 00:22:11,440 --> 00:22:15,400 Speaker 1: that I use for information architecture that has a template 387 00:22:15,440 --> 00:22:17,160 Speaker 1: with all these symbols on there, and then you can, 388 00:22:17,200 --> 00:22:18,600 Speaker 1: you know, put it up on the screen and get 389 00:22:18,640 --> 00:22:20,760 Speaker 1: an idea of how it works. But that's far larger 390 00:22:20,800 --> 00:22:24,280 Speaker 1: than the actual devices because the manufacturing process can make 391 00:22:24,280 --> 00:22:26,800 Speaker 1: them very very tiny, right, And as we've said in 392 00:22:26,920 --> 00:22:31,040 Speaker 1: other podcasts, this is part of why miniaturization has some 393 00:22:31,400 --> 00:22:34,760 Speaker 1: uh some challenges, uh that go along with it. I mean, 394 00:22:34,760 --> 00:22:36,320 Speaker 1: there are a lot of different challenges, but one of 395 00:22:36,320 --> 00:22:39,359 Speaker 1: the challenges is that by getting these gates to be 396 00:22:39,480 --> 00:22:42,720 Speaker 1: smaller and smaller, each each element on a transistor is 397 00:22:42,800 --> 00:22:46,240 Speaker 1: decreasing in size. Remember, if we're following Moore's law, then 398 00:22:46,280 --> 00:22:48,320 Speaker 1: ideally you're going to be able to fit twice as 399 00:22:48,359 --> 00:22:51,840 Speaker 1: many discrete elements on a chip within twenty four months, 400 00:22:51,920 --> 00:22:54,960 Speaker 1: or at least the the number of discrete elements on 401 00:22:55,000 --> 00:22:56,800 Speaker 1: a chip will be twice as many as it would 402 00:22:56,800 --> 00:22:59,679 Speaker 1: have been twenty four months before, so two years before 403 00:23:00,359 --> 00:23:05,480 Speaker 1: um with that, with those elements decreasing in size. At 404 00:23:05,520 --> 00:23:08,200 Speaker 1: that pace, you start to run up against some pretty 405 00:23:08,280 --> 00:23:10,440 Speaker 1: challenging issues and we've talked about it several times on 406 00:23:10,480 --> 00:23:14,439 Speaker 1: the podcast before, Like electron tunneling. So if you have 407 00:23:14,480 --> 00:23:18,800 Speaker 1: a gate that determines how what the result it needs 408 00:23:18,840 --> 00:23:21,960 Speaker 1: to be from any given inputs, um, if you have 409 00:23:22,000 --> 00:23:25,919 Speaker 1: an electron that can tunnel past that gate, then it 410 00:23:26,119 --> 00:23:29,040 Speaker 1: overrides the function of that gate, which means it will 411 00:23:29,080 --> 00:23:32,600 Speaker 1: start creating errors in your calculations. You know, you think 412 00:23:32,640 --> 00:23:35,119 Speaker 1: about these these gates being so small that electron can 413 00:23:35,119 --> 00:23:37,560 Speaker 1: tunnel through them. And by the way, electrons don't really 414 00:23:37,560 --> 00:23:39,800 Speaker 1: tunnel through them, they just appear on the other side 415 00:23:39,840 --> 00:23:41,840 Speaker 1: of the gate. Actually, if you think of it this way, 416 00:23:42,040 --> 00:23:44,800 Speaker 1: think of as an electron as just being a uh. 417 00:23:45,000 --> 00:23:48,320 Speaker 1: It's you can predict that electron will appear somewhere within 418 00:23:48,359 --> 00:23:50,840 Speaker 1: a given area, all right, but you don't know the 419 00:23:50,880 --> 00:23:55,119 Speaker 1: specific location of that electron. So within a given area, 420 00:23:55,240 --> 00:23:57,600 Speaker 1: think of it like a sphere. You've got the sphere, 421 00:23:57,720 --> 00:24:01,760 Speaker 1: and somewhere inside that sphere is this electron. Right as 422 00:24:01,800 --> 00:24:05,879 Speaker 1: that sphere approaches the gate, then part of that sphere 423 00:24:05,960 --> 00:24:09,520 Speaker 1: is going to go over the gate. Uh and meaning 424 00:24:09,520 --> 00:24:12,440 Speaker 1: that the electron could in theory somehow exists on the 425 00:24:12,440 --> 00:24:15,439 Speaker 1: other side of that gate without passing through it. That 426 00:24:15,520 --> 00:24:18,119 Speaker 1: means that because there is a chance that the electron 427 00:24:18,119 --> 00:24:20,240 Speaker 1: could somehow exist on the other side of that gate 428 00:24:20,240 --> 00:24:23,639 Speaker 1: without passing through it, sometimes it does. Because there's a chance, 429 00:24:24,040 --> 00:24:26,359 Speaker 1: yes and anything that if there is a chance for 430 00:24:26,440 --> 00:24:29,399 Speaker 1: something to happen eventually, sooner or later, it happens. So 431 00:24:29,760 --> 00:24:31,840 Speaker 1: that's the definition of chance. If there's no chance that 432 00:24:31,920 --> 00:24:37,679 Speaker 1: it won't happen. So right, exactly, there's Schrodinger shake fist. 433 00:24:38,200 --> 00:24:41,200 Speaker 1: Actually it's more like Heisenberg's and certainty principle. But anyway, um, 434 00:24:41,600 --> 00:24:44,040 Speaker 1: but I was thinking you just weren't sure about it, 435 00:24:44,119 --> 00:24:46,679 Speaker 1: right exactly, there you go. So anyway, the electron, because 436 00:24:46,680 --> 00:24:48,880 Speaker 1: it can sometimes be on the other side of that gates. 437 00:24:48,920 --> 00:24:50,760 Speaker 1: Sometimes it is on the other side of that gate. 438 00:24:50,800 --> 00:24:52,440 Speaker 1: That's one of the challenges we have when we get 439 00:24:52,480 --> 00:24:55,040 Speaker 1: these these gates at these tiny, tiny size. You know 440 00:24:55,119 --> 00:24:58,440 Speaker 1: that the thickness is not thick enough to prevent electron 441 00:24:58,480 --> 00:25:02,720 Speaker 1: tunneling unless start switching to other materials which are more 442 00:25:02,720 --> 00:25:05,840 Speaker 1: resistant to electron tunneling, which is so complex. I still 443 00:25:05,880 --> 00:25:07,320 Speaker 1: have not gotten a good grip on it. So I 444 00:25:07,320 --> 00:25:10,000 Speaker 1: can't really explain why that is. I just know that 445 00:25:10,160 --> 00:25:14,600 Speaker 1: really smart people at Intel have figured it out. Anyway. Uh, 446 00:25:14,640 --> 00:25:16,439 Speaker 1: that's one of the reasons why we talk about this 447 00:25:16,520 --> 00:25:20,920 Speaker 1: miniaturization process being a challenge to keeping Moore's Law going 448 00:25:21,119 --> 00:25:23,239 Speaker 1: because remember More's Law is not truly a law, it's 449 00:25:23,280 --> 00:25:26,760 Speaker 1: an observation, and companies are struggling to make sure that 450 00:25:26,800 --> 00:25:30,159 Speaker 1: they meet the expectation laid out in that observation and 451 00:25:30,320 --> 00:25:34,200 Speaker 1: self fulfilling prophecy. Yes, yeah, because once More's Law ends, 452 00:25:34,280 --> 00:25:36,359 Speaker 1: then you know, the chaos will rain and robots will 453 00:25:36,359 --> 00:25:39,400 Speaker 1: take over the earth and etcetera, and zombies and brains anyway. 454 00:25:39,480 --> 00:25:43,760 Speaker 1: So um again, because logic gates are the very basis 455 00:25:43,880 --> 00:25:47,440 Speaker 1: of these calculations. If the electron ignores the logic gate, 456 00:25:48,040 --> 00:25:52,200 Speaker 1: computing stops working. So that's why we talk about electron tunneling, 457 00:25:52,280 --> 00:25:56,680 Speaker 1: quantum mechanics, and quantum engineering in relation to microprocessors, because 458 00:25:56,680 --> 00:25:59,720 Speaker 1: they're built on this foundation of logic gates and they 459 00:25:59,720 --> 00:26:03,359 Speaker 1: are basic. Microprocessor is going to be so complex that 460 00:26:03,480 --> 00:26:06,160 Speaker 1: to sketch it out and a logic gate formation would 461 00:26:06,200 --> 00:26:11,000 Speaker 1: be pretty intense. But the nice thing is you can 462 00:26:11,080 --> 00:26:13,520 Speaker 1: learn the basics of this pretty simply, like I said, 463 00:26:13,600 --> 00:26:15,760 Speaker 1: you go to a couple of websites and look at 464 00:26:15,920 --> 00:26:18,960 Speaker 1: how the logic gates are are displayed in a in 465 00:26:19,040 --> 00:26:21,480 Speaker 1: a sketch. And you can even go out to a 466 00:26:21,520 --> 00:26:23,920 Speaker 1: hobby store and buy chips that have logic gates on 467 00:26:23,960 --> 00:26:26,359 Speaker 1: them and learn how to hook them up yourself and 468 00:26:26,480 --> 00:26:30,719 Speaker 1: see it in action. It's pretty cool. It's a it's 469 00:26:30,760 --> 00:26:33,040 Speaker 1: a neat project. There's a neat way to really start 470 00:26:33,080 --> 00:26:37,479 Speaker 1: getting your feet wet in designing electronics, and there are 471 00:26:37,480 --> 00:26:40,320 Speaker 1: plenty of different tutorials out there to explain how to 472 00:26:40,400 --> 00:26:42,959 Speaker 1: do that and what why you would do that, Like 473 00:26:43,000 --> 00:26:44,560 Speaker 1: you know, yeah, I've hooked up a lot of wires 474 00:26:44,640 --> 00:26:46,800 Speaker 1: to this thing and it's doing this thing, but I 475 00:26:46,800 --> 00:26:48,840 Speaker 1: have no idea why it's doing it or or what's 476 00:26:48,840 --> 00:26:52,399 Speaker 1: the purpose. This is just the foundation, the building blocks 477 00:26:53,119 --> 00:26:56,119 Speaker 1: um and then hopefully maybe in the future podcasts we 478 00:26:56,160 --> 00:27:00,680 Speaker 1: can go into stuff like sequential logic, as we're talking 479 00:27:00,680 --> 00:27:05,080 Speaker 1: about combinational logic right now. Sequential logic depends on other 480 00:27:05,200 --> 00:27:10,000 Speaker 1: concepts like state, like an information state. You know, we 481 00:27:10,080 --> 00:27:13,800 Speaker 1: say that an information has state if it carries over 482 00:27:13,880 --> 00:27:16,919 Speaker 1: information from previous calculations. If I were to give you 483 00:27:16,960 --> 00:27:20,000 Speaker 1: a simple calculation. If I were to say, all right, 484 00:27:20,440 --> 00:27:23,720 Speaker 1: add one variable to another variable and you get a 485 00:27:24,080 --> 00:27:27,000 Speaker 1: sum of those two variables. All right, Well, there's no 486 00:27:27,119 --> 00:27:30,399 Speaker 1: state in that in that function I just gave you, 487 00:27:30,440 --> 00:27:33,159 Speaker 1: because you could take any two variables you wanted and 488 00:27:33,200 --> 00:27:36,560 Speaker 1: you're going to get a sum. But there's that that 489 00:27:36,680 --> 00:27:39,760 Speaker 1: sum has no information on it based upon the previous 490 00:27:39,920 --> 00:27:43,400 Speaker 1: two numbers you added to it, right, Because you might say, 491 00:27:43,400 --> 00:27:44,960 Speaker 1: all right, for this one, I'm going to add three 492 00:27:44,960 --> 00:27:46,640 Speaker 1: and four I got seven, And this one i'm gonna 493 00:27:46,680 --> 00:27:50,240 Speaker 1: add five and nine I got fourteen, and they have 494 00:27:50,320 --> 00:27:54,359 Speaker 1: no bearing on each other. Information that has a state 495 00:27:54,520 --> 00:27:58,480 Speaker 1: has bearing upon previous calculations, and that's very important for computing. 496 00:27:58,520 --> 00:28:00,720 Speaker 1: Without it, computers would own we be able to do 497 00:28:01,160 --> 00:28:03,720 Speaker 1: really one function and then the next function will have 498 00:28:03,800 --> 00:28:06,359 Speaker 1: nothing to do with the next uh with the with 499 00:28:06,400 --> 00:28:08,200 Speaker 1: the one you did before. So it would be impossible 500 00:28:08,200 --> 00:28:10,840 Speaker 1: to really build a program. You would have to have 501 00:28:10,880 --> 00:28:13,720 Speaker 1: something that has some form of state so it can 502 00:28:13,800 --> 00:28:17,960 Speaker 1: build upon what has come previously. That really goes into 503 00:28:17,960 --> 00:28:20,919 Speaker 1: sequential logic. It's its own thing. We will tackle that 504 00:28:21,000 --> 00:28:23,640 Speaker 1: in a different podcast, because that's gonna have some more 505 00:28:23,840 --> 00:28:27,080 Speaker 1: kind of complex conversations to kind of get into you know, 506 00:28:27,160 --> 00:28:29,800 Speaker 1: what sequential logic is, what it means, and how do 507 00:28:29,880 --> 00:28:33,560 Speaker 1: we achieve it. But but really you can't get there 508 00:28:34,040 --> 00:28:38,280 Speaker 1: without first looking at the logic gates issue. So I 509 00:28:38,360 --> 00:28:41,520 Speaker 1: want to thank our listeners who have requested logic Gates 510 00:28:41,560 --> 00:28:44,400 Speaker 1: because it is a really important topic. It's a really 511 00:28:44,440 --> 00:28:46,880 Speaker 1: fun topic really if you like puzzles. I I was 512 00:28:46,920 --> 00:28:49,800 Speaker 1: telling Chris before this that symbolic logic is one of 513 00:28:49,840 --> 00:28:52,400 Speaker 1: my was one of my favorite classes in college. I 514 00:28:52,760 --> 00:28:56,600 Speaker 1: was in English literature major with a focus on shakespearean 515 00:28:57,000 --> 00:29:02,520 Speaker 1: uh drama, but somehow symbolic logic became one of my 516 00:29:02,600 --> 00:29:06,200 Speaker 1: favorite classes because it just made sense to me. And 517 00:29:06,280 --> 00:29:09,760 Speaker 1: I love these sort of puzzles where you just you 518 00:29:09,800 --> 00:29:12,240 Speaker 1: look at this big picture and it looks really complex 519 00:29:12,360 --> 00:29:15,560 Speaker 1: and really overwhelming, but if you just know the rules, 520 00:29:16,080 --> 00:29:19,719 Speaker 1: with enough time and attention, you can figure out how 521 00:29:19,760 --> 00:29:23,720 Speaker 1: it all works. And that's amazing. I don't know, I'm 522 00:29:24,040 --> 00:29:26,960 Speaker 1: pretty illogical. I'm not sure. Well I I when I'm 523 00:29:27,000 --> 00:29:29,440 Speaker 1: saying you, I really mean me, I don't mean you 524 00:29:30,360 --> 00:29:35,560 Speaker 1: you Okay. So anyway, that covers our episode on logic gates. 525 00:29:35,680 --> 00:29:38,680 Speaker 1: If you have any requests for particular episodes, whether they 526 00:29:38,720 --> 00:29:41,880 Speaker 1: be really technical or not so technical, just let us know. 527 00:29:42,040 --> 00:29:44,600 Speaker 1: You can say as an email that address is tech 528 00:29:44,640 --> 00:29:47,840 Speaker 1: stuff at how stuff Works dot com, or you can 529 00:29:47,960 --> 00:29:51,000 Speaker 1: send us a request via Twitter or Facebook or handle 530 00:29:51,040 --> 00:29:53,560 Speaker 1: at both of those is tech Stuff h SW. And 531 00:29:53,600 --> 00:29:57,080 Speaker 1: we should also point out recently we launched a brand 532 00:29:57,080 --> 00:30:00,360 Speaker 1: new iPad app, So if you are an iPad owner 533 00:30:00,480 --> 00:30:02,880 Speaker 1: like the fellow sitting across the table for me, and 534 00:30:02,960 --> 00:30:05,880 Speaker 1: you want to have some fun with a new app 535 00:30:05,960 --> 00:30:08,800 Speaker 1: that has a lot of our great content all bundled 536 00:30:08,800 --> 00:30:12,800 Speaker 1: in their specifically designed for the layout on the iPad, 537 00:30:13,160 --> 00:30:15,760 Speaker 1: check that out because it's been, uh, it's been really 538 00:30:15,800 --> 00:30:17,880 Speaker 1: impressing everyone around the office for a couple of weeks, 539 00:30:17,920 --> 00:30:19,680 Speaker 1: and now that it's out there in the wild, we're 540 00:30:19,720 --> 00:30:23,240 Speaker 1: really excited to see what people think. And Chris and 541 00:30:23,280 --> 00:30:26,040 Speaker 1: I will talk to you again, hopefully with a little 542 00:30:26,040 --> 00:30:31,120 Speaker 1: bit of logic really soon. Be sure to check out 543 00:30:31,160 --> 00:30:34,320 Speaker 1: our new video podcast, Stuff from the Future. Join How 544 00:30:34,400 --> 00:30:37,600 Speaker 1: Stuffwork staff as we explore the most promising and perplexing 545 00:30:37,680 --> 00:30:42,360 Speaker 1: possibilities of tomorrow. The House Stuff Works iPhone app has arrived. 546 00:30:42,480 --> 00:30:49,640 Speaker 1: Download it today on iTunes. Brought to you by the 547 00:30:49,640 --> 00:30:53,040 Speaker 1: reinvented two thousand twelve Camray. It's ready, Are you