CSIS-110 Introduction to Computer Science

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Chapter 4 Gates and Circuits.
Logic Gates.
Gates and Circuits Nell Dale & John Lewis (adaptation by Erin Chambers and Michael Goldwasser)
CT455: Computer Organization Logic gate
Programmable Logic Controllers.
Digital Electronics Lecture 2 Logic Gates. Lecture 2 outline Announcement:
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Chapter 4 Gates and Circuits.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
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
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
Lecture 3. Error Detection and Correction, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 4 Gates and Circuits. Integrated Circuits aka CHIPS What’s in this thing???? 4–2.
Chapter 4 Gates and Circuits.
Introduction to Computer Science David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS September 6, 2007.
Fundamentals of IT UNIT-I OnlyforIPMCA. DIGITAL SIGNALS & LOGIC GATES Signals and data are classified as analog or digital. Analog refers to something.
CPS120: Introduction to Computer Science
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
CPS120: Introduction to Computer Science Session 5.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
Logic Gates and Boolean Algebra Introduction to Logic II.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
L OGIC G ATES Computer Organization – week 3. W HAT ’ S ALU? 1. ALU stands for: Arithmetic Logic Unit 2. ALU is a digital circuit that performs Arithmetic.
4–1 Gates Let’s examine the processing of the following six types of gates NOT AND OR XOR NAND NOR Typically, logic diagrams are black and white, and the.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
DAT10403 CHAPTER 4 COMPUTER ARITHMETIC By Noordiana Kassim
Unit 1 Logical operators.
CSIS-110 Introduction to Computer Science
Basics of Logic gates - Part 1
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Chapter 3 - Binary Numbering System
Logic Gates and Boolean Algebra
Questions Describe the following gates
ECE 331 – Digital System Design
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
EI205 Lecture 5 Dianguang Ma Fall 2008.
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Fundamentals & Ethics of Information Systems IS 201
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Schematics 201 Lecture Topic: Electrical Symbols
For OCR GCSE Computing Unit 1 - Theory
Logic Gates.
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
Logic Gates.
KS4 Electricity – Electronic systems
GCSE Computer Science – Logic Gates & Boolean Expressions
Today You are Learning simple logic diagrams using the operations AND, OR and NOT truth tables combining Boolean operators using AND, OR and NOT.
Chapter 4 Gates and Circuits.
Truth tables Mrs. Palmer.
Introduction to Logic diagrams and truth tables
Introduction to Logic diagrams and truth tables
What are Logic Gates?.
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

CSIS-110 Introduction to Computer Science Dr. Meg Fryling “Dr. Meg” Fall 2012 @SienaDrMeg #csis110

Lecture Seven Agenda Questions? Assignments CSI Chapter 4 – Data Representation RGB and hex -> binary -> decimal conversion CSI Chapter 5 - Gates and Circuits

Assignments Readings: See course scheduled on syllabus Homework 1 The textbook readings are going to help you with homeworks AND labs Homework 1 Was due today at the start of class Homework 2 Due Weds 10/10 at the START of class (note typo on the homework sheet) Lab 2 Due at START of lab 3 Coming to lab late does NOT extend your due date

Representing Images and Graphics Color is expressed as an RGB (red-green-blue) value--three numbers that indicate the relative contribution of each of these three primary colors An RGB value of (255, 255, 0) maximizes the contribution of red and green, and minimizes the contribution of blue, which results in a bright yellow

Representing Images and Graphics A few TrueColor RGB values and the colors they represent

Nerds are Sexy! What is the RBG value for #FF0000? Source: http://programmerryangosling.tumblr.com/ F = 1111 11111111 = 255 (decimal) What is the RBG value for #FF0000?

Common Colors http://www.w3schools.com/html/html_colornames.asp

Nested Loops

Chapter 5 Gates and Circuits

Computers and Electricity Gate A device that performs a basic operation on electrical signals Takes in 1 or more signals as input and returns 1 output Circuits Gates combined to perform more complicated tasks

Computers and Electricity How do we describe the behavior of gates and circuits? Boolean expressions Uses Boolean algebra, a mathematical notation for expressing two-valued logic Logic diagrams A graphical representation of a circuit; each gate has its own symbol Truth tables A table showing all possible input values and the associated output values

Gates Six types of gates NOT AND OR XOR NAND NOR Typically, logic diagrams are black and white with gates distinguished only by their shape We use color for emphasis (and fun)

Boolean Expressions

Boolean Expressions Assume that A = true, B = false, and C = false Evaluate each expression below (i.e., state whether it is TRUE or FALSE) NOT A Also written as A’ ( A OR B ) Also written as A + B ( A AND B ) Also written as A*B, A∙B, AB

Worksheet Questions 1-2 Remember: NOT operation is represented by ‘ AKA inverter AND operation is represented by * or ∙ When no operation exists between input values, AND is assumed (e.g. AB) OR operation is represented by +

NOT Gate A NOT gate accepts one input signal (0 or 1) and returns the opposite signal as output Question 3 Truth Table A X 1 Note: Number of rows in my Truth Table = 2n where n is the number of inputs Figure 4.1 Various representations of a NOT gate

? AND Gate An AND gate accepts two input signals If both are 1, the output is 1; otherwise, the output is 0 Question 4 ? Truth Table There are 2^n possible input combinations for a gate with n inputs, so there are 2^n rows in the truth table that describes it. Figure 4.2 Various representations of an AND gate

Remember to draw your truth tables as if you were counting in binary

OR Gate An OR gate accepts two input signals If both are 0, the output is 0; otherwise, the output is 1 Question 5 Truth Table A B X Figure 4.3 Various representations of an OR gate

XOR Gate An XOR gate accepts two input signals If both are the same, the output is 0; otherwise, the output is 1 Question 6 Truth Table A B X Note the difference between the XOR gate and the OR gate; they differ only in one input situation When both input signals are 1, the OR gate produces a 1 and the XOR produces a 0 XOR is called the exclusive OR Figure 4.4 Various representations of an XOR gate

NAND Gate The NAND gate accepts two input signals If both are 1, the output is 0; otherwise, the output is 1 Question 7 Truth Table A B X Figure 4.5 Various representations of a NAND gate

NOR Gate The NOR gate accepts two input signals If both are 0, the output is 1; otherwise, the output is 0 Question 8 Truth Table A B X Figure 4.6 Various representations of a NOR gate

Properties of Boolean Algebra