Binary Addition. Boolean Algebra & Logic Gates. Recap from Monday. CSC 103 September 12, Binary numbers ( 1.1.1) How Computers Work

Similar documents
Gates and Circuits 1

Gates and and Circuits

Logic diagram: a graphical representation of a circuit

UC Berkeley CS61C : Machine Structures

Chapter 1: Digital logic

4:Combinational logic circuits. 3 July

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

UC Berkeley CS61C : Machine Structures

UC Berkeley CS61C : Machine Structures

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

a b y UC Berkeley CS61C : Machine Structures Hello Helo,world!

CS302 - Digital Logic Design Glossary By

ANALOGUE AND DIGITAL ELECTRONICS STUDENT S WORKBOOK U3: DIGITAL ELECTRONICS

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Lab Report: Digital Logic

BCD Adder. Lecture 21 1

Electrical Engineering 40 Introduction to Microelectronic Circuits

QUIZ. What do these bits represent?

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

Function Table of an Odd-Parity Generator Circuit

Lecture #1. Course Overview

Subtractor Logic Schematic

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

UNIT III. Designing Combinatorial Circuits. Adders

Unit level 4 Credit value 15. Introduction. Learning Outcomes

2 Building Blocks. There is often the need to compare two binary values.

COMBINATIONAL LOGIC CIRCUIT First Class. Dr. AMMAR ABDUL-HAMED KHADER

COMPUTER ARCHITECTURE AND ORGANIZATION

Exercise 2: OR/NOR Logic Functions

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

Department of Electronics and Communication Engineering

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics

Analysis procedure. To obtain the output Boolean functions from a logic diagram, proceed as follows:

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

MSI Design Examples. Designing a circuit that adds three 4-bit numbers

Logic Circuit Design

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

TABLE 3-2 Truth Table for Code Converter Example

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

University of Technology

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Adder (electronics) - Wikipedia, the free encyclopedia

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

EE 280 Introduction to Digital Logic Design

In this lecture: Lecture 3: Basic Logic Gates & Boolean Expressions

Experiment # 3 Combinational Circuits (I) Binary Addition and Subtraction

UNIT-IV Combinational Logic

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Implementation of Full Adder using Cmos Logic

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Exercise 1: AND/NAND Logic Functions

Exercise 1: EXCLUSIVE OR/NOR Gate Functions

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

DIGITAL LOGIC CIRCUITS

INTRODUCTION TO DIGITAL CONCEPT

Digital. Design. R. Ananda Natarajan B C D

Combinational Logic Circuits. Combinational Logic

Introduction to Electronics. Dr. Lynn Fuller

CPE 100L LOGIC DESIGN I

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

A SUBSTRATE BIASED FULL ADDER CIRCUIT

Evolving Digital Logic Circuits on Xilinx 6000 Family FPGAs

Introduction to CMOS VLSI Design (E158) Lecture 5: Logic

EEE 301 Digital Electronics

UNIT 2. Digital Signals: The basics of digital encoding and the use of binary systems.

EXPERIMENT NO 1 TRUTH TABLE (1)

Combinational Circuits DC-IV (Part I) Notes

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

Introduction (concepts and definitions)

Chapter 3 Digital Logic Structures

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

Logic Design I (17.341) Fall Lecture Outline

will talk about Carry Look Ahead adder for speed improvement of multi-bit adder. Also, some people call it CLA Carry Look Ahead adder.

Objectives: - You are given a circuit with 2-4 resistors and a battery. The circuits are either series or parallel.

Digital Logic Circuits

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

Analog, Digital, and Logic

Laboratory Manual CS (P) Digital Systems Lab

Aim. Lecture 1: Overview Digital Concepts. Objectives. 15 Lectures

EE100Su08 Lecture #16 (August 1 st 2008)

A study to Design and comparison of Full Adder using Various Techniques

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

EXPERIMENT 12: DIGITAL LOGIC CIRCUITS

Power Efficiency of Half Adder Design using MTCMOS Technique in 35 Nanometre Regime

Lecture 2: Digital Logic Basis

Encoders. Lecture 23 5

Thursday 6 June 2013 Afternoon

Positive and Negative Logic

Electronics. Digital Electronics

Digital Electronics Course Objectives

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

ELECTRONIC CIRCUITS. Time: Three Hours Maximum Marks: 100

Electronic Instrumentation

CAN YOU FIX THE ROBOT BRAIN?

Level 3 Extended Diploma Unit 22 Developing Computer Games

Using the Four Corner Model and Podcasts to Develop Algebraic Reasoning MELL 2008 Beth Bos, Texas State University

COMBINATIONAL CIRCUIT

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Transcription:

Binary Addition How Computers Work High level conceptual questions Boolean Algebra & Logic Gates CSC 103 September 12, 2007 What Are Computers? What do computers do? How do they do it? How do they affect us? How Computers Work: Semester Overview (Two paths for class discussions) Recap from Monday Conceptual Analysis Complexity Hardware: Digital circuits What computers are and what they do Software: Software: JavaScript Assembly language and Dreamweaver Physical Analysis How computers are evolving How computers affect us Projects / Reports Discussions on Artificial Intelligence, and the Web Binary numbers ( 1.1.1) The computer stores everything as binary numbers Data numbers, text, music... Instructions for programming Locations / addresses 1

Overview for Today Binary Numbers: Physical Representation Binary concepts and binary numbers Circuit simulator Binary addition Truth table Half adder circuit Concept of on and off for physical manufacturing of computers Basic component Switch Allows control of on & off Historical versions? Current implementation the transistor Transistors Binary Numbers: Abstract Representation Logic Provides the primary logic functions of AND, OR, NOT Logic gates & logic circuits Symbolic representation of basic logic functions to build circuits 2

Logic Functions: NOT Logic Functions: AND, OR One input and one output Output = input or Output input The NOT function A A 0 1 1 0 Two inputs, one output The AND and OR functions A B AND ( ) OR (+) 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 1 This is a truth table Logic Gate: AND Function Logic Gate: OR Function 3

Logic Gates: Symbols Use of Logic Gates AB, A B A+B A, A Data is represented by 1s and 0s 1 means there is current or voltage 0 means there is no voltage or current Digital circuits (e.g., MP3 players, cell phones, computers) These circuits are all constructed with AND, OR and NOT gates ANY digital circuit can be built with AND, OR and NOT gates Logic Circuit Example Logic Circuit Example con t How do we implement the following function as a circuit? AC + (BC) In words this is: As a circuit this is: Implementing the following function AC + (BC) A = 1 or true B = 0 or false C = 0 or false 4

Exclusive OR Exclusive OR A A B A B B Circuit Simulator The Circuit Simulator Go to Exercise 1 on the course webpage Do Exercise 1 of this page (notice that the rest of the page is the homework) To get started, download the Circuit Simulator (SimCir) zip file Select "Open Using Winzip" When the zip file opens, double click simcir.jar Circuit Simulator link 5

Circuit Simulator Window Circuit Example Using the Simulator Include a power supply (only need one) Use toggle switch for inputs Use LED for output (red=1, black=0) Quirks If you resize, it will jumble your circuit To cut select, and then click on the scissors Some people have trouble saving test this first!! Onto the Adder Circuit... 6

Addition Addition Concepts Adding decimal numbers Concept of the carry digit 15 27 42 Adding binary numbers Concept of sum and carry bits Two inputs two numbers to add, digit by digit (bit by bit) AND, there is a carry, which we represent as a third input Two outputs Sum Carry Carry is an output from one step, and an input to the next one Add 0 + 0 = 0 + 1 = 1 + 0 = 1 + 1 = Add these numbers Binary Addition Binary Addition: Half Adder We need a circuit to add two bits Either bit can be 0 or 1 The function in the truth table is Sum = A B + AB Carry = AB c: s: 1000111 1011010 1011010 0100110 1000111 0111001 7

Binary Addition: Half Adder A circuit with two inputs and two outputs The Half-Adder and Exclusive OR Gate A B + AB = Exclusive OR Typically abbreviated to XOR Simulator uses EOR A B A B A B S C 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 Binary Addition: Half Adder Binary Addition: Full Adder A full adder is a circuit with three inputs (including a carry-in ) and two outputs (the sum and carry-out) What is the third input? Exercise: Add 111+ 101 (carry) 1 1 1 ( A ) 1 0 1 ( B ) (sum) For adding two numbers, we need three inputs 8

Binary Addition: Full Adder Cascade two half-adders to get a full adder Summary Digital logic circuits Transistors/Switches Binary numbers Boolean algebra Propositional logic Primary logic functions AND, OR, NOT Binary addition Half adder circuit Administration Class slides will be posted Quiz 1 posted, and is due at midnight Sunday. Office hours and TA 9