CS 111 – Aug. 27 Section 1.1 –Binary data and operations –Logic gates –Flip-flop –A binary shorthand: hexadecimal Commitment for next day: –Please read.

Slides:



Advertisements
Similar presentations
Logic Gates A logic gate is an elementary building block of a digital circuit Most logic gates have two inputs and one output At any given moment, every.
Advertisements

Logic Gates.
CT455: Computer Organization Logic gate
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Programmable Logic Controllers.
Logic Gates.
CSCI 3 Chapter 1 Data Storage. Bits  Today’s computer information is encoded as patterns of 0s and 1s.  These digits are called “bits” (binary digits)
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
In a not gate, if the input is on(1) the output is off (0) and vice versa.

1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
Logical Circuit Design Week 5: Combinational Logic Circuits Mentor Hamiti, MSc Office ,
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
1 The 8051 Microcontroller and Embedded Systems CHAPTER 0 INTRODUCTION TO COMPUTING.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Basic Logic Operations and Standard Logic Gates (Lecture #1) ECE 331 – Digital System Design.
Chapter 33 Basic Logic Gates. 2 Objectives –After completing this chapter, the student should be able to: Identify and explain the function of the basic.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
Exclusive OR Gate. Logically, the exclusive OR (XOR) operation can be seen as either of the following operations:exclusive OR (XOR) 1. A AND NOT B OR.
Islamic University Of Gaza, Nael Aburas Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas
Gates and Logic Dr John Cowell phones off (please)
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
Appendix B: Digital Logic
1 Logic Gates CS 202, Spring 2008 Epp, sections 1.4 and 1.5.
NAND, NOR, and EXOR (more primitive logical gates) CS Computer Architecture David Mayer.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Computer Hardware & Operation Northern College Diploma Philip Bird.
1 Review of Boolean algebra Not is a horizontal bar above the number –0 = 1 –1 = 0 Or is a plus –0+0 = 0 –0+1 = 1 –1+0 = 1 –1+1 = 1 And is multiplication.
Logic Gates Review. Logic Gates OR gate – 1 if either input is 1 – 0 if they both are 0.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Chapter 3 - Binary Numbering System
Computer Code.
Logic Gates and Boolean Algebra
ECE 331 – Digital System Design
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
EI205 Lecture 5 Dianguang Ma Fall 2008.
CSCI-100 Introduction to Computing
Exclusive OR Gate.
Basic Logical Operations (Fascinating)
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Computer Science 210 Computer Organization
Boolean Operations 1 and 1 = 1.
For OCR GCSE Computing Unit 1 - Theory
Logic Gates.
Boolean Algebra.
Logic Gates.
Digital Logic.
Logic Gates.
GCSE Computer Science – Logic Gates & Boolean Expressions
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
Logic Gates.
Binary Logic.
Some basic electronics and truth tables
XOR Function Logic Symbol  Description  Truth Table 
Truth tables Mrs. Palmer.
Department of Electronics
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
UNIT – 3 & 4. Data Representation and Internal
Logic Gates By: Asst Lec. Besma Nazar Nadhem
What are Logic Gates?.
DIGITAL ELECTRONICS AND LOGIC GATES. ANALOG SIGNAL:- Analog signal is continuous time varying current or voltage signal.
Presentation transcript:

CS 111 – Aug. 27 Section 1.1 –Binary data and operations –Logic gates –Flip-flop –A binary shorthand: hexadecimal Commitment for next day: –Please read sections 1.2 and 1.3

Binary All information inside computer is in binary Smallest unit of data is the bit Only the values 0 and 1 are used 0 means “false” or “off” or the number 0 1 means “true” or “on” or the number 1 Individual bit values can be manipulated with Boolean operations: “and”, “or”, “not”, etc. –In hardware, we implement these operations with logic gates.

Boolean examples AND –To graduate, you must have 128 credits and 2.0 GPA. OR –Classics scholarship requires 3 years of Latin or 3 years of Greek. XOR (“exclusive” or) –To go to Cincinnati, you can fly or drive. In other words, it doesn’t make sense to do both. –Do you want a 2-door or a 4-door car? NOT –If a statement is true, its negation is false, and vice versa.

Gates Basic building blocks of CPU’s circuitry. Usually 2 inputs. X and Y could be 0 or 1. Combining gates into a circuit: –The output of one gate becomes input to another. –This is how more useful operations are performed.

‘AND’ and ‘OR’ AND XYans OR XYans Note: 0 AND (anything) = 0 1 OR (anything) = 1

XOR XOR basically says, “either but not both” The output is 1 if both inputs are different. XOR XYAns

NOR, NAND NOR gate –Negation of the OR –Same as feeding output of OR into a NOT gate. –Symbol for NOR gate is same as OR but with a loop on the end. NAND gate –Negation of the AND…. analogous to NOR. Interesting property: –NOR and NAND are universal gates. Any other boolean operation can be implemented by using several NAND’s or several NOR’s.

Flip-flop circuit Circuit that can “store” or remember a 1 bit value. Its own output is used as input to one of its gates. To change flip-flop’s value, set one of the inputs to 1. See diagrams on page 23.

Hexadecimal One bit is not enough to convey much information. A single word or numerical value requires several bits. –Ex. The word “cat” can be represented by this bit sequence: “Hex” is a shorthand for binary –Allows us to represent every 4 bits with just 1 symbol. –Ex. 24 bits of information= 6 hex characters. –The word hexadecimal means there are 16 possible symbols, so we use 0-9 and then a-f. See table on page 25.