Logic Gates Flashcards
What is a logic gate?
The LOGIC that every computer has to follow from the inside
What does a ‘not’ Gate do?
It reverses the input
What does an ‘and’ gate do?
If both inputs are 1, then the output will be 1. If not then the output will be 0
What does an ‘or’ gate do?
If both or one of the inputs are 1, then the output will be 1, if not then the output will be 0
What does a ‘XOR’ gate do?
If one or the other inputs are 1, the output will be 1. If both are 1, the output will be 0
How do you convert denery to binary?
Draw a table with the numbers:128,64,32,16,8,4,2,1
Get all the numbers that can add up to the denery number you want
When you find all of them, put 1s one the ones that you need to add up to the denery number but put 0s on the ones you dont need
How do you convert binary to deanery?
Write 128,64,32,16,8,4,2,1
And underneath, plot the ones and zeroes underneath the numbers
Add up all the numbers that have a 1– ignore the 0
How do you convert hexadecimal to binary?
Plot 8,4,2,1 (plot it multiple times if there are multiple numbers)
For example if im trying to find A:
8=1,4=0,2=1,1=0
The reason why is because these numbers add up to 10
What does A,B,C,D,E,F in hexadecimal mean?
A=10 B=11 C=12 D=13 E=14 F=15
How to convert denery to hexadecimal?
Convert the number to binary– then plot the numbers into
8,4,2,1 and then 8,4,2,1 again
Then add all the numbers that have a one together, but dont combine both columns’ answer, instead just put the numbers together
If the number is over 9 refer to the previous card
Then you have the hexadecimal