Boolean Algebra Variables: only 2 values (0,1)

Slides:



Advertisements
Similar presentations
ECE555 Lecture 8/9 Nam Sung Kim University of Wisconsin – Madison
Advertisements

The following 5 questions are about VOLTAGE DIVIDERS. You have 20 seconds for each question What is the voltage at the point X ? A9v B5v C0v D10v Question.
Inside the binary adder. Electro-mechanical relay A solid state relay is a switch that is controlled by a current. When current flows from A to B, the.
Escola Politécnica da Universidade de São Paulo GSEIS - LME Logic Synthesis in IC Design and Associated Tools Sequential Synthesis Wang Jiang Chau Grupo.
PIM ECMP Assert draft-hou-pim-ecmp-00 IETF 80, Prague.
Lab 8 : Multiplexer and Demultiplexer Systems:
COE 202: Digital Logic Design Memory and Programmable Logic Devices
Truth Tables and Logic Gates. What are Logic Gates? Logic gates are components used in making logic circuits. Each gate has one or more inputs and produces.
Lab02 :Logic Gate Fundamentals:
Addition and multiplication
Digital Logical Structures
Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Digital Logic.
Logic Circuits Situations to explain states What is a logic Gate
Logic Gates & Circuits. AND Gate Input AInput BOutput X AND Logic Gate AND Truth Table X = A. B AND Boolean Expression.
Module 3 Combinational and Sequential Logic Circuit By: Cesar Mendoza.
topics Logic gates Gates types Universal gates
Lecture 11-1 FPGA We have finished combinational circuits, and learned registers. Now are ready to see the inside of an FPGA.
Topics Adders Half Adder Full Adder Subtracter Half Subtracter
ASIC 121: Practical VHDL Digital Design for FPGAs Tutorial 2 October 4, 2006.
Chapter 4: Combinational Logic
Random-Access Memory (RAM)
Combinational Circuits
CS1104 – Computer Organization
ENGIN112 L15: Magnitude Comparator and Multiplexers October 6, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 15 Magnitude Comparators.
( ( ) quantum bits conventional bit
Adders Module M8.1 Section 6.2. Adders Half Adder Full Adder TTL Adder.
Combinatorial networks- II
Node Optimization. Simplification Represent each node in two level form Use espresso to minimize each node Several simplification procedures which vary.
KU College of Engineering Elec 204: Digital Systems Design
Digital Design: Combinational Logic Blocks
M. Mateen Yaqoob The University of Lahore Spring 2014.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
التصميم المنطقي Second Course
Combinational Logic Circuits Is the logic circuit where the output always depends on the inputs irrespective of the previous state with out the feed back.
1 Chapter 4 Combinational and Sequential Circuit.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Timing Sequential Logic Flip Flops Registers Memory State Machines.
Lecture 1: Introduction to Digital Logic Design CK Cheng Tuesday 4/1/02.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Timing Sequential Logic Flip Flops Registers Memory State Machines.
Multiplexer MUX. 2 Multiplexer Multiplexer (Selector)  2 n data inputs,  n control inputs,  1 output  Used to connect 2 n points to a single point.
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Dr. Ahmed El-Bialy, Dr. Sahar Fawzy Combinational Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
ROM & PLA Digital Logic And Computer Design
Encoders and Decoders. Encoding Suppose we have 8 input signals and only one amongst them is active at any point in time. – Clearly we can have 8 bits.
1 Lecture 9 Demultiplexers Programmable Logic Devices  Programmable logic array (PLA)  Programmable array logic (PAL)
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
Princess Sumaya University
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
ITEC 352 Lecture 3 Low level components(2). Low-level components Review Electricity Transistors Gates Really simple circuit.
Logic Design / Processor and Control Units Tony Diep.
CBP 2006Comp 4070 Concepts and Philosophy of Computing 1 Wrestling with Complex Stuff. With the Correct Approach, even the smallest guy will succeed!
Designing Combinational Logic Circuits
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices Multiplexers.
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Appendix C Basics of Logic Design. Appendix C — Logic Basic — 2 Logic Design Basics §4.2 Logic Design Conventions Objective: To understand how to build.
DIGITAL LOGIC CIRCUITS
DIGITAL LOGIC CIRCUITS
Digital Logic Last Time … This Time … Control Path, Arithmetic Ops a
ECE 434 Advanced Digital System L03
CPE/EE 422/522 Advanced Logic Design L02
Digital Logic Structures Logic gates & Boolean logic
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
Princess Sumaya University
CSCE 211: Digital Logic Design
CSCE 211: Digital Logic Design
Combinational Circuits
14 Digital Systems.
Presentation transcript:

Boolean Algebra Variables: only 2 values (0,1) Huntington’s (1804) axioms: 1 1 = 1 0 + 0 = 0 a 0 = 0 a + 1 = 1 a a’ = 0 a + a’ = 1 a b = b a a + b = b + a a(b+c)=ab+ac a+bc=(a+b)(a+c) Verification by truth table: abc (a+b)c ac+bc 000 0 0 001 0 0 010 0 0 011 1 1 100 0 0 101 1 1 110 0 0 111 1 1 Application to electric switches (open - 0, closed - 1): a L c 220V~ b L = (a + b)c = ac + bc a c L 220V~ b c L = ac + bc Every logical function can be specified by truth table and implemented as sum of product form,e.g. L = a’bc + ab’c + abc.

Combinational Circuits Output is direct function of inputs a a’ NOT Switch light L implemented by gates L = a’bc + ab’c + abc sum of products. a b a+b a b c L OR a b ab Function presentation by Karnough map every product term has a field, and neighboring fields differ by only one variable. Example (three input variables): L = abc + ab’c + a’bc = abc + ab’c + abc + a’bc = ac(b + b’) + bc(a + a’) = ac + bc = (a + b)c b a 1 1 c a a+b 1 b L c L

Decoders and Multiplexers Decoder has n inputs and 2n outputs: A B BA 00 01 10 11 Mux determines which input will connect to output: A B C D A B C D 1 1 1 1 S[1:0] 2 S 1 OUT OUT

Binary Adder Design a0 a3 a2 a1 b3 b2 b1 b0 c3 c2 c1 c0 c4 s3 s2 s1 s0 co ci a b ci s co Truth Table a b ci s co 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 1 1 Karnough maps a b ci a b ci 1 1 1 1 1 1 1 1 s = ab ci +ab ci’ +a’b’ ci +a’b’ ci’= (ab + a’b’)ci + (ab + a’b’)ci’ = (a + b’) + ci = a + b’ + ci co = ab + aci + bci

Programmable Logic Arrays PLA Any logical function can be implemented by two levels circuits: ANDs and ORs. A B C X Y

Design of the RS flip-flop c b a p x 1 a: 1 0 a: 0 1 b: 1 0 b: 0 1 a b CC p c a b p 0 0 stable 0 1 0 1 0 1 1 1 x c b a x 1 p = a + b’c b’ p c a a b p’ a b p p time

Registers One bit register = memory cell WE = Clock pulse in bit gate out bit Eight bit register b7 b6 b5 b4 b3 b2 b1 b0 WE

The Concept of Memory WE N address lines (bus) address space = 2N Memory as array of registers: address space and addressability address decoder memory 0 WE memory 1 memory 2 N address lines (bus) address space = 2N memory 3 memory 4 memory 5 memory 6 memory 7 M data lines (bus)

Memory details address word select word WE input bits write enable Decoder asserts one of the word select lines, based on address. Word select activates one of the output AND gates, which drives the selected data to the output OR gate. (For a read, this is basically a MUX -- decoder ANDed with signals, results ORed together.) When writing, the only WE bits for the proper word are asserted (based on decoder again). output bits

Design of the JK flip-flop master slave J A B Q Q’ A B K CL B closes A closes A opens master accepts B opens slave accepts At no time the path between inputs JK and outputs QQ’ is closed.

Synchronous Sequential Circuit Output Input CC Next state Present state A B clock * Output is a function of Input and Present state. * Next state is a function of Input and Present state. * Present state is delayed Next state.

Traffic warning sign All off 1,2 on 00 01 10 11 0,1 1 1 2 3 4 5 1,2,3,4 00 01 10 11 0,1 1 1,2 1 2 3 4 5 SW SW 3,4 Combinational Circuit 5 SW E1 E1+ E2 E2+ State SW current next output SW E1 E2 E1+ E2+ 1,2 3,4 5 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 1 1 0 1 0 0 1 1 0 1 1 1 1 0 1 1 1 0 0 1 1 1 Cl E1 E2 1,2 3,4 5 E1+ E2+ E1 E2 SW E1+ = SW E1’ E2 + SW E1 E2’ E2+ = SW E1’ E2’ + SW E1 E2’ 1,2 = E1+ + SW E1 E2 3,4 = E1+ + SW E1 E2 5 = SW E1 E2 Combinational Circuit

Reversible counter modulo 5 000 110 010 011 001 1 a b c Next State 1 x a b c I 1 x a b c I 1 x a b c I a+ = a’bc’I’ + b’c’I b+ = (c + a’b) I’ + c’I c+ = ab’ + b’I’ + a’b I a+ = a’bc’I’ + b’c’I b+ = (c + a’b) I’ + c’I c+ = ab’ + b’I’ + a’b I a+ b+ c+ a b c I CL