This podcast will demonstrate a logical approach as to how a computer adds through logical gates.

Similar documents
History of Computing. Ahmed Sallam 11/28/2014 1

Software and Hardware

Electronic Engineering Part 1 Laboratory Experiment. Digital Circuit Design 1 Combinational Logic. (3 hours)

Computer Organization and Levels of Abstraction

Logic Gates and Boolean Algebra ENT263

Assembly Language for Intel-Based Computers, 4 th Edition. Chapter 1: Basic Concepts. Chapter Overview. Welcome to Assembly Language

Digital Circuits 1: Binary, Boolean, and Logic

WELCOME TO. ENGR 303 Introduction to Logic Design. Hello my name is Dr. Chuck Brown

The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Purpose of Chapter. External Representation of Information.

Boolean Algebra & Digital Logic

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

Unit 2: Data Storage CS 101, Fall 2018

Binary Values. CSE 410 Lecture 02

6. Combinational Circuits. Building Blocks. Digital Circuits. Wires. Q. What is a digital system? A. Digital: signals are 0 or 1.

How a Digital Binary Adder Operates

Agenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010

Digital Logic Design Exercises. Assignment 1

Computer Organization and Levels of Abstraction

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

that system. weighted value associated with it. numbers. a number. the absence of a signal. MECH 1500 Quiz 2 Review Name: Class: Date:

Outline. policies. with some potential answers... MCS 260 Lecture 19 Introduction to Computer Science Jan Verschelde, 24 February 2016

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Memory Addressing, Binary, and Hexadecimal Review

Combinational Circuits

EE292: Fundamentals of ECE

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 09 MULTIPLEXERS

CE161-4-AU UNIVERSITY OF ESSEX. Undergraduate Examinations 2014 DIGITAL SYSTEMS ARCHITECTURE. Time allowed: TWO hours

ETGG1801 Game Programming Foundations I Andrew Holbrook Fall Lecture 0 - Introduction to Computers 1

Experimental Methods I

Digital Systems. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

Binary. Hexadecimal BINARY CODED DECIMAL

Microcomputers. Outline. Number Systems and Digital Logic Review

CHAPTER 1 Numerical Representation

Why Don t Computers Use Base 10? Lecture 2 Bits and Bytes. Binary Representations. Byte-Oriented Memory Organization. Base 10 Number Representation

4 Operations On Data 4.1. Foundations of Computer Science Cengage Learning

Basic Arithmetic (adding and subtracting)

Read this before starting!

Fundamentals of Programming

Number System. Introduction. Decimal Numbers

Experiment 7 Arithmetic Circuits Design and Implementation

Chapter 3. Boolean Algebra and Digital Logic

637 has a 1 s place, 10 s place and 100 s place Show how to go from *256+7* =

Outline. What Digit? => Number System. Decimal (base 10) Significant Digits. Lect 03 Number System, Gates, Boolean Algebra. CS221: Digital Design

DIGITAL SYSTEM DESIGN

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

Revision: August 31, E Main Suite D Pullman, WA (509) Voice and Fax

User. Application program. Interfaces. Operating system. Hardware

This paper is not to be removed from the Examination Halls

OCR H446 A-Level Computer Science

CDS Computing for Scientists. Midterm Exam Review. Midterm Exam on October 22, 2013

Moodle WILLINGDON COLLEGE SANGLI. ELECTRONICS (B. Sc.-I) Introduction to Number System

LAB #1 BASIC DIGITAL CIRCUIT

4 Operations On Data 4.1. Foundations of Computer Science Cengage Learning

Binary Representation. Jerry Cain CS 106AJ October 29, 2018 slides courtesy of Eric Roberts

Midterm Exam Review. CS 2420 :: Fall 2016 Molly O'Neil

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

The Design of C: A Rational Reconstruction

1. Mark the correct statement(s)

Digital Techniques. Lecture 1. 1 st Class

Digital Systems and Binary Numbers

Read this before starting!

COMP Overview of Tutorial #2

SCHOOL OF ENGINEERING & BUILT ENVIRONMENT. Mathematics. Numbers & Number Systems

Binary Adders: Half Adders and Full Adders

Objectives. Connecting with Computer Science 2

Objectives: 1. Design procedure. 2. Fundamental circuits. 1. Design procedure

Chapter 2: Universal Building Blocks. CS105: Great Insights in Computer Science

Why Don t Computers Use Base 10? Lecture 2 Bits and Bytes. Binary Representations. Byte-Oriented Memory Organization. Base 10 Number Representation

Register Transfer Language and Microoperations (Part 2)

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Winter Notes - Unit 4. hundreds.

Philadelphia University Student Name: Student Number:

Lecture 2: Number Systems

A Brief History of Computer Science

6. Binary and Hexadecimal

Dec Hex Bin ORG ; ZERO. Introduction To Computing

5. The result of dividing the 8 bit value by the 8 bit value is:

Good Evening! Welcome!

R10. II B. Tech I Semester, Supplementary Examinations, May

Lecture 10: Floating Point, Digital Design

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 10: Implementing Binary Adders. Name: Date:

Number Systems Using and Converting Between Decimal, Binary, Octal and Hexadecimal Number Systems

If Control Construct

COE 202- Digital Logic. Number Systems II. Dr. Abdulaziz Y. Barnawi COE Department KFUPM. January 23, Abdulaziz Barnawi. COE 202 Logic Design

COMS 1003 Fall Introduction to Computer Programming in C. Bits, Boolean Logic & Discrete Math. September 13 th

Fundamental concepts of Information Technology

Computer Logical Organization Tutorial

CS429: Computer Organization and Architecture

LOGIC DESIGN. Dr. Mahmoud Abo_elfetouh

Angel International School - Manipay

One and a half hours. Section A is COMPULSORY UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

CS 33. Data Representation, Part 1. CS33 Intro to Computer Systems VII 1 Copyright 2017 Thomas W. Doeppner. All rights reserved.

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

MC1601 Computer Organization

Objective 1.02 Understand Numbering Systems

Goals for this Week. CSC 2400: Computer Systems. Bits, Bytes and Data Types. Binary number system. Finite representations of binary integers

LOGIC CIRCUITS. Kirti P_Didital Design 1

Great Inventions written by Bob Barton

The Design of C: A Rational Reconstruction" Jennifer Rexford!

15110 PRINCIPLES OF COMPUTING SAMPLE EXAM 2

Transcription:

This podcast will demonstrate a logical approach as to how a computer adds through logical gates. A computer is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Mechanical examples of computers have existed through much of recorded human history, the first electronic computers were developed in the mid 20th century and were the size of a large room pictured here. Computers using vacuum tubes as their electronic elements were in use throughout the 1950ʼs but by the late 1960ʼs were replaced by transistor-based machines, with integrated circuits and millions to billions of times more capable than the early machines, and occupy a fraction of the space.

In most cases, computer instructions are simple: add one number to another, move some data from one location to another, send a message to some external device, and so on. In class we looked at Number Systems and counting. As a quick refresher, we saw that computers are made up of many units of 0 and 1, the binary system. 1 is the highest digital possible so numbers in the computer are stored as for example 1010 or 10 in decimal. We also saw that these binary numbers can be seen as octal(8) or hexadecimal (16) numbers - in this case 1010 becomes 12 octal, or A hex.

You probable realize that the ʻstandardʼ PC code is in 8 bit bytes taking the hex system a stage further. You may also know that processors, and Windows software that runs on them, have progressed from 8 bits to 16 bits to 32 bits to 64 bits. Basically this means that the computer can work on 1, 2, 4 or 8 bytes at once.

We will look at a bit of math history that we studied in previous classes in regards to binary math which is called Boolean Algebra. Once again its really simple, but this will show you the math behind how a computer works, and why it is so important. Boolean Algebra is named after George Boole, an English Mathematician in the 19th Century. He devised the logic used in digital computers more than a century before there was a computer to use it.

In Boolean Algebra, instead of + and -., we use AND and OR to form our logic steps. A OR B = Output which means if A or B is present, we get an Output of 1

However, A AND B = Output which means that both A and B need to be present to get an Output of 1.

We can also consider an XOR (EXclusive OR). A XOR B = Output means that A or B BUT NOT BOTH must be present to get an Output of 1

Thats it! Thatʼs all the math you need to understand how a computer counts. How do we use this logic in the computer? We make up a little electronic circuit called a Gate with transistors and capacitors, so we can work on our binary numbers stored in a register - which is just a bit of memory. We make an AND gate, OR gate, and an XOR gate.

To make an adder we must duplicate with a logic circuit the way we add in binary. To add 1+1 we need 3 inputs, one for each bit, and a carry in and 2 outputs, one for the result (1 or 0), and a carry out (1 or 0). In this case the carry input is not used. We use 2 XOR gates, 2 AND gates and an OR gate to make up the adder for 1 bit. Schematic symbol for a 1-bit full adder with Cin and Cout drawn on sides of block to emphasize their use in a multi-bit adder Example full adder circuit diagram

Now we go another step, and forget about gates, because now we have a Logic Block, an ADDER. Our computer is designed by using various combinations of logic blocks. As well as the adder we might have a multiplier (a series of adders) and other components. Our ADDER block takes one bit (0 or 1) from each number to be added, plus the Carry bit (0 or 1) and produces an output of 0 or 1, and a carry of 0 or 1. A table of the input A, B and Carry, and output O and Carry, looks like this... This is known as a Truth Table, it shows output state for any given input state.

Lets add 2+3 decimal. That is 010 plus 011 binary. We will need 3 ADDER blocks for decimal bit values of 1, 2 and 4. The first ADDER takes the Least Significant Bit (decimal bit value 1) from each number. will be 1 with no carry - 0. Input A will be 0, input B From the truth table this gives an output of 1 and a carry out of 0 (3rd row). BIT 1 RESULT = 1. At the same time the next ADDER (decimal bit value 2) has inputs of 1, 1 and a carry of 0, giving an output of 0 with a carry bit of 1 (4th row). BIT 2 RESULT = 0. The next ADDER (decimal bit value 4) has inputs of 0, 0 and a carry of 1, giving an output of 1 with no carry - 0 (5th row). BIT 4 RESULT = 1. So we have bits 4, 2, 1 as 101 or 4+1=5. It seems like a laborious way to do it, but our computer can have 64 adders or more, adding simultaneously two large numbers billions of times a second. This is where the computer scores.

Exercise #1 Given the following individual gates and their respective truth tables Find all the possible outputs for the following circuit Develop the truth table

Exercise #2 Given the following individual gates and their respective truth tables Find all the possible outputs for the following circuit Find the possible outputs

Exercise #2 Given the following individual gates and their respective truth tables Find all the possible outputs for the following circuit Develop the truth table

Exercise #2 Given the following individual gates and their respective truth tables Find all the possible outputs for the following circuit Develop the truth table