00:00digital logic is the brain of every electronic device from your digital watch to the smartphone
00:05in your hand but how do these machines make decisions they use the building blocks of
00:11digital circuits logic gates a logic gate performs a specific logical function it takes two or more
00:18inputs either low or high or high and produces a single output based on its internal rules
00:24let's look at the most common ones first is the and gate think of it as a both or nothing
00:30gate
00:31the output is high only when all inputs are high if even one input is zero the output is zero
00:38its
00:38expression is f equals x times y next is the or gate this is the either or gate it produces
00:45a high
00:45output if at least one input is one the output is only zero when all inputs are zero we write
00:51this
00:51as f equals x plus y the not gate is unique because it only has one input it's an inverter
00:57if you give it a one it gives you a zero if you give it a zero it gives you
01:02a one now let's meet
01:03the opposites the nand gate is an and gate followed by an inverter it's zero only when all inputs are
01:09one
01:10similarly the nor gate is an or gate followed by an inverter it produces a one only when all inputs
01:16are
01:16zero finally we have the exclusive or or xor gate this gate is picky it only outputs a one if
01:23the
01:23inputs are different if both inputs are the same the output is zero by combining these simple gates
01:30computers perform billions of calculations every second you've just learned the alphabet of the
01:36digital world if this helped you understand logic gates hit that like button and subscribe for more tech
01:41tutorials see you next time
Comments