Gates, Circuits, and Boolean Algebra



Similar documents
1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Upon completion of unit 1.1, students will be able to

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

ENGI 241 Experiment 5 Basic Logic Gates

FORDHAM UNIVERSITY CISC Dept. of Computer and Info. Science Spring, Lab 2. The Full-Adder

Digital Electronics Detailed Outline

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

United States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1

Logic in Computer Science: Logic Gates

CHAPTER 3 Boolean Algebra and Digital Logic

3.Basic Gate Combinations

Gates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction

Basic Logic Gates Richard E. Haskell

Binary Adders: Half Adders and Full Adders

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Let s put together a Manual Processor

Lecture 5: Gate Logic Logic Optimization

Content Map For Career & Technology

Simplifying Logic Circuits with Karnaugh Maps

Two-level logic using NAND gates

ELEC EXPERIMENT 1 Basic Digital Logic Circuits

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

BOOLEAN ALGEBRA & LOGIC GATES

Lecture 8: Synchronous Digital Systems

Figure 8-1 Four Possible Results of Adding Two Bits

Karnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation

COMBINATIONAL CIRCUITS

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Digital circuits make up all computers and computer systems. The operation of digital circuits is based on

GRADE 11A: Physics 5. UNIT 11AP.5 6 hours. Electronic devices. Resources. About this unit. Previous learning. Expectations

Chapter 2 Logic Gates and Introduction to Computer Architecture

Combinational Logic Design

exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576

Lab 1: Full Adder 0.0

NEW adder cells are useful for designing larger circuits despite increase in transistor count by four per cell.

DEGREE: Bachelor in Biomedical Engineering YEAR: 2 TERM: 2 WEEKLY PLANNING

The components. E3: Digital electronics. Goals:

Study Guide for the Electronics Technician Pre-Employment Examination

earlier in the semester: The Full adder above adds two bits and the output is at the end. So if we do this eight times, we would have an 8-bit adder.

ANALOG & DIGITAL ELECTRONICS

Physics. Cambridge IGCSE. Workbook. David Sang. Second edition Cambers & Sibley: IGCSE Physics Cover. C M Y K

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

3 The TTL NAND Gate. Fig. 3.1 Multiple Input Emitter Structure of TTL

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Circuits and Boolean Expressions

Chapter 10 Advanced CMOS Circuits

CSE140: Components and Design Techniques for Digital Systems. Introduction. Prof. Tajana Simunic Rosing

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

Understanding Logic Design

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

VCE Physics and VCE Systems Engineering: Table of electronic symbols

Points Position Indicator (PPI1) for Points Motors with Common Ground

Systems I: Computer Organization and Architecture

Series and Parallel Circuits

CHAPTER 11: Flip Flops

Two's Complement Adder/Subtractor Lab L03

CSE140 Homework #7 - Solution

Gates. J. Robert Jump Department of Electrical And Computer Engineering Rice University Houston, TX 77251

Voltage, Current, Resistance, Capacitance and Inductance

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

Flip-Flops, Registers, Counters, and a Simple Processor

EGR 278 Digital Logic Lab File: N278L3A Lab # 3 Open-Collector and Driver Gates

Chapter 2: Boolean Algebra and Logic Gates. Boolean Algebra

CSE140: Components and Design Techniques for Digital Systems

Memory Elements. Combinational logic cannot remember

Chapter 7 Memory and Programmable Logic

Here we introduced (1) basic circuit for logic and (2)recent nano-devices, and presented (3) some practical issues on nano-devices.

Ladder and Functional Block Programming

Electrical Symbols and Line Diagrams

Electronics Technology

Unit/Standard Number. High School Graduation Years 2010, 2011 and 2012

Wires & Connections Component Circuit Symbol Function of Component. Power Supplies Component Circuit Symbol Function of Component

Theory of Logic Circuits. Laboratory manual. Exercise 3

Input, Process and Output

Combinational circuits

Lecture #21 April 2, 2004 Relays and Adder/Subtractors

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

CSE140: Midterm 1 Solution and Rubric

Fault Modeling. Why model faults? Some real defects in VLSI and PCB Common fault models Stuck-at faults. Transistor faults Summary

REPORT ON CANDIDATES WORK IN THE CARIBBEAN ADVANCED PROFICIENCY EXAMINATION MAY/JUNE 2008 ELECTRICAL AND ELECTRONIC TECHNOLOGY (TRINIDAD AND TOBAGO)

Fundamentals of Digital Electronics

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1

Digital Fundamentals. Lab 8 Asynchronous Counter Applications

CS311 Lecture: Sequential Circuits

Digital Logic Elements, Clock, and Memory Elements

DEPARTMENT OF INFORMATION TECHNLOGY

Karnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012

POINTS POSITION INDICATOR PPI4

Adder.PPT(10/1/2009) 5.1. Lecture 13. Adder Circuits

W03 Analysis of DC Circuits. Yrd. Doç. Dr. Aytaç Gören

Unit 3 Boolean Algebra (Continued)

OHM S LAW AND RESISTANCE

Resistors in Series and Parallel

INTRODUCTION TO DIGITAL SYSTEMS. IMPLEMENTATION: MODULES (ICs) AND NETWORKS IMPLEMENTATION OF ALGORITHMS IN HARDWARE

CHAPTER 11 LATCHES AND FLIP-FLOPS

CMOS Binary Full Adder

BJT AC Analysis. by Kenneth A. Kuhn Oct. 20, 2001, rev Aug. 31, 2008

Transcription:

Gates, Circuits, and Boolean Algebra

Computers and Electricity A gate is a device that performs a basic operation on electrical signals Gates are combined into circuits to perform more complicated tasks 2

Constructing Gates A transistor is a device that acts, depending on the voltage level of an input signal, either as a wire that conducts electricity or as a resistor that blocks the flow of electricity A transistor has no moving parts, yet acts like a switch It is made of a semiconductor material, which is neither a particularly good conductor of electricity, such as copper, nor a particularly good insulator, such as rubber 3

Constructing Gates The connections of a transistor A transistor has three terminals A source A base An emitter, typically connected to a ground wire If the electrical signal is grounded, it is allowed to flow through an alternative route to the ground (literally) where it can do no harm 4

Computers and Electricity There are three different, but equally powerful, notational methods for describing the behavior of gates and circuits Boolean expressions logic diagrams truth tables 5

Computers and Electricity Boolean algebra: expressions in this algebraic notation are an elegant and powerful way to demonstrate the activity of electrical circuits 6

Computers and Electricity Logic diagram: a graphical representation of a circuit Each type of gate is represented by a specific graphical symbol Truth table: defines the function of a gate by listing all possible input combinations that the gate could encounter, and the corresponding output 7

Gates Let s examine the processing of the following six types of gates NOT AND OR XOR NAND NOR Typically, logic diagrams are black and white, and the gates are distinguished only by their shape 8

NOT Gate A NOT gate accepts one input value and produces one output value Various representations of a NOT gate 9

NOT Gate By definition, if the input value for a NOT gate is 0, the output value is 1, and if the input value is 1, the output is 0 A NOT gate is sometimes referred to as an inverter because it inverts the input value 10

AND Gate An AND gate accepts two input signals If the two input values for an AND gate are both 1, the output is 1; otherwise, the output is 0 Various representations of an AND gate 11

OR Gate If the two input values are both 0, the output value is 0; otherwise, the output is 1 Various representations of a OR gate 12

XOR Gate XOR, or exclusive OR, gate An XOR gate produces 0 if its two inputs are the same, and a 1 otherwise Note the difference between the XOR gate and the OR gate; they differ only in one input situation When both input signals are 1, the OR gate produces a 1 and the XOR produces a 0 13

XOR Gate Various representations of an XOR gate 14

NAND and NOR Gates The NAND and NOR gates are essentially the opposite of the AND and OR gates, respectively Various representations of a NAND gate Various representations of a NOR gate

Gates with More Inputs Gates can be designed to accept three or more input values A three-input AND gate, for example, produces an output of 1 only if all input values are 1 Various representations of a three-input AND gate 16

Constructing Gates It turns out that, because the way a transistor works, the easiest gates to create are the NOT, NAND, and NOR gates. Source is a consistent voltage source. V out = V in ; V out =(V 1 V 2 ) ; V out =(V 1 +V 2 ) Constructing gates using transistors 17

Circuits Two general categories In a combinational circuit, the input values explicitly determine the output In a sequential circuit, the output is a function of the input values as well as the existing state of the circuit As with gates, we can describe the operations of entire circuits using three notations Boolean expressions logic diagrams truth tables 18

Combinational Circuits Gates are combined into circuits by using the output of one gate as the input for another 19

Combinational Circuits Because there are three inputs to this circuit, eight rows are required to describe all possible input combinations This same circuit using Boolean algebra: (AB + AC) 20

Now let s go the other way; let s take a Boolean expression and draw Consider the following Boolean expression: A(B + C) Now compare the final result column in this truth table to the truth table for the previous example They are identical 21

Properties of Boolean Algebra 22

Adders Circuit diagram representing a half adder Two Boolean expressions: sum = A B carry = AB 23

Adders A circuit called a full adder takes the carry-in value into account A full adder 24

Multiplexers Multiplexer is a general circuit that produces a single output signal The output is equal to one of several input signals to the circuit The multiplexer selects which input signal is used as an output signal based on the value represented by a few more input signals, called select signals or select control lines 25

Multiplexers A block diagram of a multiplexer with three select control lines The control lines S0, S1, and S2 determine which of eight other input lines (D0 through D7) are routed to the output (F) 26

Circuits as Memory Digital circuits can be used to store information These circuits form a sequential circuit, because the output of the circuit is also used as input to the circuit 27