מבנה מחשב תרגול 1 מבוא, אריתמטיקה בסיסית – ייצוג גרפי.

Slides:



Advertisements
Similar presentations
Prof. Sin-Min Lee Department of Computer Science
Advertisements

Gate-Level Minimization
Appendix A Logic Circuits. Logic circuits Operate on binary variables that assume one of two distinct values, usually called 0 and 1 Implement functions.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
Boolean Algebra and Combinational Logic
1 Digital Logic
CHAPTER 3 Digital Logic Structures
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Propositional Calculus Math Foundations of Computer Science.
Chapter 12 Digital Logic Circuit Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
מבנה מחשב תרגול 2 מונים. Counters תירגול 2 - מבנה מחשב3 Edge Triggering Important Issue:  The T Flip-Flop and the JK Flip-Flop 1-1 option are not stable.
Boolean Algebra and Logic Simplification
Logic Circuits In today’s lesson we will look at: the symbols for NOT, AND, OR and EOR using truth tables to represent logic circuits two new operators.
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
Chap 4. Sequential Circuits
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
1 Boolean Algebra & Logic Gates. 2 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Chap 4. Sequential Circuits
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
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.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
מבנה מחשב תרגול 2. 2 Boolean AND Operation Truth Table Equivalent Gate Different notations:
Circuit Minimization. It is often uneconomical to realize a logic directly from the first logic expression that pops into your head. Canonical sum and.
CH51 Chapter 5 Combinational Logic By Taweesak Reungpeerakul.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Figure 4–1 Application of commutative law of addition. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
Boolean Algebra and Reduction Techniques
1 Digital Logic Design Week 5&6 cont’d Revision for Quiz 2/Exam.
Logic Simplification-Using K-Maps
1 3- De-Morgan’s Theorems 1.The complement of a product of variables is equal to the sum of the complements of the variables. 2. The complement of a sum.
Revision Mid 1 Prof. Sin-Min Lee Department of Computer Science.
Sequential circuit analysis1 Sequential Circuit Analysis Last time we started talking about latches and flip-flops, which are basic one-bit memory units.
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.
Digital Logic & Design Dr. Waseem Ikram Lecture 09.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
Introduction to the 1st theoretic Exercise
Assembly Lab1 - Review.
CHAPTER 3 Simplification of Boolean Functions
Logic Gates and Boolean Algebra
Transistors and Logic Circuits
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
ECE 2110: Introduction to Digital Systems
מבנה מחשב תרגול 3.
Lesson Objectives Aims Be able to define problems using Boolean logic
ECE 3110: Introduction to Digital Systems
Logic Gates.
FLIP FLOPS.
Boolean Algebra and Combinational Logic
Jeremy R. Johnson Wed. Sept. 29, 1999
Reading: Hambley Chapters
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Propositional Calculus: Boolean Algebra and Simplification
BASIC & COMBINATIONAL LOGIC CIRCUIT
Logic Gates.
Lecture 6: Universal Gates
13 Digital Logic Circuits.
Logic Gates.
CS 140 Lecture 6: Other Types of Gates
Flip-Flops.
ECE 352 Digital System Fundamentals
Analysis of Logic Circuits Example 1
Analysis of Logic Circuits Example 1
Laws & Rules of Boolean Algebra
Circuit Simplification and
Computer Architecture
ECE 120 Midterm 2 HKN Review Session.
Presentation transcript:

מבנה מחשב תרגול 1 מבוא, אריתמטיקה בסיסית – ייצוג גרפי

Logical Operators

תירגול 1 - מבנה מחשב3 Boolean AND Operation Truth Table Equivalent Gate Different notations:

תירגול 1 - מבנה מחשב4 Boolean OR Operation Truth Table Equivalent Gate Different notations:

תירגול 1 - מבנה מחשב5 Boolean NOT Operation Truth Table Equivalent Gate Different notations:

תירגול 1 - מבנה מחשב6 Boolean NAND Operation Truth Table Equivalent Gate

תירגול 1 - מבנה מחשב7 Boolean NOR Operation Truth Table Equivalent Gate

תירגול 1 - מבנה מחשב8 Boolean XOR Operation Truth Table Equivalent Gate Different notations:

תירגול 1 - מבנה מחשב9 How to implement XOR? Which is Better?

תירגול 1 - מבנה מחשב10 Boolean Equalities (1) Rules of Associativity, Commutation. Other rules:

תירגול 1 - מבנה מחשב11 Boolean Equalities (2) Distribution deMorgan

תירגול 1 - מבנה מחשב12 Example (1): Simplify the expression Compare number of gates

תירגול 1 - מבנה מחשב13 Example (2): Simplify the expression

תירגול 1 - מבנה מחשב14 Evaluating an Expression (1) Let’s look at the first expression: 

תירגול 1 - מבנה מחשב15 Evaluating an Expression (2) Let’s look at the first expression:  1 1 =1 1 1

תירגול 1 - מבנה מחשב16 Truth Table We get Different Notation for

תירגול 1 - מבנה מחשב17 Disjunctive Normal Form It’s easy to transform a DNF formula to its equivalent gates’ representation

תירגול 1 - מבנה מחשב18 Disjunctive Normal Form

תירגול 1 - מבנה מחשב19 Back to the Truth Table Can we make the simplification process more simple? Yes, using Karnaugh Maps

תירגול 1 - מבנה מחשב20 Karnaugh Maps (1) We’ll arrange the truth table in a different manner

תירגול 1 - מבנה מחשב21 Karnaugh Maps (2) We’ll arrange the truth table in a different manner How about The areas?

תירגול 1 - מבנה מחשב22 Karnaugh Maps (3) Step 1: We’ll assign the values in the new table

תירגול 1 - מבנה מחשב23 Karnaugh Maps (4) Step 2: We’ll try to catch all the 1’s with the largest, fewest rectangles

תירגול 1 - מבנה מחשב24 Karnaugh Maps (5) Step 3: Every rectangle gives us a clause in the simplified formula

תירגול 1 - מבנה מחשב25 Karnaugh Maps (6) Back to example 2:  We’ll use a 4-variable Karnaugh Map:

תירגול 1 - מבנה מחשב26 “Don’t Cares” Sometimes not all inputs are possible (can actually happen) in a sub-part of a function designed from logical gates. So it really doesn’t matter what we’ll write in its truth table at the corresponding line.

תירגול 1 - מבנה מחשב27 “Don’t Cares” example X Assume a (1,1,0) input can’t really occur. We can mark this situation as “Don’t Care”

תירגול 1 - מבנה מחשב28 Karnaugh Maps with Don’t Cares We can choose the Don’t Care location to be considered as 1 or 0, depending what will be more efficient to us X What is more Efficient here?

תירגול 1 - מבנה מחשב29 Flip-Flops What happens if we create a circle in the logic gates diagram? Consider the following diagram: This is a S-R Flip-Flop

תירגול 1 - מבנה מחשב30 S-R Flip-Flop S-R Flip Flop truth table: Save

תירגול 1 - מבנה מחשב31 S-R Flip-Flop With a Clock The CPU is timed by the pulses of a clock. Maintaining the FF contents when the clock is between pulses (i.e. outputting 0) using the S-R FF:

תירגול 1 - מבנה מחשב32 D-Flip-Flop (1) On each clock pulse the FF should be meaningful Therefore the R and S lines should be opposite If so do we still need both of them?

תירגול 1 - מבנה מחשב33 D Flip-Flop (2) D Flip-Flop when the clock is pulsing:

תירגול 1 - מבנה מחשב34 J-K Flip-Flop (with Clock) Back to S-R Flip-Flop… How can we solve the 1-1 problem ?

תירגול 1 - מבנה מחשב35 J-K Flip-Flop (2) J-K Flip-Flop truth table when clock is pulsing: KJ Toggle Save

תירגול 1 - מבנה מחשב36 T Flip-Flop (Based on J-K) But since we have the “toggle” attribute, do we really need the rest?

תירגול 1 - מבנה מחשב37 T Flip-Flop (2) T Flip-Flop when the clock is pulsing: