Digital Logic.

Slides:



Advertisements
Similar presentations
ADDER, HALF ADDER & FULL ADDER
Advertisements

Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Digital Circuits.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
ECE 301 – Digital Electronics
Lecture 3. Boolean Algebra, Logic Gates
Propositional Calculus Math Foundations of Computer Science.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
CS 105 Digital Logic Design
22C:19 Discrete Math Boolean Algebra & Digital Logic Fall 2010 Sukumar Ghosh.
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.
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Binary Addition CSC 103 September 17, 2007.
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.
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
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.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Appendix C Basics of Digital Logic Part I. Florida A & M University - Department of Computer and Information Sciences Modern Computer Digital electronics.
Chapter 3 Digital Logic Structures
Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies.
1 Ethics of Computing MONT 113G, Spring 2012 Session 4 Binary Addition.
WORKING PRINCIPLE OF DIGITAL LOGIC
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.
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.
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.
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 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Dr.Ahmed Bayoumi Dr.Shady Elmashad
ECE 3130 Digital Electronics and Design
ECE 3130 Digital Electronics and Design
Logic Gates.
Combinational Circuits
Jeremy R. Johnson Wed. Sept. 29, 1999
XOR, XNOR, and Binary Adders
Digital Circuits.
FIGURE 4.1 Block diagram of combinational circuit
XOR, XNOR, & Binary Adders
For OCR GCSE Computing Unit 1 - Theory
Week 7: Gates and Circuits: PART II
Logic Gates.
Digital Logic.
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Number Systems and Circuits for Addition
Logic Gates.
Logic Gates.
Adders and Subtractors
COMS 361 Computer Organization
DIGITAL ELECTRONICS B.SC FY
Chapter 10.3 and 10.4: Combinatorial Circuits
XOR, XNOR, and Binary Adders
XOR Function Logic Symbol  Description  Truth Table 
Digital Circuits.
XOR, XNOR, and Binary Adders
Carryout bit? Carryout bit is ‘1’ also on four cases. When a, b and carryin are 110, 101, 011, 111. Does it mean that we need a similar circuit as sum?
Digital Circuits.
Digital Circuits.
Presentation transcript:

Digital Logic

Quiz Code Quiz code is http://www.cs.fsu.edu/~zzhang/CDA3100_Spring_2009_files/newquiz2.asm

Abstractions in CS (gates) 2/16/2019 Abstractions in CS (gates) Basic Gate: Inverter Truth Table I O I O 1 1 GND I O Vcc Resister (limits conductivity) CDA3100 week08-5.ppt

Abstractions in CS (gates) 2/16/2019 Abstractions in CS (gates) Truth Table I O I O 1 1 CDA3100 week08-5.ppt

Abstractions in CS (gates) 2/16/2019 Abstractions in CS (gates) Basic Gate: NAND (Negated AND) Truth Table A B Y A B 1 Y GND A B Y Vcc CDA3100 week08-5.ppt

Abstractions in CS (gates) 2/16/2019 Abstractions in CS (gates) Basic Gate: AND Truth Table A B 1 Y A B Y CDA3100 week08-5.ppt

Abstractions in CS (gates) 2/16/2019 Abstractions in CS (gates) Other Basic Gates: OR gate Truth Table A B 1 Y A B Y CDA3100 week08-5.ppt

Abstractions in CS (gates) 2/16/2019 Abstractions in CS (gates) Other Basic Gates: XOR gate Truth Table A B 1 Y A B Y CDA3100 week08-5.ppt

2/16/2019 Logic Blocks Logic blocks are built from gates that implement basic logic functions Any logical function can be constructed using AND gates, OR gates, and inversion. CDA3100 week08-5.ppt

Adder In computers, the most common task is add. In MIPS, we write “add $t0, $t1, $t2.” The hardware will get the values of $t1 and $t2, feed them to an adder, and store the result back to $t0. So how the adder is implemented?

Half-adder How to implement a half-adder with logic gates? A half adder takes two inputs, a and b, and generates two outputs, sum and carry. The inputs and outputs are all one-bit values. a sum b carry

Half-adder First, how many possible combinations of inputs?

Half-adder Four combinations. a b sum carry 1

Half-adder The value of sum should be? Carry? a b sum carry 1

Half-adder Okay. We have two outputs. But let’s implement them one by one. First, how to get sum? Hint: look at the truth table. a b sum 1

Half-adder Sum a sum b

How about carry? The truth table is a b carry 1

Carry So, the circuit for carry is a carry b

Half-adder Put them together, we get a sum b carry

1-Bit Adder 1-bit full adder Also called a (3, 2) adder 2/16/2019 CDA3100 week09-1.ppt

Constructing Truth Table for 1-Bit Adder 2/16/2019 Constructing Truth Table for 1-Bit Adder CDA3100 week09-1.ppt

Truth Table for a 1-Bit Adder 2/16/2019 Truth Table for a 1-Bit Adder CDA3100 week09-1.ppt

Sum? Sum is `1’ when one of the following four cases is true: a=1, b=0, c=0 a=0, b=1, c=0 a=0, b=0, c=1 a=1, b=1, c=1

2/16/2019 Boolean Algebra We express logic functions using logic equations using Boolean algebra The OR operator is written as +, as in A + B. The AND operator is written as ·, as A · B. The unary operator NOT is written as . Remember: This is not the binary field. Here 0+0=0, 0+1=1+0=1, 1+1=1. CDA3100 week08-5.ppt

Sum

Carryout bit? Carryout bit is ‘1’ also on four cases. When a, b and carryin are 110, 101, 011, 111. Does it mean that we need a similar circuit as sum?

Carryout bit Actually, it can be simpler

2/16/2019 Boolean Algebra Laws A+A=A CDA3100 week09-1.ppt

2/16/2019 1-Bit Adder CDA3100 week09-1.ppt

32-bit adder How to get the 32-bit adder used in MIPS?

32-bit adder