Computer Science 1000 Digital Circuits. Digital Information computers store and process information using binary as we’ve seen, binary affords us similar.

Slides:



Advertisements
Similar presentations
ADDER, HALF ADDER & FULL ADDER
Advertisements

EET 1131 Unit 7 Arithmetic Operations and Circuits
PHY 201 (Blum) 1 Adders, Digital to Analog Conversion Ch. 8 in Digital Principles (Tokheim)
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 3 Dr. Shi Dept. of Electrical and Computer Engineering.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Chapter 4 Gates and Circuits.
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
10/22/2004EE 42 fall 2004 lecture 221 Lecture #22 Truth tables and gates This week: Circuits for digital devices.
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
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.
Building Adders & Sub tractors Dr Ahmed Telba. Introducing adder circuits Adder circuits are essential inside microprocessors as part of the ALU, or arithmetic.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
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.
Boolean Logic By: Arthur Brooks February 25, 2003 Think, Speak, and Write Computer Science.
Chapter 2 Combinational Systems And / Or / Not. TRIAD PRINCIPLE: Combinational is about And / Or / Not combinations As well as equivalent functions. It.
CPSC 171 Introduction to Computer Science Boolean Logic, Gates, & Circuits.
CS 1308 – Computer Literacy and the Internet. It’s Not Magic  The goal of the next series of lectures is to show you exactly how a computer works. 
Test #1 rescheduled to next Tuesday, 09/20/05 The contents will cover chapter 1, 2, and part of Chapter 4. The contents will cover chapter 1, 2, and part.
Think about the following expression If the number entered is greater than 15 but less than 25 or the number is 100 and the letter chosen is after p but.
Binary Numbers.
1 Modified from  Modified from 1998 Morgan Kaufmann Publishers Chapter Three: Arithmetic for Computers citation and following credit line is included:
Data Manipulation CSCI130 Instructor: Dr. Imad Rahal.
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
CS1Q Computer Systems Lecture 9 Simon Gay. Lecture 9CS1Q Computer Systems - Simon Gay2 Addition We want to be able to do arithmetic on computers and therefore.
CS1Q Computer Systems Lecture 8
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Introduction to Digital Logic and Circuits EE 101, Fall 2015 University of Kentucky.
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
Digital Logic Computer Organization 1 © McQuain Logic Design Goal:to become literate in most common concepts and terminology of digital.
Combinational Logic 1.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
June 10, 2002© Howard Huang1 Number systems To get started, we’ll discuss one of the fundamental concepts underlying digital computer design:
CS 1308 – Computer Literacy and the Internet Building the CPU.
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
CS/COE0447 Computer Organization & Assembly Language
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
CS1Q Computer Systems Lecture 8
LECTURE 4 Logic Design. LOGIC DESIGN We already know that the language of the machine is binary – that is, sequences of 1’s and 0’s. But why is this?
WORKING PRINCIPLE OF DIGITAL LOGIC
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
1 CS/COE0447 Computer Organization & Assembly Language Logic Design Appendix C.
Addition and multiplication1 Arithmetic is the most basic thing you can do with a computer, but it’s not as easy as you might expect! These next few lectures.
Basics of Logic gates - Part 1
Logic Gates Binary Day 3 PEOPLE 2016.
Morgan Kaufmann Publishers
Component 1 Logical operators.
Prof. Sin-Min Lee Department of Computer Science
Logic Gates.
Computer Science 210 Computer Organization
Addition and multiplication
Chapter 2.3 Binary Logic.
Fundamentals & Ethics of Information Systems IS 201
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
Chapter 4 Gates and Circuits.
Computer Science 210 Computer Organization
Digital Logic.
Digital Logic.
Addition and multiplication
Binary Logic.
Addition and multiplication
ECE 352 Digital System Fundamentals
Copyright © Cengage Learning. All rights reserved.
Programming Techniques :: Logic & Truth Tables
Presentation transcript:

Computer Science 1000 Digital Circuits

Digital Information computers store and process information using binary as we’ve seen, binary affords us similar advantages as other representations e.g. we saw how we could add binary numbers, just as we add decimal numbers

Binary Representation recall that the way in which information is represented depends on the component RAM: capacitor charge hard drive: magnetic fields processor: voltages for our purposes, the most important point to remember is that there are exactly two states binary numbers: 1 0 logic: true false gate input/outputs: on off your text refers to such a binary system as a PandA representation, where information is made up of states that are Present and Absent

PandA from pg. 198 of your text

Processing your CPU processes information what does that mean? one possible definition: create a new state (output) from an existing state (input) by state, I am referring to a binary sequence Input Processing Output

Processing – Example consider our addition example from the previous lecture Input (Existing State) Output (New State)

0010 Processing – Example what we require is a device that can: take two binary numbers as input produces their sum as output in fact, this is (part of) what the arithmetic logic unit (ALU) in your processor does the question is: how? Binary Adder

Logic Gates at a very basic level, processors are constructed using gates a logic gate is a very simple device: has a number of inputs produces a single output think of each input as a wire that is either on or off on represents a 1 in binary, or a true in logic off represents a 0 in binary, or a false in logic

Logic Gates - Continued the output of a logic gate depends on (and only on) its inputs in other words, for each possible combination of its inputs, there is a specific output we represent this using a truth table the truth table of a gate depends on its type

Not Gate one of the simplest gate types also known as an inverter takes one input, and produces a single output symbol: InputOutput

Not Gate a not-gate simply inverts its input that is if its input wire is on, its output is off if its input wire is off, its output is on hence, the truth table is constructed as follows: InputOutput onoff on

Truth Table Representation in the interest of space, on and off in truth tables are often represented as 1 and 0 hence, our previous truth would be written as follows: unless otherwise stated, this will be the representation that we adopt InputOutput 01 10

AND Gate an example of a gate with two inputs its output is on only if both of its inputs are on otherwise, the output is off Symbol: ABOutput Truth Table:

Truth Table – Multiple Inputs note that our truth table now has four rows one for each possible configuration of inputs suppose we had a gate with three inputs how many rows would that require? ABCOutput In general, any circuit with n binary inputs will require 2 n rows in its truth table.

Digital Circuits by themselves, gates are quite limited in what they do there are only so many uses for an AND gate the real power of gates is when we begin to combine them that is, the output of one gate becomes the input to another gate

Digital Circuits Example: suppose we have a NOT gate and an AND gate we could connect them in the following configuration notice that we still have two inputs (A,B) and one output the output of the not gate is attached to the first input of the AND gate

Digital Circuits Example: what does the truth table of our circuit look like? to determine this, let’s consider each input state individually ABOutput

Digital Circuits Example: when A is 0 and B is 0 the output of the not gate is 1 hence, the input to our AND gate is 1 and 0 the output of our AND gate is 0 ABOutput

Digital Circuits Example: when A is 0 and B is 1 the output of the not gate is 1 hence, the input to our AND gate is 1 and 1 the output of our AND gate is 1 ABOutput

Digital Circuits Example: when A is 1 and B is 0 the output of the not gate is 0 hence, the inputs to our AND gate are 0 and 0 the output of our AND gate is 0 ABOutput

Digital Circuits Example: when A is 1 and B is 1 the output of the not gate is 0 hence, the inputs to our AND gate are 0 and 1 the output of our AND gate is 0 ABOutput

Digital Circuit previous example demonstrated a digital circuit an assembly of logic gates like logic gates, each digital circuit has: input(s) output(s) a truth table like logic gates, digital circuits can be used in the construction of other circuits output from one circuit connected to another digital circuit

Digital Circuit - Rendering circuits are often rendered in an enclosed shape this makes it clear what the inputs and outputs to the system are

Digital Circuit - Rendering in fact, if we know the inputs, outputs, and truth table, then we often are not concerned with how the circuit is built becomes a “black box” handy when this circuit is used as part of a larger circuit ABOutput

Digital Circuit – Example 2 suppose I rearrange my previous circuit into the following configuration what would the truth table of this circuit be?

Digital Circuit – Example 2 Answer (discussed in class): ABOutput

Digital Circuit – Solving our circuits so far are reasonably small, and therefore easy and quick to derive truth table step through each individual configuration of the inputs however, as circuits grow, this task becomes more difficult and time consuming

Digital Circuit – Solving as a consequence, it is often helpful to label intermediate points in the circuit, and solve for those points explicitly in the truth table usually, these intermediate points are the output from a gate that are being input into another gate consider our previous example let’s label the output of the NOT gate as point C C

Digital Circuit – Solving now, when we create our truth table, we will create an “output” column for C as well although this might initially seem like more work, it will ultimately make computing the output easier C ABCOutput

Digital Circuit – Solving compute the values for column C C ABCOutput ABC

Digital Circuit – Solving now, compute the values for the output column notice that the output depends only on C and B we need not even consider A the output is 1 if C and B are 1, and 0 otherwise C ABCOutput ABC ABC

OR Gate another common example of a gate with two inputs its output is off only if both of its inputs are off otherwise, the output is on notice how this contrasts with and Symbol: ABOutput Truth Table:

Digital Circuit suppose we replace the AND gate in our previous circuit with an OR gate compute the resulting truth table for the output ABOutput

Digital Circuit first, to simplify our computation, let’s add an intermediate point at the NOT gate call it C C will require a column in the truth table ABOutput C ABC

Digital Circuit now, let’s calculate the values for column C C ABCOutput ABC

Digital Circuit now, we can calculate the values for the output based on columns B and C recall our definition for the OR gate – the output is off if both of its inputs are off, and on otherwise C ABCOutput ABC ABC