Logic Gates

From TRCCompSci - AQA Computer Science
Revision as of 14:43, 10 June 2018 by Admin (talk | contribs)
Jump to: navigation, search

Overview

https://www.youtube.com/watch?v=41Xa1hDl5K0&index=2&list=PLCiOXwirraUA9HyHoqOaGBU_k6nBRCb22

And Gates

The output of an AND gate is true only when all of the inputs are true. If one or more of an AND gate's inputs are false, then the output of the AND gate is false.

And gate.gif

Or Gates

An OR gate is when either of the values can be true, and the output shall always be true in that instance. The images below shows what the OR gate looks like, and the table shows all possible outcomes.

OrGate.gif Image002.gif

Not Gates

A NOT gate outputs the opposite of what is inputted. The image below shows a NOT gate, as well as all possible outcomes.

NotGate.jpg


NAND Gate

A NAND gate is an inverted AND gate meaning the inputs will cause an inverted outcome, so having no input will cause an output of 1, which is the opposite of an AND gate, which would be 0.

Nand Gate.png Nand truth table.png

NOR Gate

NOR Gate.png

A NOR gate is an inverted OR gate, so any input will cause an output of 0 and this is the opposite of a regular OR gate, which would give an output of 1.

Nor gate and truth table.png

XOR Gate

An XOR gate is a variation of the OR gate, however, out of its two inputs, it will only give an output of 1 if only one of the inputs is 1, and an output of 0 if both are off or if both are on.


XOR Gate.png Truth table xor.png