Assembly Lab1 - Review.

Slides:



Advertisements
Similar presentations
Digital Logic Design Gate-Level Minimization
Advertisements

Combinational Logic Circuits Chapter 2 Mano and Kime.
ECE 238L Computer Logic Design Spring 2010
Chapter 2 Logic Circuits.
التصميم المنطقي Second Course
Boolean Algebra and Combinational Logic
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
CHAPTER 3 Digital Logic Structures
1 Digital Logic Circuits Computer Organization Computer Architectures Lab Logic Gates Boolean Algebra Map Specification Combinational Circuits Flip-Flops.
Computer Engineering (Logic Circuits) (Karnaugh Map)
Chapter 2: Combinatorial Logic Circuits Illustration Pg. 32 Logic Circuit Diagrams - Circuit Optimization -2,3,4 level maps 48 elements Optimized to 25.
Chapter 2: Boolean Algebra and Logic Functions
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 DIGITAL LOGIC CIRCUITS Dept. of Computer Science Engineering Islamic Azad University.
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)
Logic Design A Review. Binary numbers Binary numbers to decimal  Binary 2 decimal  Decimal 2 binary.
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Gate-Level Minimization Chapter 3. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. Circuit Optimization Logic and Computer Design Fundamentals.
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.
Chapter 3 Gate-Level Minimization
ECE 2110: Introduction to Digital Systems PoS minimization Don’t care conditions.
ECE 3110: Introduction to Digital Systems Symplifying Products of sums using Karnaugh Maps.
Circuit Minimization. It is often uneconomical to realize a logic directly from the first logic expression that pops into your head. Canonical sum and.
PRASAD A. PAWASKAR SPN. NO DETE 2 SEMESTER lec1-11.
Gate-Level Minimization
Chapter3: Gate-Level Minimization Part 1 Origionally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
LOGIC GATES & BOOLEAN ALGEBRA
ECE 301 – Digital Electronics Basic Logic Operations, Boolean Expressions, and Boolean Algebra (Lecture #3)
1 EG 32 Digital Electronics Thought for the day You learn from your mistakes..... So make as many as you can and you will eventually know everything.
Chap 2. Combinational Logic Circuits
Karnaugh Maps (K-Maps)
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Karnaugh Map and Circuit Design.
1 Digital Logic Circuits Computer Organization Computer Architectures Lab Logic Gates Boolean Algebra Map Specification Combinational Circuits Flip-Flops.
Karnaugh Map (K-Map) By Dr. M. Khamis Mrs. Dua’a Al Sinari.
Digital Logic (Karnaugh Map). Karnaugh Maps Karnaugh maps (K-maps) are graphical representations of boolean functions. One map cell corresponds to a row.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
Computer Architecture & Operations I
Boolean Algebra & Logic Gates
CHAPTER 3 Simplification of Boolean Functions
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Digital Logic Design.
DIGITAL LOGIC CIRCUITS
ECE 2110: Introduction to Digital Systems
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
DIGITAL LOGIC CIRCUITS
Dr. Clincy Professor of CS
Boolean Algebra and Combinational Logic
DIGITAL LOGIC CIRCUITS
Reading: Hambley Chapters
INSIDE THE CPU.
17-Nov-18 Logic Algebra 1 Combinational logic.
Boolean Algebra.
Lecture 4 Sums of Product Circuits Simplification
Dr. Clincy Professor of CS
Digital Logic Design I Gate-Level Minimization
Chapter 3 Gate-level Minimization.
MINTERMS and MAXTERMS Week 3
13 Digital Logic Circuits.
Dr. Clincy Professor of CS
CS Chapter 3 (3A and ) – Part 3 of 5
Dr. Clincy Professor of CS
Overview Part 2 – Circuit Optimization
Circuit Simplification and
Computer Architecture
Presentation transcript:

Assembly Lab1 - Review

Logistics Lecture Discusses the computer architecture and how an assembly language has been made, with samples on Manu computer. Lab Practice on one of many assembly languages, namely : 8086 Assembly language

Logistics Year Work Practical Attendance Assignments 35 Marks (Practical + Midterm + Assignments + Attendance) Practical Lab tasks + Final Project Attendance Will be using QR codes. Will be online for review Will only account if lab task is made. Assignments Will be collected electronically, One cheating incident will result in 0 year marks.

Logistics Course materials/forum found on Bonus for top participants. https://piazza.com/faculty_of_computer_and_information_sciences/fall2013/csw353/home Access Code: csw353 Bonus for top participants.

Logic Design Review

COMBINATIONAL GATES Name Symbol Function Truth Table AND OR I A X = A • B X or B X = AB A B X AND 0 0 0 0 1 0 1 0 0 1 1 1 0 1 1 1 0 1 A B X A X X = A + B B OR A X I A X X = A 0 1 1 0 A X 0 0 1 1 Buffer A X X = A A B X A X X = (AB)’ B NAND 0 0 1 0 1 1 1 0 1 1 1 0 A B X A X X = (A + B)’ B NOR 0 0 1 0 1 0 1 0 0 1 1 0 A X = A  B X or B X = A’B + AB’ XOR Exclusive OR A B X 0 0 0 0 1 1 1 0 1 1 1 0 XNOR A X = (A  B)’ X or B X = A’B’+ AB A B X 0 0 1 0 1 0 1 0 0 1 1 1 Exclusive NOR or Equivalence

BASIC IDENTITIES OF BOOLEAN ALGEBRA [1] x + 0 = x [3] x + 1 = 1 [5] x + x = x [7] x + x’ = 1 [9] x + y = y + x [11] x + (y + z) = (x + y) + z [13] x(y + z) = xy +xz [15] (x + y)’ = x’y’ [17] (x’)’ = x [2] x • 0 = 0 [4] x • 1 = x [6] x • x = x [8] x • x’ = 0 [10] xy = yx [12] x(yz) = (xy)z [14] x + yz = (x + y)(x + z) [16] (xy)’ = x’ + y’ [15] and [16] : De Morgan’s Theorem

SIMPLIFICATION Truth Boolean Table Function Map Simplification SIMPLIFICATION Truth Table Boolean Function Unique Many different expressions exist Simplification from Boolean function - Finding an equivalent expression that is least expensive to implement - For a simple function, it is possible to obtain a simple expression for low cost implementation - But, with complex functions, it is a very difficult task Karnaugh Map(K-map) is a simple procedure for simplifying Boolean expressions. Truth Table Simplified Boolean Function Karnaugh Map Boolean function

Map Simplification KARNAUGH MAP Karnaugh Map for an n-input digital logic circuit (n-variable sum-of-products form of Boolean Function, or Truth Table) is - Rectangle divided into 2n cells - Each cell is associated with a Minterm - An output(function) value for each input value associated with a mintern is written in the cell representing the minterm --> 1-cell, 0-cell Each Minterm is identified by a decimal number whose binary representation is identical to the binary interpretation of the input values of the minterm. Karnaugh Map x x Identification of the cell value of F x F 0 1 1 0 1 1 1 1 F(x) =  (1) 1-cell y 0 1 x y F 0 0 0 0 1 1 1 0 1 1 1 1 x y 0 1 0 1 2 3 x 0 1 1 1 1 0 F(x,y) =  (1,2)

Map Simplification KARNAUGH MAP x y z F y 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 0 yz yz x 00 01 11 10 x 00 01 11 10 0 1 3 2 4 5 7 6 0 1 0 1 x 1 1 1 0 0 0 z F(x,y,z) =  (1,2,4) w wx u v w x F uv 00 01 11 10 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 1 0 1 1 1 0 1 0 0 0 1 1 0 0 1 1 1 0 1 0 0 1 0 1 1 1 1 1 0 0 0 1 1 0 1 0 1 1 1 0 1 1 1 1 1 0 00 0 1 3 2 v 01 4 5 7 6 11 12 13 15 14 u 10 8 9 11 10 x wx 00 01 11 10 uv 00 0 1 1 0 01 0 0 0 1 11 0 0 0 1 10 1 1 1 0 F(u,v,w,x) =  (1,3,6,8,9,11,14)

MAP SIMPLIFICATION - 2 ADJACENT CELLS - Rule: xy’ +xy = x(y+y’) = x Adjacent cells - binary identifications are different in one bit --> minterms associated with the adjacent cells have one variable complemented each other Cells (1,0) and (1,1) are adjacent Minterms for (1,0) and (1,1) are x • y’ --> x=1, y=0 x • y --> x=1, y=1 F = xy’+ xy can be reduced to F = x From the map y x 0 1 0 0 2 adjacent cells xy’ and xy --> merge them to a larger cell x 1 1 1 F(x,y) =  (2,3) = xy’+ xy = x

MAP SIMPLIFICATION - MORE THAN 2 CELLS - uv wx 1 1 1 1 1 1 1 1 1 1 1 1 1 1 u v w x u’v’ uw u’x’ v’x vw’ u’v’w’x’ + u’v’w’x + u’v’wx + u’v’wx’ = u’v’w’(x’+x) + u’v’w(x+x’) = u’v’w’ + u’v’w = u’v’(w’+w) = u’v’ u’v’w’x’+u’v’w’x+u’vw’x’+u’vw’x+uvw’x’+uvw’x+uv’w’x’+uv’w’x = u’v’w’(x’+x) + u’vw’(x’+x) + uvw’(x’+x) + uv’w’(x’+x) = u’(v’+v)w’ + u(v’+v)w’ = (u’+u)w’ = w’ u v w x uv wx 1 1 1 1 1 1 w’ V’

MAP SIMPLIFICATION wx uv 00 01 11 10 w 00 1 1 0 1 1 1 1 01 0 0 0 0 v 00 01 11 10 w 00 1 1 0 1 1 1 1 01 0 0 0 0 v 11 0 1 1 0 1 1 u 10 0 1 0 0 1 x F(u,v,w,x) =  (0,1,2,9,13,15) (0,1), (0,2), (0,4), (0,8) Adjacent Cells of 1 Adjacent Cells of 0 (1,0), (1,3), (1,5), (1,9) ... Adjacent Cells of 15 (15,7), (15,11), (15,13), (15,14) Merge (0,1) and (0,2) --> u’v’w’ + u’v’x’ Merge (1,9) --> v’w’x Merge (9,13) --> uw’x Merge (13,15) --> uvx F = u’v’w’ + u’v’x’ + v’w’x + uw’x + uvx But (9,13) is covered by (1,9) and (13,15) F = u’v’x’ + v’w’x + uvx

IMPLEMENTATION OF K-MAPS - Sum-of-Products Form - Map Simplification IMPLEMENTATION OF K-MAPS - Sum-of-Products Form - Logic function represented by a Karnaugh map can be implemented in the form of I-AND-OR A cell or a collection of the adjacent 1-cells can be realized by an AND gate, with some inversion of the input variables. y x’ y 1 1 x’ z’ y’ x’ z’ x 1  y x z’ 1 1 z y z’ z’ 1 F(x,y,z) =  (0,2,6) x’ y x z’ y’ F z I AND OR 

IMPLEMENTATION OF K-MAPS - Product-of-Sums Form - Map Simplification IMPLEMENTATION OF K-MAPS - Product-of-Sums Form - Logic function represented by a Karnaugh map can be implemented in the form of I-OR-AND If we implement a Karnaugh map using 0-cells, the complement of F, i.e., F’, can be obtained. Thus, by complementing F’ using DeMorgan’s theorem F can be obtained F(x,y,z) = (0,2,6) y F’ = xy’ + z F = (xy’)z’ = (x’ + y)z’ z 1 1 x 1 x z y’ x y F z I OR AND

IMPLEMENTATION OF K-MAPS - Don’t-Care Conditions - Map Simplification IMPLEMENTATION OF K-MAPS - Don’t-Care Conditions - In some logic circuits, the output responses for some input conditions are don’t care whether they are 1 or 0. In K-maps, don’t-care conditions are represented by d’s in the corresponding cells. Don’t-care conditions are useful in minimizing the logic functions using K-map. - Can be considered either 1 or 0 - Thus increases the chances of merging cells into the larger cells --> Reduce the number of variables in the product terms y x’ 1 X X 1 x X 1 yz’ z x F y z

D - Flip Flop

JK- Flip Flop

Questions

Answers