Quiz # 2 Chapters 4, 5, & 6.

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

Chapter 4 Gates and Circuits Nell Dale • John Lewis.
Chapter 4 Gates and Circuits.
Gates and Circuits Nell Dale & John Lewis (adaptation by Erin Chambers and Michael Goldwasser)
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Chapter 4 Gates and Circuits.
التصميم المنطقي Second Course
Low-Level Programming Languages and Pseudocode Chapter 6.
Chapter 5 Computing Components Nell Dale John Lewis.
Computer Organization Boolean Logic and the CPU i206 Fall 2010 John Chuang Some slides adapted from Marti Hearst, Brian Hayes, or Glenn Brookshear.
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 5 Computing Components Nell Dale John Lewis.
Chapter 4 Gates and Circuits.
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Chapter 7 Low-Level Programming Languages. 2 Chapter Goals List the operations that a computer can perform Discuss the relationship between levels of.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Lecture 3. Boolean Algebra, Logic Gates
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
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.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Binary Logic.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
CPS120: Introduction to Computer Science
The Digital Logic Level
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
COMPUTER SCIENCE QUESTIONS… BY JACK. WHAT IS THE CPU? The cpu is the central processing unit.
Chapter 5 Computing Components Nell Dale John Lewis.
5-1 Computer Components Consider the following ad.
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.
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Chapter 7 Low-Level Programming Languages (slides modified by Erin Chambers)
Logic Design / Processor and Control Units Tony Diep.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
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.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Chapter 3 Boolean Algebra and Digital Logic T103: Computer architecture, logic and information processing.
Low-Level Programming Languages, Pseudocode and Testing Chapter 6.
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.
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Basics of Logic gates - Part 2
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Chapter 3 - Binary Numbering System
Dr.Ahmed Bayoumi Dr.Shady Elmashad
CS 270: Mathematical Foundations of Computer Science
CS140 Lecture 03: The Machinery of Computation: Combinational Logic
Chapter 2 – Computer hardware
Fundamentals & Ethics of Information Systems IS 201
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Week 7: Gates and Circuits: PART II
Logic Gates.
Computer Organization
13 Digital Logic Circuits.
Digital Logic.
Chapter 10.3 and 10.4: Combinatorial Circuits
Chapter 4 Gates and Circuits.
XOR Function Logic Symbol  Description  Truth Table 
Digital Circuits and Logic
COMPUTER ORGANIZATION
Presentation transcript:

Quiz # 2 Chapters 4, 5, & 6

Computers and Electricity Gate A device that performs a basic operation on electrical signals 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 value and the associated output values

NOT Gate A NOT gate accepts one input signal (0 or 1) and returns the opposite signal as output 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 Figure 4.2 Various representations of an AND gate

OR Gate An OR gate accepts two input signals If both are 0, the output is 0; otherwise, the output is 1 Figure 4.3 Various representations of a 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 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 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 Figure 4.6 Various representations of a NOR gate

Combinational Circuits Gates are combined into circuits by using the output of one gate as the input for another

Combinational Circuits Three inputs require eight rows to describe all possible input combinations This same circuit using a Boolean expression is (AB + AC)

Combinational Circuits Consider the following Boolean expression A(B + C) Does this truth table look familiar? Compare it with previous table

Combinational Circuits Circuit equivalence Two circuits that produce the same output for identical input Boolean algebra allows us to apply provable mathematical principles to help design circuits A(B + C) = AB + BC (distributive law) so circuits must be equivalent

Adders The result of adding two binary digits could produce a carry value Recall that 1 + 1 = 10 in base two Half adder A circuit that computes the sum of two bits and produces the correct carry bit Truth table

Adders sum = A  B carry = AB Circuit diagram representing a half adder Boolean expressions sum = A  B carry = AB

Adders Full adder A circuit that takes the carry-in value into account Figure 4.10 A full adder

Circuits as Memory The design of this circuit guarantees that the two outputs X and Y are always complements of each other The value of X at any point in time is considered to be the current state of the circuit Therefore, if X is 1, the circuit is storing a 1; if X is 0, the circuit is storing a 0 Figure 4.12 An S-R latch

Chapter 5 Goals Read an ad for a computer and understand the jargon Describe how a storage heirarchy is organized and accessed Name and describe different auxiliary storage devices Explain the concept of embedded systems and give examples from your own home

Basic Concepts of Computer Hardware von Neumann Computer Program & data are stored in the same memory Single program counter – one instruction at a time Input devices accept data and programs from the outside world Output devices provide results to the user Some devices are both input and output

Arithmetic/Logic Unit Performs basic arithmetic operations such as adding Performs logical operations such as AND, OR, and NOT Most modern ALUs have a small amount of special storage units called registers

Input/Output Units Input Unit A device through which data and programs from the outside world are entered into the computer; Can you name three? Output unit A device through which results stored in the computer memory are made available to the outside world Can you name two?

The Fetch-Execute Cycle Fetch the next instruction Decode the instruction Get data if needed Execute the instruction Why is it called a cycle?

RAM and ROM Random Access Memory (RAM) Memory in which each location can be accessed and changed Read Only Memory (ROM) Memory in which each location can be accessed but not changed RAM is volatile, ROM is not What does volatile mean?

Magnetic Disks Figure 5.5 The organization of a magnetic disk

Synchronous processing One approach to parallelism is to have multiple processors apply the same program to multiple data sets Figure 5.8 Processors in a synchronous computing environment

Embedded Systems Embedded systems Computers that are dedicated to perform a narrow range of functions as part of a larger system Empty your pockets or backpacks. How many embedded systems do you have? 26 26

Chapter 6 Goals Understand what an algorithm and a program are How are algorithms developed Understand the evolution of programming languages

Machine Language Characteristics of machine language: Every processor type has its own set of specific machine instructions The relationship between the processor and the instructions it can carry out is completely integrated Each machine-language instruction does only one very low-level task

Assembly Process

Following an Algorithm Algorithm for preparing a Hollandaise sauce IF concerned about cholesterol Put butter substitute in a pot ELSE Put butter in a pot Turn on burner Put pot on the burner WHILE (NOT bubbling) Leave pot on the burner Put other ingredients in the blender Turn on blender WHILE (more in pot) Pour contents into lender in slow steam Turn off blender

Testing Test plan A document that specifies how many times and with what data the program must be run in order to thoroughly test it Code coverage An approach that designs test cases by looking at the code Data coverage An approach that designs test cases by looking at the allowable data values