COP3502: Introduction to Computer Science Yashas Shankar Hardware.

Slides:



Advertisements
Similar presentations
Give qualifications of instructors: DAP
Advertisements

CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
CSE-221 Digital Logic Design (DLD)
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
The Logic Machine We looked at programming at the high level and at the low level. The question now is: How can a physical computer be built to run a program?
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third & Fourth Edition Spring 2008:
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
The Analytical Engine Hardware. The Logic Machine Computers were originally wired to perform a specific task. The vision was a machine that could perform.
J. Michael Moore Computer Processing CSCE 110. J. Michael Moore ProcessorInputOutput Memory Storage.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
22C:19 Discrete Math Boolean Algebra & Digital Logic Fall 2010 Sukumar Ghosh.
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.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Chapter 4 The Building Blocks: Binary Numbers, Boolean Logic, and Gates.
Binary Addition Section 4.5. Binary Addition Example.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Roadmap Problems Algorithms.
Introduction to Digital Logic and Circuits EE 101, Fall 2015 University of Kentucky.
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
Computer Science: A Structured Programming Approach Using C1 Objectives ❏ To understand how decisions are made in a computer ❏ To understand the logical.
4. Electrons and electronics 4.5 Digital electronics.
Computer Organization and Design Lecture 16 – Combinational Logic Blocks Close call!   Cal squeaked by Washington in Overtime We win, and then.
Islamic University Of Gaza, Nael Aburas Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
Lec 15Systems Architecture1 Systems Architecture Lecture 15: A Simple Implementation of MIPS Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan Some.
Logic and computers 2/6/12. Binary Arithmetic /6/ Only two digits: the bits 0 and 1 (Think: 0 = F, 1.
Instructor:Po-Yu Kuo 教師:郭柏佑
CS 1308 – Computer Literacy and the Internet Building the CPU.
1 Lecture 10: Floating Point, Digital Design Today’s topics:  FP arithmetic  Intro to Boolean functions.
Lecture 4 Introduction to Boolean Algebra. Binary Operators In the following descriptions, we will let A and B be Boolean variables and define a set of.
Logic Design / Processor and Control Units Tony Diep.
Appendix C Basics of Digital Logic Part I. Florida A & M University - Department of Computer and Information Sciences Modern Computer Digital electronics.
1 Fundamentals of Computer Science Combinational Circuits.
Instructor : Po-Yu Kuo 教師:郭柏佑 Ch. 3 Digital Logic Structures EL 1009 計算機概論 ( 電子一 B) Introduction to Computer Science.
Introduction to Computing Systems and Programming Digital Logic Structures.
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?
Figure S1.1 The Motorola MPC 7400 PowerPC CPU. Figure S1.3 Truth table for INCLUSIVE-OR operation.
CS151 Introduction to Digital Design Chapter 4: Arithmetic Functions and HDLs 4-1: Iterative Combinational Circuits 4-2: Binary Adders 1Created by: Ms.Amany.
Explain Half Adder and Full Adder with Truth Table.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Abstraction. Not real, not concrete A view that is removed from the reality Definitely has a "base" in reality – the "base" may be non-intuitive and not.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
Invitation to Computer Science, C++ Version, Fourth Edition
Computer Science 210 Computer Organization
Homework Reading Machine Projects Labs
Morgan Kaufmann Publishers
Basic Logical Operations (Fascinating)
Digital Signals Digital Signals have two basic states:
Invitation to Computer Science, Java Version, Third Edition
Computer Hardware Introduction.
Lecture 10: Floating Point, Digital Design
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Fundamentals of Computer Science Part i2
Computer Science 210 Computer Organization
Instructor:Po-Yu Kuo 教師:郭柏佑
Digital Logic.
Logic Gates.
Homework Reading Machine Projects Labs
Digital Logic.
XOR Function Logic Symbol  Description  Truth Table 
Adder Circuits By: Asst Lec. Basma Nazar
Digital Circuits and Logic
Digital Circuits.
Presentation transcript:

COP3502: Introduction to Computer Science Yashas Shankar Hardware

Overview of what you will learn this 2 weeks  Machine only know 0 and 1 what can we do with it, and how?  Information are represented by electrical signals  0 usually refer to low voltage or no current  1 usually refer to high voltage or has current  Use switches to implement hardware instructions  AND  OR  NOT  ADD  MUL  How to store 0s and 1s into a storage (memory, hard drive, etc)

Normally open switch IN OUT Control IN = 0, Control = 0  OUT = 0 IN = 0, Control = 1  OUT = 0 IN = 1, Control = 0  OUT = 0 IN = 1, Control = 1  OUT = 1 IN OUT01 CONTROL

Normally closed switch IN OUT Control IN = 0, Control = 0  OUT = 0 IN = 0, Control = 1  OUT = 0 IN = 1, Control = 0  OUT = 1 IN = 1, Control = 1  OUT = 0 IN OUT01 CONTROL

LOGIC  There are only 2 values  0 (zero): usually stands for FAULT or no current  1 (one): usually stands for TRUE or have current  Most common rules for logics  AND  Example: X and Y are even numbers  OR  X is even number or Y is even number  NOT  X is not an even number

AND ** P AND Q are true  P is true AND Q is true ** ** Note: we use concatenation for AND ** AND PQPQ

OR ** P OR Q is true  P is true OR Q is true OR both are true** ** Note: we use + for OR ** OR PQP + Q

NOT If P is true NOT P is false If P is false NOT P is true We use ‘ for NOT PP’ 01 10

AND GATE AND PQPQ P Q PQ P Q Normally open switch

NOT GATE NOT PP’ P P’ 1 P Normally closed switch

OR GATE OR PQP + Q P Q P + Q How to build an OR gate? P + Q = (P’Q’)’ ** OR gate can be built from NOT gate and AND gates **

Binary Arithmetic Addition Multiplication x

Building instructions from AND, OR, and NOT gates Example#1: Instruction PQ + P’Q’ (see Figure 7.6) Example#2: One-bit half adder (HA) (see Figure 7.7) Example#3: One-bit full adder (FA) (see Figure 7.8) Example#4: Four-bit full adder (see Figure 7.10)

Multiplexor  Multiplexor (multi-way switch) is typically used to select values or instructions  Select A or B  Select ADD or MUL  A 2-way multiplexor (Figure 7.11)  A 2-function arithmetic unit (Figure 7.12)

Truth table  Example#1 (P’Q’)’  Example#2 (PQ + P’Q’)  Example#3 (P’Q + PQ’)  Example#4 (a + b)c