1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.

Slides:



Advertisements
Similar presentations
Chapter 4 Gates and Circuits.
Advertisements

L14: Boolean Logic and Basic Gates
Programming Logic Gate Functions in PLCs
Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
Cosc 2150: Computer Organization Chapter 3: Boolean Algebra and Digital Logic.
Lecture 2 Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 153, Engineering Building To insert your company logo on this slide From.
08/07/041 CSE-221 Digital Logic Design (DLD) Lecture-8:
Chapter 4 Gates and Circuits.
How to build a digital gate. CMOS NAND Gate Several realization of NOT 1. This is how a NOT operation is often represented schematically. 2. Sometimes.
4/11/03 Minute Paper How does MS window work? Like how do we have the screen on the computer. Is it just a bunch of Binary #’s representing colors? When.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Lecture 3. Boolean Algebra, Logic Gates
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Digital Design.
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.
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.
Digital Logic Lecture 08 By Amr Al-Awamry. Combinational Logic 1 A combinational circuit consists of an interconnection of logic gates. Combinational.
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.
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.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Boolean Algebra and Digital Circuits
Digital Logic Basics Chapter 2 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer, 
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
The Digital Logic Level
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Digital Logic. 4 Why is 32-bit or 64-bit significant in terms of speed, efficiency? 4 Difference between OR and XOR 4 What is a mux for? PLA 4 Two kinds.
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.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
February 2, 2004CS 2311 Karnaugh maps Last time we saw applications of Boolean logic to circuit design. – The basic Boolean operations are AND, OR and.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
CS231 Boolean Algebra1 Summary so far So far: – A bunch of Boolean algebra trickery for simplifying expressions and circuits – The algebra guarantees us.
Boolean Algebra and Reduction Techniques
Karnaugh Map and Circuit Design.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
EET 1131 Unit 5 Boolean Algebra and Reduction Techniques
Boolean Algebra & Logic Gates
Combinational Circuits and Boolean
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Digital Logic.
Computer Architecture CST 250
Basics Combinational Circuits Sequential Circuits
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
BASIC & COMBINATIONAL LOGIC CIRCUIT
Digital Logic.
Logic Gates.
CS Chapter 3 (3A and ) – Part 2 of 5
Digital Logic.
Dr. Clincy Professor of CS
Logic Circuits I Lecture 3.
XOR, XNOR, and Binary Adders
Copyright © Cengage Learning. All rights reserved.
Combinational Logic Circuit
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
ECE 352 Digital System Fundamentals
Chapter 3 – Describing Logic Circuits
Circuit Simplification and
Presentation transcript:

1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment 3 Group Project Group 14 Lau Hing Tong ( )

2 Modern digital computers are constructed making use of many integrated circuits or ICs. Integrated circuits are also known as silicon chips, micro chips or chips.

3 One important device inside chips is a tiny electronic component called a transistor. Each transistor acts as a switch that is capable of switching electronic signals on and off millions of times a second. The transistors form the main components inside the chips and are used extensively in one form or another to make up the logic gates inside these chips.

4 A logic gate is a circuit designed to perform specific functions such as AND, OR and NOT. logic circuit A B inputs X output A truth table is a tabular layout which shows the relationship between the output from a logic circuit and all possible inputs to the circuit.

5 NOT gate is the simplest because it has only one input and one output. A X A simplified truth table is necessary because for one input we have only two possible states i.e. 0 and 1. NOT gate is also known as an inverter. The symbol for the NOT operation is denoted by ‘¯’. Hence the shorthand way of writing NOT A is:

6 The circuit symbol for an AND gate is shown on the right. A B X The AND gate derives its name from the fact that we get an output of 1 only when both of the inputs A AND B are at 1. The symbol for the AND operation is denoted by ‘’. The output X from the AND gate is written as X = AB.

7 The circuit symbol for an OR gate is shown on the right. A B X The OR gate derives its name from the fact that we get an output of 1 whenever the inputs A or B or both are at 1. The symbol for the OR operation is denoted by ‘+’. The output X from the OR gate is written as X = A+B.

8 The circuit symbol for an XOR gate is shown on the right. A B X The XOR gate derives its name from the fact that we get an output of 1 when the inputs are different or not equivalent. The symbol for the XOR operation is denoted by ‘  ’. The output X from the XOR gate is written as X = A  B.

9 A Boolean function has one or more input variables and yields a result that depends only on values of these variables. To implement a circuit for any Boolean function: 1. write down the truth table for the function, 2. provide NOT gates to yield the complement of each input, 3. draw an AND gate for each term with a 1 in the result, 4. wire the AND gates to the appropriate inputs, and 5. feed the output of all the AND gates into an OR gate.

10 The circuit symbol for a NAND gate is shown on the right. A B X The NAND gate is a combination of an AND gate followed by a NOT gate. Hence the name NAND (Not AND). The output X from the NAND gate is written as

11 The circuit symbol for a NOR gate is shown on the right. A B X The NOR gate is a combination of an OR gate followed by a NOT gate. Hence the name NOR (Not OR). The output X from the NOR gate is written as

12 We have shown that any Boolean function can be implemented using NOT, AND and OR gates. However, for reasons of efficiency and economy, it is better to implement circuits using only a single type of gate. Using NAND gates only or NOR gates only can simulate a NOT gate, an AND gate and an OR gate. Hence computers are based on NAND and NOR gates rather than the more familiar AND gates and OR gates. So it is straightforward to convert circuits generated by the preceding algorithm to pure NAND or pure NOR form.

13 Boolean algebra is a form of algebra that helps us deal with truth tables and enables us to simplify expressions. Some basic laws of Boolean algebra will now be stated. These laws can be proved by using truth tables. 1. Commutative laws 2. Associative laws

14 3. Distributive laws 4. Tautology laws 5. Absorption laws 6. Common sense number

15 7. Double complement laws 8. De Morgan’s law This is a very powerful law in Boolean algebra. The easiest way of understanding and remembering De Morgan’s law is as follows: NOT the individual terms. Change the sign. Then NOT the lot.

16 Simplify Example 1 Solution: Commutative laws Associative laws Tautology laws

17 Example 2 Simplify Solution: Add a term Factorise Tautology laws De Morgan’s law

18 Karnaugh map is an useful aid to simplify additions of products. It is simply a convenient tabular arrangement of a Venn diagram. Consider the arrangement of four cells shown on the right. The numbers along the top of the boxes represent A. Therefore 0 means NOT A, and 1 means A. Similarly, the numbers down the left-hand side represent B. We can therefore uniquely identify each cell. For example, the top left-hand cell would be called A B

19 We now consider four variables instead of two. The arrangement is shown below. AB CD If we choose the third cell from the left on the top row, then we can see that both A AND B are 1 (from 11 at the top), and both C AND D are 0 (from the 00 at the side). Hence the name of the cell is

20 We will start by considering a 4-variable Karnaugh map and the problem of simplifying the following expression: To fill in the K-map we proceed through the above expression from left to right. From the first part of the expression, we get therefore a 1 goes into the 0100 cell.

21 From the second part of the expression, we get therefore a 1 goes into the 0101 cell. The other two 1s are filled in using the third and fourth parts of the Boolean expression. When you have finished with all the terms, 0s are put in all the other cells. AB CD

22 AB CD From the Karnaugh Map, it is obvious that Cs and Ds do not matter, but ‘A must be 0’ AND ‘B must be 1’. Therefore the simplified expression is

23 Half adder is a circuit which performs the addition of two binary digits. We will now design a simple circuit to add together the two binary digits A and B, and produce the correct answer which we have called sum S. The circuit will also produce a carry C if necessary.

24 From the algorithm we learned before, we get and Hence the circuit is A B S C

25 Half adder can only perform the addition of two binary digits. Therefore if we are to add together groups of binary digits we need to be able to deal with three inputs. They are the two binary digits A and B to be added plus a carry in P from the previous column. The full adder is able to cope with all three inputs and has two outputs: sum S and carry out C.

26 The truth table for the full adder is therefore as follows:

27 From the algorithm we learned before, we get and Hence the circuit is A B S C P

28 This is the end of the presentation program.

29 This slide show is produced by Group 14 using Chinese Microsoft PowerPoint 97. There is only one member in Group 14: Lau Hing Tong ( ) Thank you