SlideShare a Scribd company logo
Computer Design and Technology Assignment 2
Basic CMOS concepts
We will now see the use of transistor for designing logic gates. Further down in the course we will
use the same transistors to design other blocks (such as flip-flops or memories)
Ideally, a transistor behaves like a switch. For NMOS transistors, if the input is a 1 the switch is on,
otherwise it is off. On the other hand, for the PMOS, if the input is 0 the transistor is on, otherwise
the transistor is off. Here is a graphical representation of these facts:
When a circuit contains both NMOS and PMOS transistors we say it is implemented in CMOS
(Complementary MOS)
Understanding the basics of transistors, we can now design a simple NOR gate. Next figure
shows the implementation in transistors of the NOR gate and how it works for different inputs (1
and 0). On the left there is the implementation, on the right the behavior. The symbol VDD is the
source voltage (or the logic 1), GND is the ground (or the logical 0).
We have just seen how to implement a simple logic gate using transistors. To implement the rest of
logical gates (and whatever circuit we might think off), we will analyze first the behavior of the
transistors when connected in a “series” fashion or in a “parallel” way.
Computer Design and Technology Assignment 2
If we connect two NMOS transistors in series, we get the behaviour shown in next figure (the
triangle in the bottom is a graphical representation of GND)
Next figure shows the behavior of the PMOSes when connected in series. (The horizontal line on
top of the first transistor is a graphical representation of VDD).
In the next figure, we can see the behavior of the NMOSes and PMOSes when connected in
parallel.
Summing up, NMOS transistors in series let the current flow when both inputs are 1; otherwise the
output is undefined (Z). If we connect the NMOSes in parallel, then the current flows when any (or
both) of the inputs are 1; otherwise the output is undefined (Z).
For the PMOSes, when connected in series the current flows when both inputs are 0;
otherwise the output is undefined. Alternatively, when connected in parallel, if any (or both) of the
inputs is 0 the current flows. Otherwise the output is undefined.
Computer Design and Technology Assignment 2
When using CMOS technology (and specifically static CMOS), we will design the circuits with two
clearly defined parts. One (called pull-up) will be built of PMOS transistors and it has the duty of
setting the output to 1 whenever the implemented function defines it. The other part (called pull-
down) will be built of NMOS transistors and it will set the output to 0 whenever the implemented
function defines it. All circuits will either set the output to 1 or 0 for any combination of the input
values. Both pull-up and pull-down cannot be active at the same time (it makes no sense to set the
output to 1 and 0 for the same inputs!!). Similarly, both the pull-up and the pull-down cannot be off
at the same time (logic functions have always a defined output –either 0 or 1). Nevertheless, we will
see further down the course that when not implementing logic functions we might be interested –
sometimes- in setting the output to undetermined in certain cases.
Next figures show the implementations of the NAND and NOR gates in CMOS. For each one of
them, there is the truth table and clear indications of what outputs are set by the pull-up and what
outputs for the pull-down.
Computer Design and Technology Assignment 2
In the same way we implement the logic gates, we can implement any logic function. Next figure
shows the implementation of the logic function )·(),,,( CBADDCBAf ++= .
We can actually define a design methodology for turning logical functions into CMOS circuits:
• The logic function must be complemented. (i.e., it must look like f(x,y,z)=
NOT(expression); in a logic expression, ressionzyxf exp),,( =
• AND operator (“·”):
o Pull-down: NMOS transistors NMOS in series
o Pull-up: PMOS transistors in parallel
• OR operator (“+”):
o Pull-down: NOMS transistors in parallel
o Pull-up: PMOS transistors in series
Computer Design and Technology Assignment 2
Problem sets to hand in:
Implement the following functions in CMOS logic.
Implement the following functions in CMOS logic. Assume you can use a NOT gate whenever
necessary.

More Related Content

Viewers also liked

Pass transistor logic
Pass transistor logicPass transistor logic
Pass transistor logic
student
 
NAND gate
NAND gateNAND gate
NAND gate
Abhishekvb
 
Logic gate
Logic gateLogic gate
Logic gate
Prasanna Bandara
 
Pass transistor logic
Pass transistor logicPass transistor logic
Pass transistor logic
Tripurna Chary
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
Diwaker Pant
 
20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage Content20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage Content
Barry Feldman
 

Viewers also liked (6)

Pass transistor logic
Pass transistor logicPass transistor logic
Pass transistor logic
 
NAND gate
NAND gateNAND gate
NAND gate
 
Logic gate
Logic gateLogic gate
Logic gate
 
Pass transistor logic
Pass transistor logicPass transistor logic
Pass transistor logic
 
Pass Transistor Logic
Pass Transistor LogicPass Transistor Logic
Pass Transistor Logic
 
20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage Content20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage Content
 

Similar to Tema 1 en

CMOS LOGIC STRUCTURES
CMOS LOGIC STRUCTURESCMOS LOGIC STRUCTURES
CMOS LOGIC STRUCTURES
VaishaliVaishali14
 
LECTURE NOTES-DSD1.doc
LECTURE NOTES-DSD1.docLECTURE NOTES-DSD1.doc
LECTURE NOTES-DSD1.doc
Sai Venu
 
Vlsi gate level design
Vlsi gate level designVlsi gate level design
Vlsi gate level design
CHENCHU CHANDU PRASANTH NADELLA
 
ppt.ppt on didgital logic design by muskan.s
ppt.ppt on didgital logic design by muskan.sppt.ppt on didgital logic design by muskan.s
ppt.ppt on didgital logic design by muskan.s
muskans14
 
Low Power VLSI Desgin
Low Power VLSI DesginLow Power VLSI Desgin
Low Power VLSI Desgin
Srinivas Vasamsetti
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1
Techglyphs
 
Programmable logic array
Programmable logic arrayProgrammable logic array
Programmable logic array
Huba Akhtar
 
2. Unit1-CMOS PTL TGL Logic.pdf
2. Unit1-CMOS PTL TGL Logic.pdf2. Unit1-CMOS PTL TGL Logic.pdf
2. Unit1-CMOS PTL TGL Logic.pdf
theanmolchawla19
 
Cmos uma
Cmos umaCmos uma
Cmos uma
Bhavya Mc
 
Cmos uma
Cmos umaCmos uma
Cmos uma
bhavyamc81
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
AswiniT3
 
Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.
JavierDeJesusCamacho1
 
CMOS logic circuits
CMOS logic circuitsCMOS logic circuits
CMOS logic circuits
Mahesh_Naidu
 
Chapter+13.ppt
Chapter+13.pptChapter+13.ppt
Chapter+13.ppt
DiviyaTharshini
 
Unit iii ppt1
Unit iii ppt1Unit iii ppt1
Unit iii ppt1
K.Ashok kumar
 
Write your own generic SPICE Power Supplies controller models
Write your own generic SPICE Power Supplies controller modelsWrite your own generic SPICE Power Supplies controller models
Write your own generic SPICE Power Supplies controller models
Tsuyoshi Horigome
 
cmoshssd-220105164535.pptx
cmoshssd-220105164535.pptxcmoshssd-220105164535.pptx
cmoshssd-220105164535.pptx
KethavathVenkatesh3
 
cmos 2.pdf
cmos 2.pdfcmos 2.pdf
cmos 2.pdf
Pankaj557928
 
Basic logic gates and buffers
Basic logic gates and buffersBasic logic gates and buffers
Basic logic gates and buffers
Edmund Merren
 
Logic Fe Tcom
Logic Fe TcomLogic Fe Tcom
Logic Fe Tcom
Mukesh Mishra
 

Similar to Tema 1 en (20)

CMOS LOGIC STRUCTURES
CMOS LOGIC STRUCTURESCMOS LOGIC STRUCTURES
CMOS LOGIC STRUCTURES
 
LECTURE NOTES-DSD1.doc
LECTURE NOTES-DSD1.docLECTURE NOTES-DSD1.doc
LECTURE NOTES-DSD1.doc
 
Vlsi gate level design
Vlsi gate level designVlsi gate level design
Vlsi gate level design
 
ppt.ppt on didgital logic design by muskan.s
ppt.ppt on didgital logic design by muskan.sppt.ppt on didgital logic design by muskan.s
ppt.ppt on didgital logic design by muskan.s
 
Low Power VLSI Desgin
Low Power VLSI DesginLow Power VLSI Desgin
Low Power VLSI Desgin
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1
 
Programmable logic array
Programmable logic arrayProgrammable logic array
Programmable logic array
 
2. Unit1-CMOS PTL TGL Logic.pdf
2. Unit1-CMOS PTL TGL Logic.pdf2. Unit1-CMOS PTL TGL Logic.pdf
2. Unit1-CMOS PTL TGL Logic.pdf
 
Cmos uma
Cmos umaCmos uma
Cmos uma
 
Cmos uma
Cmos umaCmos uma
Cmos uma
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.Practica 4 algebra booleana por compuertas lógicas.
Practica 4 algebra booleana por compuertas lógicas.
 
CMOS logic circuits
CMOS logic circuitsCMOS logic circuits
CMOS logic circuits
 
Chapter+13.ppt
Chapter+13.pptChapter+13.ppt
Chapter+13.ppt
 
Unit iii ppt1
Unit iii ppt1Unit iii ppt1
Unit iii ppt1
 
Write your own generic SPICE Power Supplies controller models
Write your own generic SPICE Power Supplies controller modelsWrite your own generic SPICE Power Supplies controller models
Write your own generic SPICE Power Supplies controller models
 
cmoshssd-220105164535.pptx
cmoshssd-220105164535.pptxcmoshssd-220105164535.pptx
cmoshssd-220105164535.pptx
 
cmos 2.pdf
cmos 2.pdfcmos 2.pdf
cmos 2.pdf
 
Basic logic gates and buffers
Basic logic gates and buffersBasic logic gates and buffers
Basic logic gates and buffers
 
Logic Fe Tcom
Logic Fe TcomLogic Fe Tcom
Logic Fe Tcom
 

Recently uploaded

20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
DianaGray10
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
Zilliz
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
Neo4j
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 

Recently uploaded (20)

20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1Communications Mining Series - Zero to Hero - Session 1
Communications Mining Series - Zero to Hero - Session 1
 
Infrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI modelsInfrastructure Challenges in Scaling RAG with Custom AI models
Infrastructure Challenges in Scaling RAG with Custom AI models
 
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024GraphSummit Singapore | The Art of the  Possible with Graph - Q2 2024
GraphSummit Singapore | The Art of the Possible with Graph - Q2 2024
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 

Tema 1 en

  • 1. Computer Design and Technology Assignment 2 Basic CMOS concepts We will now see the use of transistor for designing logic gates. Further down in the course we will use the same transistors to design other blocks (such as flip-flops or memories) Ideally, a transistor behaves like a switch. For NMOS transistors, if the input is a 1 the switch is on, otherwise it is off. On the other hand, for the PMOS, if the input is 0 the transistor is on, otherwise the transistor is off. Here is a graphical representation of these facts: When a circuit contains both NMOS and PMOS transistors we say it is implemented in CMOS (Complementary MOS) Understanding the basics of transistors, we can now design a simple NOR gate. Next figure shows the implementation in transistors of the NOR gate and how it works for different inputs (1 and 0). On the left there is the implementation, on the right the behavior. The symbol VDD is the source voltage (or the logic 1), GND is the ground (or the logical 0). We have just seen how to implement a simple logic gate using transistors. To implement the rest of logical gates (and whatever circuit we might think off), we will analyze first the behavior of the transistors when connected in a “series” fashion or in a “parallel” way.
  • 2. Computer Design and Technology Assignment 2 If we connect two NMOS transistors in series, we get the behaviour shown in next figure (the triangle in the bottom is a graphical representation of GND) Next figure shows the behavior of the PMOSes when connected in series. (The horizontal line on top of the first transistor is a graphical representation of VDD). In the next figure, we can see the behavior of the NMOSes and PMOSes when connected in parallel. Summing up, NMOS transistors in series let the current flow when both inputs are 1; otherwise the output is undefined (Z). If we connect the NMOSes in parallel, then the current flows when any (or both) of the inputs are 1; otherwise the output is undefined (Z). For the PMOSes, when connected in series the current flows when both inputs are 0; otherwise the output is undefined. Alternatively, when connected in parallel, if any (or both) of the inputs is 0 the current flows. Otherwise the output is undefined.
  • 3. Computer Design and Technology Assignment 2 When using CMOS technology (and specifically static CMOS), we will design the circuits with two clearly defined parts. One (called pull-up) will be built of PMOS transistors and it has the duty of setting the output to 1 whenever the implemented function defines it. The other part (called pull- down) will be built of NMOS transistors and it will set the output to 0 whenever the implemented function defines it. All circuits will either set the output to 1 or 0 for any combination of the input values. Both pull-up and pull-down cannot be active at the same time (it makes no sense to set the output to 1 and 0 for the same inputs!!). Similarly, both the pull-up and the pull-down cannot be off at the same time (logic functions have always a defined output –either 0 or 1). Nevertheless, we will see further down the course that when not implementing logic functions we might be interested – sometimes- in setting the output to undetermined in certain cases. Next figures show the implementations of the NAND and NOR gates in CMOS. For each one of them, there is the truth table and clear indications of what outputs are set by the pull-up and what outputs for the pull-down.
  • 4. Computer Design and Technology Assignment 2 In the same way we implement the logic gates, we can implement any logic function. Next figure shows the implementation of the logic function )·(),,,( CBADDCBAf ++= . We can actually define a design methodology for turning logical functions into CMOS circuits: • The logic function must be complemented. (i.e., it must look like f(x,y,z)= NOT(expression); in a logic expression, ressionzyxf exp),,( = • AND operator (“·”): o Pull-down: NMOS transistors NMOS in series o Pull-up: PMOS transistors in parallel • OR operator (“+”): o Pull-down: NOMS transistors in parallel o Pull-up: PMOS transistors in series
  • 5. Computer Design and Technology Assignment 2 Problem sets to hand in: Implement the following functions in CMOS logic. Implement the following functions in CMOS logic. Assume you can use a NOT gate whenever necessary.