Week 7: Gates and Circuits: PART II

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

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.
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.
Binary Numbers.
Chapter 4 Gates and Circuits.
Binary Addition CSC 103 September 17, 2007.
CPS120: Introduction to Computer Science
ADDERS Half Adders Recall that the basic rules of binary addition are as indicated below in Table 2-9. A circuit known as the half-adder carries out these.
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
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.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
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.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Chapter 3 Digital Logic Structures
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.
C OMBINATIONAL L OGIC D ESIGN 1 Eng.Maha AlGubali.
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.
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Week 1: Introduction and Logic gates IT3002 – Computer Architecture
Dr.Ahmed Bayoumi Dr.Shady Elmashad
ECE 3130 Digital Electronics and Design
Combinational Circuits
Combinational Circuits
Computer Architecture CST 250
Dr. Clincy Professor of CS
Fundamentals & Ethics of Information Systems IS 201
XOR, XNOR, and Binary Adders
Basics Combinational Circuits Sequential Circuits
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Agenda – 2/12/18 Questions? Readings: CSI 4, P
XOR, XNOR, & Binary Adders
Boolean Algebra.
ECE 301 – Digital Electronics
CS Chapter 3 (3A and ) Part 3 of 8
Digital Logic.
Number Systems and Circuits for Addition
Logic Gates.
Logic Gates.
CS Chapter 3 (3A and ) – Part 2 of 5
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
Chapter 10.3 and 10.4: Combinatorial Circuits
Combinational Circuits
XOR, XNOR, and Binary Adders
Chapter-4 Combinational Logic
Electronics for Physicists
Special Gates Combinational Logic Gates
XOR Function Logic Symbol  Description  Truth Table 
Adder Circuits By: Asst Lec. Basma Nazar
Digital Circuits and Logic
XOR, XNOR, and Binary Adders
Computer Architecture
Presentation transcript:

Week 7: Gates and Circuits: PART II READING: Chapter 4

Properties of Boolean Algebra EECS 1520 -- Computer Use: Fundamentals Properties of Boolean Algebra DeMorgan’s law, in particular, is very useful in Boolean algebra. For instance, it means that: ___ 1 NAND gate is equivalent to 2 NOT gates with an OR gate

Properties of Boolean Algebra EECS 1520 -- Computer Use: Fundamentals Properties of Boolean Algebra Suppose we have the following logic circuit diagram: 3T A 2T Requires 8 transistors in total to implement B 3T C D Recall that a NAND gate needs 2 transistors: Vout Vin1 Vin2

Properties of Boolean Algebra EECS 1520 -- Computer Use: Fundamentals Properties of Boolean Algebra If we apply DeMorgan’s law: (AB)’ = A’ OR B’ ___ So, we will obtain the following logic diagram: 2T 3T A 3T A 2T B B 3T 2T C C D D Requires 7 transistors in total to implement

EECS 1520 -- Computer Use: Fundamentals Addition One of the most basic operations a computer can perform is to add two numbers together Addition operations in binary are carried out by special circuits called adders

EECS 1520 -- Computer Use: Fundamentals Adder A circuit that computes the sum of two single bits and produces the correct carry bit is called a half adder How do we implement the circuit? Recall adding two binary digits: Carry Sum

EECS 1520 -- Computer Use: Fundamentals Half Adder Based on the previous results, we obtain 2 output results: Sum, Carry The next step is to create a truth table that consists A, B, Sum and Carry Carry Sum

EECS 1520 -- Computer Use: Fundamentals Half Adder Based on the previous results, we obtain the following truth table with 2 output results: Sum, Carry Corresponds to AND gate A B Sum Carry 1 Corresponds to XOR gate

EECS 1520 -- Computer Use: Fundamentals Half Adder Based on the previous results, the circuit for a half adder is : A B Sum Carry 1 Because the circuit produces two distinct output values, we represent the half adder with 2 Boolean expressions:

EECS 1520 -- Computer Use: Fundamentals Half Adder A half adder does not take into account a possible carry value into the calculation (carry-in) For example: if we want to perform another addition based on the following result, the Carry bit is ignored Carry Sum Half adder is only good for adding 2 single bits, but cannot be used to compute the sum of 2 binary values with multiple digits each

EECS 1520 -- Computer Use: Fundamentals Full Adder A circuit called full adder takes the carry-in value into account Based on the logic diagram, we should then create the truth table for the full adder

EECS 1520 -- Computer Use: Fundamentals Full Adder Let’s go back one step and try to understand why we need an OR gate at the output Suppose: A = 1, B = 1, 1 1 1 = A + 1 = B 1 0 1 If we want to add a single bit of 1 (called “C”) to the previous sum, C = 1 1 1 = A + 1 = B 1 0 + 1 = C 1 1 1 1 1

EECS 1520 -- Computer Use: Fundamentals Full Adder Suppose: A = 0, B = 1, 1 1 0 = A + 1 = B 0 1 If we want to add a single bit of 1 (called “C”) to the previous sum, C = 1 0 = A + 1 = B 0 1 + 1 = C 1 0 1 1 1

EECS 1520 -- Computer Use: Fundamentals Full Adder An OR gate can do the job 1 1 1 = A + 1 = B 1 0 + 1 = Carry in 1 1 0 = A + 1 = B 0 1 + 1 = Carry in 1 0 1 1 1 1 1 1

EECS 1520 -- Computer Use: Fundamentals Full Adder The truth table for a full adder is: A B Carry-in AND1 AND2 Sum Carry-out 1 A B Carry-in AND1 AND2 Sum Carry-out 1 A B Carry-in AND1 AND2 Sum Carry-out 1 A B Carry-in AND1 AND2 Sum Carry-out 1 A B Carry-in AND1 AND2 Sum Carry-out 1 AND2 AND1

EECS 1520 -- Computer Use: Fundamentals Multiplexers S0 S1 S2 F D0 1 D1 D2 D3 D4 D5 D6 D7 The control lines S0, S1, S2 determine which of eight other input lines (D0 – D7) are provided to the output “F” For example, if S0 S1 S2 = 000 , the output will be equal to D0 In general, the binary values on n input control lines are used to determine which of 2n other data lines are selected for output.

EECS 1520 -- Computer Use: Fundamentals Sequential Circuits Digital circuits that store information form a sequential circuit. In this circuit, the output of the circuit also serves as input to the circuit. That is the existing state of the circuit is used to determine the next state of the circuit