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.

Slides:



Advertisements
Similar presentations
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Advertisements

EET 1131 Unit 7 Arithmetic Operations and Circuits
Data Storage – Part 1 CS 1 Introduction to Computers and Computer Technology Rick Graziani Fall 2013.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, Java Version, Third Edition.
Chapter 1 Binary Systems 1-1. Digital Systems
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third & Fourth Edition Spring 2008:
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Section 10.3 Logic Gates.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
Lecture 3. Boolean Algebra, Logic Gates
Logic Gates Combinational Circuits
CS 105 Digital Logic Design
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
Computers Organization & Assembly Language
Computer Science 1000 Digital Circuits. Digital Information computers store and process information using binary as we’ve seen, binary affords us similar.
CPSC 171 Introduction to Computer Science Boolean Logic, Gates, & Circuits.
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
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. 
Binary Numbers.
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Binary Logic.
Lecture 7 How computers process data (Number Systems) PRESENTED BY MD. MAHBUBUL ALAM, PHD 1.
Chapter 4 The Building Blocks: Binary Numbers, Boolean Logic, and Gates.
Assembly Language for x86 Processors 7th Edition
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Basic Arithmetic (adding and subtracting)
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Invitation to Computer Science 5th Edition
Basic Arithmetic (adding and subtracting)
 In studying digital integrated circuits, one must start with the simplest group of circuit, the SSIs or Small Scale Integrated Circuits. Since these.
Binary Number System & Logic Operations. The focus of the last lecture was on the microprocessor During that lecture we learnt about the function of the.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Invitation to Computer Science 6th Edition Chapter 4 The Building Blocks: Binary Numbers, Boolean Logic, and Gates.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
Physics 343 Advanced Electronics Engineering 343 Digital Systems Electronics Courses.
Digital Circuits Text Book –M. M. Mano, "Digital Design," 3rd Ed., Prentice Hall Inc., Reference –class notes Grade –quizzes:15% –mid-term:27.5%
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science,
CS 1308 – Computer Literacy and the Internet Building the CPU.
Chapter 1: Binary Systems
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Binary Numbers For digital systems, the.
ECE 2110: Introduction to Digital Systems
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
President UniversityErwin SitompulDigital Systems 7/1 Lecture 7 Digital Systems Dr.-Ing. Erwin Sitompul President University
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 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
Logic gates.
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
Computer Architecture & Operations I
Invitation to Computer Science, C++ Version, Fourth Edition
GCSE OCR Computing A451 Binary logic Computing hardware 6.
Computer Code.
Logic Gates and Boolean Algebra
Chapter 2.3 Binary Logic.
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Invitation to Computer Science, Java Version, Third Edition
Invitation to Computer Science, C++ Version, Third Edition
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
Invitation to Computer Science 6th Edition
Logic Gates.
CS Chapter 3 (3A and ) – Part 2 of 5
XOR Function Logic Symbol  Description  Truth Table 
Presentation transcript:

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 of Chapter 4. Read the related chapters and do the exercises in the text book. Read the related chapters and do the exercises in the text book. I will give you a brief review on Thursday. I will give you a brief review on Thursday.

"Computers in the future may weigh no more "Computers in the future may weigh no more than 1.5 tons." than 1.5 tons." Popular Mechanics, forecasting the relentless Popular Mechanics, forecasting the relentless march of science, 1949 march of science, 1949

"I think there is a world market for may be five computers." Thomas Watson, chairman of IBM, 1943

"There is no reason anyone would want a computer in their home." Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977

Chapter 4: Objectives Understand purpose of binary numbers Understand purpose of binary numbers Be able to work with binary numbers. Be able to work with binary numbers. Know conditions of bistable environment and how they are met. Know conditions of bistable environment and how they are met. Determine truth value of Booleans. Determine truth value of Booleans. Identify transistor diagrams for AND, OR, and NOT gates. Identify transistor diagrams for AND, OR, and NOT gates. Construct & interpret circuit diagrams. Construct & interpret circuit diagrams.

Chapter 4, Sections 1 & 2 Introduction; Binary Numbering System Objectives: Understand the reason binary numbers are used. Understand the reason binary numbers are used. Translate binary and other bases to decimal. Translate binary and other bases to decimal. Do simple binary calculations. Do simple binary calculations. Know conditions of bistable environment and the way in which light switches, magnetic cores and transistors meet them. Know conditions of bistable environment and the way in which light switches, magnetic cores and transistors meet them.

4.1 Introduction Our computing agent: Electronic Digital Computer, from the bottom up. Ch. 4: At the bottom: digital logic components (transistors, gates, circuits) Ch. 4: At the bottom: digital logic components (transistors, gates, circuits) Ch. 5: Four basic subsystems (memory, ALU, CU, I/O) built from digital logic components, and organized into a complete computer system. Ch. 5: Four basic subsystems (memory, ALU, CU, I/O) built from digital logic components, and organized into a complete computer system.

4.2 Binary Numbering System What is it? What are the digits in decimal system? In the binary system? What is it? What are the digits in decimal system? In the binary system? Why we use binary in computers: More reliable Can be built from bi-stable devices Why we use binary in computers: More reliable Can be built from bi-stable devices

Bases commonly used in Computer Science Decimal (base 10) Digits: 0, 1, 2,..., 9 Place Value: 10 n Decimal (base 10) Digits: 0, 1, 2,..., 9 Place Value: 10 n Binary (base 2) Digits: 0, 1 Place Value: 2 n Binary (base 2) Digits: 0, 1 Place Value: 2 n Octal (base 8) Digits: 0, 1, 2,..., 7 Place Value: 8 n Octal (base 8) Digits: 0, 1, 2,..., 7 Place Value: 8 n Hexidecimal (base 16) Digits: 0, 1,..., 9, A, B, C, D, E, F Place Value: 16 n Hexidecimal (base 16) Digits: 0, 1,..., 9, A, B, C, D, E, F Place Value: 16 n

Converting from other bases to Decimal Binary to decimal: * * * * * * * * 2 0 = 91 Binary to decimal: * * * * * * * * 2 0 = 91 Octal to decimal: * * * * 8 0 = 1375 Octal to decimal: * * * * 8 0 = 1375 Hexadecimal to decimal: A3F 10* * * 16 0 = 2623 Hexadecimal to decimal: A3F 10* * * 16 0 = 2623

Representing Data in Binary using 8 bits (one byte) unsigned numbers: (same as previous slide) unsigned numbers: (same as previous slide) signed numbers: Use leftmost bit for sign: 1 for - 0 for + Represent: signed numbers: Use leftmost bit for sign: 1 for - 0 for + Represent: characters: ASCII code for each. (See figure 4.3) characters: ASCII code for each. (See figure 4.3)

Bistable Devices Two stable energy states Two stable energy states Two states widely separated Two states widely separated Can sense which state without destroying it Can sense which state without destroying it Can switch from one state to another Can switch from one state to another

Examples Two balls at different potential energy state Two balls at different potential energy state.

Examples A capacitor in charged state and discharged state. A capacitor in charged state and discharged state. + + _ _ It is similar to the a charged battery and discharged battery.

Examples Different magnetized state. Different magnetized state. NSNS SNSN

Binary Storage Devices Devices which have been used for primary computer memory-- vacuum tubes vacuum tubes magnetic core magnetic core transistor transistor integrated circuit integrated circuit

4.1, 4.2 Homework Read Sections 4.1 and 4.2. Read Sections 4.1 and 4.2. Count to 32 in binary (Use 6 bits) Count to 32 in binary (Use 6 bits) Exercises, p. 179 # 1, 3, 5, 8 Exercises, p. 179 # 1, 3, 5, 8

4.3.1 Boolean Logic A branch of mathematics which deals with two logical values: True and False

Boolean Expressions A mathematical expression that has a value of True or False. e.g. For which integer values of A is each of the following true? A < 0 A < 0 A + 5 > 7 A + 5 > 7

Boolean Operations Operations on real numbers: + - * / Operations on Booleans: NOT AND OR

NOT Operation Similar to unary minus for numbers -- for an integer A. -A gives the opposite of A e.g. if A = -3, -A = ? for an integer A. -A gives the opposite of A e.g. if A = -3, -A = ? for a Boolean P, NOT P gives the opposite of P e.g. if P = False, NOT P = ? for a Boolean P, NOT P gives the opposite of P e.g. if P = False, NOT P = ?

Either a zero “0” or a “1” In Boolean Algebra, there are only two values can be taken by any variables: In Boolean Algebra, there are only two values can be taken by any variables: “0” or “1” “0” or “1”

AND Operation Binary operation like integer multiplication Partial multiplication table for A * B table for A * B Complete truth table for Boolean AND

OR Operation P OR Q is True when either one is true or both are true. Complete the truth table for Boolean OR

Evaluating Boolean Expressions Evaluate each to True or False for the given values. For A = -1, B = 5, and C = 0 (A 10) (A 10) (A * C = C) OR NOT(C = 0) (A * C = C) OR NOT(C = 0) NOT [ (A = C) ] NOT [ (A = C) ] (B = 5) OR ([A + C] = A) AND ([A + B] = 3) (Precedence rule: Do AND before OR) (B = 5) OR ([A + C] = A) AND ([A + B] = 3) (Precedence rule: Do AND before OR)

4.3.2 Electronic Gates for AND, OR, NOT Built from transistors, the gates produce the correct output for any given inputs. Symbols for the gates: Figure 4.15 How gates are built from transistors: Figures 4.16, 4.17, 4.18 Figures 4.16, 4.17, 4.18

Homework for 4.3 Read Section 4.3 Read Section 4.3 Exercises pp #17, and #18 Exercises pp #17, and #18

4.4 Circuits Circuit: a set of logic gates that take binary inputs and transform them into binary outputs. Some things computer circuits do: Math operations like addition Math operations like addition Comparisons (e.g. Are two inputs equal?) Comparisons (e.g. Are two inputs equal?)

Three Ways to Represent a Circuit Circuit diagram Circuit diagram Boolean expression Boolean expression Truth table Truth table

Circuit Diagram: Building Block AND, OR, and NOT gates AND, OR, and NOT gates + A B C C = A AND B C = A B. A B C C = A OR B C = A + B A C C = A NOT C = A

Construct a Circuit from a Boolean Expression Construct a circuit diagram from the following Boolean expression: (a or b) and (c or d) (a or b) and (c or d)

Construct a Boolean Expression from a Truth Table Example: to write the Example: to write the Boolean expression for the following truth table the following truth table a b c(output) a b c(output) Sum of products method for each 1 output construct an and sub- expression using not for 0 inputs construct an or expression from the and sub-expressions

Circuit Design Design a circuit to compare two bits. The output should be 1 if the bits are equal and 0 otherwise. To design the circuit: Construct the truth table Construct the truth table Write the Boolean expression Write the Boolean expression Construct the circuit diagram (Check on simulator.) Construct the circuit diagram (Check on simulator.)

Circuit to do Addition A full adder circuit must be able to do additions such as the following: What is the correct answer?

Diagram of a Full 4-bit Adder a4b4c4=0 c3 b3a3 s4 s3s2 s1 c1c2 b1b2a1a2 c0 one-bit adder

Construct a One-Bit Adder Once we construct a one-bit adder, we may connect as many together as we like, as shown on the previous slide. Construct the truth table Construct the truth table Write the Boolean expression Write the Boolean expression Construct the circuit diagram Construct the circuit diagram

Homework Read Section 4.4 Read Section 4.4 Do #19, p.180 and give: Do #19, p.180 and give: truth table truth table boolean expression boolean expression circuit circuit