Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University Circuits & Numbers See: P&H Chapter 2.4, 2.5, 3.2, C.5.

Slides:



Advertisements
Similar presentations
컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Advertisements

Princess Sumaya University
Modular Combinational Logic
Cs 1110 Ch 4-1 Combinational Logic. ° Introduction Logic circuits for digital systems may be: °2°2 combinational sequential OR A combinational circuit.
Prof. Kavita Bala and Prof. Hakim Weatherspoon CS 3410, Spring 2014 Computer Science Cornell University See P&H Appendix B.7. B.8, B.10, B.11.
Chapter 1 — Computer Abstractions and Technology — 1 Lecture 7 Carry look ahead adders, Latches, Flip-flops, registers, multiplexors, decoders Digital.
Prof. Hakim Weatherspoon CS 3410, Spring 2015 Computer Science Cornell University See P&H Appendix B.7. B.8, B.10, B.11.
Arithmetic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University See P&H 2.4 (signed), 2.5, 2.6, C.6, and Appendix C.6.
Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
Numbers & Arithmetic Hakim Weatherspoon CS 3410, Spring 2011 Computer Science Cornell University See: P&H Chapter , 3.2, C.5 – C.6.
Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University Arithmetic See: P&H Chapter 3.1-3, C.5-6.
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
Gates and Logic Hakim Weatherspoon CS 3410, Spring 2011 Computer Science Cornell Universty See: P&H Appendix C.0, C.1, C.2.
Number Systems & Logic Gates Day 2. Octal Number System Base (Radix)8 Digits0, 1, 2, 3, 4, 5, 6, 7 e.g = =648 1 =88 0 =1 The digit.
Prof. Hakim Weatherspoon CS 3410, Spring 2015 Computer Science Cornell University See: P&H Chapter 2.4, 3.2, B.2, B.5, B.6.
Logic Gates Combinational Circuits
Prof. Kavita Bala and Prof. Hakim Weatherspoon CS 3410, Spring 2014 Computer Science Cornell University See: P&H Appendix B.2 and B.3 (Also, see B.0 and.
Numbers & Arithmetic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University See: P&H Chapter , 3.2, C.5 – C.6.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University.
1 Survey of Computer Science CSCI 110, Spring 2011 Lecture 16 Digital Circuits, binary Numbers.
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
Top-down modular design
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Flip-flops, Latches and State Prof. Sirer COMP 303 Koç University.
Binary Numbers.
Outline Analysis of Combinational Circuits Signed Number Arithmetic
Chapter 4 The Building Blocks: Binary Numbers, Boolean Logic, and Gates.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Computer Organization & Programming Chapter4 Combinatorial Components.
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Numbers & Arithmetic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University See: P&H Chapter , 3.2, C.5 – C.6.
Numbers and Arithmetic Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University See: P&H Chapter , 3.2, C.5 – C.6.
Gates and Logic Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell Universty See: P&H Appendix C.2 and C.3 (Also, see C.0 and C.1)
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Kavita Bala CS 3410, Spring 2014 Computer Science Cornell University.
1 Ethics of Computing MONT 113G, Spring 2012 Session 1 Digital Circuits, binary Numbers Course webpage:
From Switches to Transistors and Gates Prof. Sirer CS 316 Cornell University.
Computing Machinery Chapter 3: Combinational Circuits.
1 Fundamentals of Computer Science Combinational Circuits.
Numbers and Arithmetic Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University See: P&H Chapter , 3.2, C.5 – C.6.
1 Lecture 24 Transistors A look ahead Course summary.
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.
1 Combinational Logic Design.  A process with 5 steps Specification Formulation Optimization Technology mapping Verification  1 st three steps and last.
Decoder Chapter 12 Subject: Digital System Year: 2009.
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
From Switches to Transistors and Gates
Reference: Chapter 3 Moris Mano 4th Edition
Fundamentals & Ethics of Information Systems IS 201
University of Gujrat Department of Computer Science
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
Chapter 6 Functions of Combinational Logic
Numbers and Arithmetic
FIGURE 4.1 Block diagram of combinational circuit
ELL100: INTRODUCTION TO ELECTRICAL ENGG.
Numbers and Arithmetic
Digital Logic.
Number Systems and Circuits for Addition
13 Digital Logic Circuits.
DIGITAL ELECTRONICS B.SC FY
Chapter 10.3 and 10.4: Combinatorial Circuits
LOGIC Circuits.
Adder Circuits By: Asst Lec. Basma Nazar
Digital and Microprocessor Technique I
Computer Organization
Presentation transcript:

Kevin Walsh CS 3410, Spring 2010 Computer Science Cornell University Circuits & Numbers See: P&H Chapter 2.4, 2.5, 3.2, C.5

2 Office Hours HW1 CSUGLab

3 Logic Minimization How to implement a desired function? abcout sum of products: OR of all minterms where out=1 corollary: any combinational circuit can be implemented in two levels of logic (ignoring inverters) minterm a b c

4 Karnaugh Maps How does one find the most efficient equation? – Manipulate algebraically until…? – Use Karnaugh maps (optimize visually) – Use a software optimizer For large circuits – Decomposition & reuse of building blocks

5 Voting machine Voting Machine! – optical scan (thanks FL) Assume: – vote is recorded on paper by filling a circle – fixed number of choices – don’t worry about “invalids” Al Franken Bill Clinton Condi Rice Dick Cheney Eliot Spitzer Fred Upton Write-in

6 Voting Machine Components Ballots The 3410 optical scan vote counter reader machine – Input: paper with at exactly one mark – Datapath: process current ballot – Output: a number the supervisor can record – Memory & control: none for now 5 Essential Components?

7 Input Photo-sensitive transistor photons replenish gate depletion region can distinguish dark and light spots on paper Use array of N sensors for voting machine input i0 i1 i2 i3 i5 i4 i6 Vdd

8 Output 7-Segment LED photons emitted when electrons fall into holes d7d6 d5d4 d3d2 d1d0

9 Block Diagram detect 8N

10 Encoders N might be large Routing wires is expensive More efficient encoding? encoder N...

11 Number Representations Base 10 - Decimal Just as easily use other bases – Base 2 - Binary – Base 8 - Octal – Base 16 - Hexadecimal

12 Counting

13 Base Conversion Base conversion via repetitive division – Divide by base, write remainder, move left with quotient

14 Base Conversion Base conversion via repetitive division – Divide by base, write remainder, move left with quotient

15 Base Conversion Base conversion via repetitive division – Divide by base, write remainder, move left with quotient

16 Hexadecimal, Binary, Octal Conversions

17 Encoder Implementation Implementation... –assume 8 choices, exactly one mark detected i0 i1 b0 1 i2 i b1 3-bit encoder (8-to-3) b2 i4 5 i5 i6 i encoder

18 Ballot Reading detect enc 83 8

19 7-Segment LED Decoder 3 inputs encode 0 – 7 in binary 7 outputs one for each LED 7LED decode

20 7 Segment LED Decoder Implementation d0 d1 d2 d3 d4 d5 d6 b2b1b0d6d5d4d3d2d1d

21 Ballot Reading and Display Ballots The 3410 optical scan vote counter reader machine detect enc LED decode

22 Building Blocks binary encoder 2N2N N binary decoder N 2N2N Multiplexor N M N N N N M -1

23 Binary Addition Addition works the same way regardless of base Add the digits in each position Propagate the carry

24 1-bit Adder Half Adder Adds two 1-bit numbers Computes 1-bit result and 1-bit carry A B R C

25 1-bit Adder with Carry Full Adder Adds three 1-bit numbers Computes 1-bit result and 1-bit carry Can be cascaded A B R CoutCin

26 4-bit Adder 4-Bit Full Adder Adds two 4-bit numbers and carry in Computes 4-bit result and carry out Can be cascaded A[4] B[4] R[4] CoutCin

27 4-bit Adder A 0 B 0 R0R0 A 1 B 1 R1R1 A 2 B 2 R2R2 A 3 B 3 R3R3 Cout Cin

28 Summary We can now implement any combinational (combinatorial) logic circuit Decompose large circuit into manageable blocks –Encoders, Decoders, Multiplexors, Adders,... Design each block –Binary encoded numbers for compactness Can implement circuits using NAND or NOR gates Can implement gates using use P- and N-transistors