Week 6: Gates and Circuits: PART I READING: Chapter 4.

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Chapter 4 Gates and Circuits Nell Dale • John Lewis.
Chapter 4 Gates and Circuits.
Logic Gates.
Gates and Circuits Nell Dale & John Lewis (adaptation by Erin Chambers and Michael Goldwasser)
Programmable Logic Controllers.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Chapter 4 Gates and Circuits.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Gates CS105. Electrical Signals Transmission of data Any electrical signal has a level of voltage – Interpretation of 1s and 0s Generally speaking: –
Lecture 3. Boolean Algebra, Logic Gates
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
Lecture 3. Error Detection and Correction, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Quiz # 2 Chapters 4, 5, & 6.
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Chapter 4 Gates and Circuits.
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
CPS120: Introduction to Computer Science
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
1 EENG 2710 Chapter 2 Algebraic Methods For The Analysis and Synthesis of Logic circuits.
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits Lecture 5: Binary Logic and Gates.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
L OGIC G ATES Computer Organization – week 3. W HAT ’ S ALU? 1. ALU stands for: Arithmetic Logic Unit 2. ALU is a digital circuit that performs Arithmetic.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Boolean Algebra & Logic Gates
CSIS-110 Introduction to Computer Science
Basics of Logic gates - Part 2
Basics of Logic gates - Part 1
Digital Logic.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Chapter 3 - Binary Numbering System
Logic Gates and Boolean Algebra
Chapter 3 Notes – Part II Review Questions
Transistors and Logic Circuits
CSIS-110 Introduction to Computer Science
Logic Gates and Boolean Algebra
Logic Gates.
Digital Signals Digital Signals have two basic states:
Fundamentals & Ethics of Information Systems IS 201
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Agenda – 2/12/18 Questions? Readings: CSI 4, P
BASIC & COMBINATIONAL LOGIC CIRCUIT
Logic Gates.
Week 7: Gates and Circuits: PART II
Logic Gates.
Logic Gates.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Chapter 10.3 and 10.4: Combinatorial Circuits
Logic Gates.
Chapter 4 Gates and Circuits.
Truth tables Mrs. Palmer.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
What are Logic Gates?.
Presentation transcript:

Week 6: Gates and Circuits: PART I READING: Chapter 4

Gates and Circuits 2 What is a “gate”? A gate is a device that performs a basic operation on electrical signals What is “circuit”? Gates are combined to form different “circuits” to perform more complicated tasks EECS Computer Use: Fundamentals

Gates and Circuits 3 Three notational methods to describe the behavior of gates: 1.Boolean expressions: A form of algebra in which variables and functions take on only one of two possible values (0 and 1) 2.Logic diagrams: graphical representation of a circuit 3.Truth tables: defines the function of a gate by listing all possible input combination and the corresponding output. EECS Computer Use: Fundamentals

Gates and Circuits 4 Six types of logic gates: 1.NOT 2.AND 3.OR 4.XOR 5.NAND 6.NOR A gate or logic gate performs only one logical function. Each gate accepts one or more input values and produces a single output value. EECS Computer Use: Fundamentals

Gates and Circuits: NOT Gate 5 Also referred to as an “inverter” If the input value is 1, the output is 0; if the input value is 0, the output is 1 Logic diagram SymbolTruth Table Boolean Expression Sometimes the “ ’ ” mark is replaced by horizontal bar placed over the value: EECS Computer Use: Fundamentals

Gates and Circuits: AND Gate 6 If the two input values are both 1, the output is 1; otherwise, the output is 0 Logic diagram SymbolTruth Table Boolean Expression Sometimes the “. ” mark is replaced by the asterisk symbol “ * ” EECS Computer Use: Fundamentals

Gates and Circuits: OR Gate 7 Logic diagram SymbolTruth Table Boolean Expression If both input values are both 0, the output is 0; otherwise, the output is 1 EECS Computer Use: Fundamentals

Gates and Circuits: XOR or exclusive OR Gate 8 Logic diagram SymbolTruth Table Boolean Expression If the two inputs are the same, the output is 0; otherwise, the output is 1 Not the difference between the XOR gate and the OR gate; they only differ in one input situation: When both input signals are 1, OR gate produces a 1 and the XOR gate produces a 0 EECS Computer Use: Fundamentals

Gates and Circuits: NOR Gate 9 Logic diagram SymbolTruth Table Boolean Expression The NOR gate is essentially the opposite of the OR gate. That is, the output of a NOR gate is the same as if you took the output of an OR gate and put it through a NOT gate EECS Computer Use: Fundamentals

Gates and Circuits: NAND Gate 10 Logic diagram SymbolTruth Table Boolean Expression The NAND gate is the opposite of the AND gate. EECS Computer Use: Fundamentals

Transistors 11 How do we implement the “gates”? A gate uses one or more transistors to establish how the input values map to the output value A transistor acts like a “switch”. It either turns on to conduct electricity or turns off to block the flow of electricity EECS Computer Use: Fundamentals

Transistors 12 A transistor has three terminals: source, base and emitter emitter base source When an electrical signal is grounded, it has 0 volts! If the source signal is pulled to ground, the output signal is low output is “0” If the source signal remains high, the output signal is high output is “1” output EECS Computer Use: Fundamentals

Transistors – NOT Gate 13 If V in is high, the source is pulled to ground and V out is low (i.e. 0) If V in is low, the source is not grounded and V out is high (i.e. 1) emitter base source The output is determined by the base electrical signal. V in V out “NOT Gate” needs 1 transistor V in V out EECS Computer Use: Fundamentals

14 Transistors – NAND Gate V in1 V in2 source V out emitter If V in1 and V in2 are high, the source is pulled to ground and V out is low (i.e. 0) If V in1 and V in2 are low, the source is not grounded and V out is high (i.e. 1) If either V in1 or V in2 is low, the source is not grounded and V out is high (i.e. 1) “NAND Gate” needs 2 transistors V in1 V in2 V out EECS Computer Use: Fundamentals

15 Transistors – NOR Gate emitter source V in1 V out emitter V in2 If V in1 and V in2 are high, the source is pulled to ground and V out is low (i.e. 0) If V in1 and V in2 are low, the source is not grounded and V out is high (i.e. 1) If either V in1 or V in2 is low, the source is grounded and V out is low (i.e. 0) “NOR Gate” needs 2 transistors V in1 V in2 V out EECS Computer Use: Fundamentals

16 Transistors – OR Gate Since OR gate is the opposite of NOR gate, how many transistors would you think will be required to implement the “OR” gate? “OR Gate” needs 3 transistors EECS Computer Use: Fundamentals

Combinational Circuits 17 Gates are combined into circuits by using the output of one gate as the input for another gate. For example: EECS Computer Use: Fundamentals

Combinational Circuits 18 For example: Logic diagram Symbol Truth Table Since there are 3 inputs, there are 8 possible outcomes EECS Computer Use: Fundamentals

Combinational Circuits 19 For example: Logic diagram Symbol Boolean expression D = A B E = AC X = AB + AC EECS Computer Use: Fundamentals

Combinational Circuits 20 Now, we want to investigate the following Boolean expression: X = A(B+C) Logic diagram Symbol: (circuit 2) B+C A(B+C) How do we want to create the logic diagram (called circuit 2) of the above Boolean expression? - We have an inner function which consists of an “OR” gate between B and C - We then have an outer function which is an “AND” gate between A and (B+C) EECS Computer Use: Fundamentals

Combinational Circuits 21 We have the following: X = A(B+C)Boolean expression: Logic diagram Symbol: Truth table: B+C A(B+C) ABCB+CA(B+C) ABCB+CA(B+C) ABCB+CA(B+C) EECS Computer Use: Fundamentals

Combinational Circuits 22 Circuit 1: Their results are identical! Circuit 2: ABCB+CA(B+C) B+C A(B+C) ABCDEX EECS Computer Use: Fundamentals

Combinational Circuits 23 We have therefore demonstrated circuit equivalence That is, both circuits produce the same results for each input combination Boolean algebra allows us to apply provable mathematical principles to help us design logical circuits X = AB + AC = A(B+C) From the previous example: EECS Computer Use: Fundamentals

Properties of Boolean Algebra 24 DeMorgan’s law, in particular, is very useful in Boolean algebra. For instance, it means that: ___ 1 NAND gate is equivalent to 2 NOT gates with an OR gate EECS Computer Use: Fundamentals