ieee’s hands on practical electronics (hope)
DESCRIPTION
IEEE’s Hands on Practical Electronics (HOPE). Lesson 9: CMOS, Digital Logic. Last Week. Transistors PMOS NMOS vs. PMOS. This Week. CMOS Digital Logic Logic Gates Constructing simple CMOS logic gates. CMOS. C omplimentary MOS Uses both types of MOS to make a circuit NMOS PMOS - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/1.jpg)
IEEE’sHands on Practical Electronics (HOPE)
Lesson 9: CMOS, Digital Logic
![Page 2: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/2.jpg)
Last Week
• Transistors– PMOS
– NMOS vs. PMOS
Type Gate Voltage
Current?
PMOS HIGH OFF
PMOS LOW ON
NMOS HIGH ON
NMOS LOW OFF
![Page 3: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/3.jpg)
This Week
• CMOS
• Digital Logic– Logic Gates
• Constructing simple CMOS logic gates
![Page 4: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/4.jpg)
CMOS
• Complimentary MOS
• Uses both types of MOS to make a circuit– NMOS
– PMOS
• Special style of design so the NMOS and PMOS compliment each other
• Uses low power because of its complimentary nature
![Page 5: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/5.jpg)
Logic
• Logic is logical
• Logic is a stateless way to calculate consistent results with the same input
• In other words, logic systems always take inputs and give out answers.
![Page 6: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/6.jpg)
Boolean Algebra
• An algebra with booleans.– True or False, 0 or 1, ON or OFF
• Developed by George Boole (1815-1864)
• Easy to use for computers,
due to the compatibility with
binary.
![Page 7: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/7.jpg)
Logic
• What is it?
• You have already encountered it in your daily life.
• You use it in your speech.
• Simple logic functions: NOT, AND, OR.
![Page 8: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/8.jpg)
Terms
• Logical operations – functions, i.e. ANDs, ORs, NOTs.
• Logic gate – an representation of a logical operation
• Combinational logic – a combination of logic gates that performs a complex logical function
![Page 9: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/9.jpg)
Notation
• NOT: ~A, ¬A, A
• AND: AB, A•B
• OR: A+B
• YES, True, HIGH, 1 all mean the same thing
• NO, False, LOW, 0 all mean the same thing
![Page 10: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/10.jpg)
Logic Gates
• A logic gate performs a logical operation on one or more logic inputs and produces a single logic output. (from wikipedia)
![Page 11: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/11.jpg)
Gate Symbols
• Examples of logic gates.
![Page 12: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/12.jpg)
NOT
• Means opposite
• For exampleI am happy
I am NOT happy
• Compare the above with the followingHappy
¬Happy
![Page 13: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/13.jpg)
AND
• You can buy a new car if your dad AND your mom say ok.
MOM DAD NEW CAR?
0 0 0
0 1 0
1 0 0
1 1 1
![Page 14: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/14.jpg)
OR
• You can buy a new car if your dad OR your mom say ok.
MOM DAD NEW CAR?
0 0 0
0 1 1
1 0 1
1 1 1
![Page 15: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/15.jpg)
OR
• Let’s change the names a bit
A B OUT
0 0 0
0 1 1
1 0 1
1 1 1
![Page 16: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/16.jpg)
Logical expressions
• Any logical expression can be implemented with NOTs, ANDs and ORs.
![Page 17: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/17.jpg)
More Complex Functions
• NAND = NOT(AND(x, y))
• NOR = NOT(OR(x, y))
• NAND and NOR are logically sufficient
• Logically sufficient – able to implement all logic with only one type of logic gate.
![Page 18: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/18.jpg)
NOT gate
• A NOT gate inverts your input
• ~A, ¬A, A
![Page 19: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/19.jpg)
NAND gate
• NAND is the NOT of an AND
• Written as ~AB (or any combination of NOT and AND notation)
![Page 20: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/20.jpg)
NOR gate
• NOR is the NOT of an OR
• Written as ~(A+B) (or any combination of NOT and OR notation)
![Page 21: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/21.jpg)
In real life
• NANDs are used more often than NORs because they are based on NMOS instead of PMOS
• But why bother with NOTs?– Answer: NAND and NOR take 4 transistors each,
but NOT only takes 2.
![Page 22: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/22.jpg)
Transistor CMOS NOT gate
![Page 23: IEEE’s Hands on Practical Electronics (HOPE)](https://reader035.vdocument.in/reader035/viewer/2022070411/5681488b550346895db5a1d7/html5/thumbnails/23.jpg)
Transistor AND gate