Hardware Logic Diagrams - The Basics - Marshall Thomas CIS 21JA – Fall Quarter 2012.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
Chapter 4 Gates and Circuits.
30 September 2004Comp 120 Fall September 2004 Chapter 4 – Logic Gates Read in Chapter 4 pages , , section 4.8 through top of page.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Logic Gates Combinational Circuits
The Laws of Logic: Boolean Algebra A State High Math Club Presentation START==TRUE.
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.
Binary Addition CSC 103 September 17, 2007.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
NOCTI Review Lesson 4 Objectives:
SUPLEMENTARY CHAPTER 1: An Introduction to Digital Logic The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
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.
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
Digital Logic Design Week 3
Complementary CMOS Logic Style Construction (cont.)
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
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.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
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.
Half Adder & Full Adder Patrick Marshall. Intro Adding binary digits Half adder Full adder Parallel adder (ripple carry) Arithmetic overflow.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
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.
1 The ALU l ALU includes combinational logic. –Combinational logic  a change in inputs directly causes a change in output, after a characteristic delay.
Explain Half Adder and Full Adder with Truth Table.
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.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Boolean Algebra & Logic Gates
Combinational Circuits and Boolean
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Chapter 3 Notes – Part II Review Questions
Boolean Algebra & De Morgan's Theorems
Lesson Objectives Aims Be able to define problems using Boolean logic
Logic Gates and Boolean Algebra
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
XOR, XNOR, and Binary Adders
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
Chapter 4 Gates and Circuits.
CSE 311 Foundations of Computing I
Circuits, Truth Tables & Boolean Algebra
CSE 370 – Winter Combinational Logic - 1
XOR, XNOR, & Binary Adders
For OCR GCSE Computing Unit 1 - Theory
Boolean Algebra.
Fundamentals of Computer Systems
Logic Gates.
Digital Logic.
Logic Gates.
GCSE Computer Science – Logic Gates & Boolean Expressions
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
XOR, XNOR, and Binary Adders
Circuits, Truth Tables & Boolean Algebra
Lecture 4 Logistics Last lecture --- Boolean algebra Today’s lecture
Special Gates Combinational Logic Gates
XOR Function Logic Symbol  Description  Truth Table 
XOR, XNOR, and Binary Adders
Introduction to Logic diagrams and truth tables
Introduction to Logic diagrams and truth tables
Presentation transcript:

Hardware Logic Diagrams - The Basics - Marshall Thomas CIS 21JA – Fall Quarter 2012

Objectives Explain some hardware concepts at a high level – appropriate for ASM SW Engineers. Show the graphical pictures that the hardware folks use to describe logic diagrams. Show how De Morgan’s theorem can be represented graphically. Explain the equations and “what is going on” in Lab 5

Terminology “High” => High voltage or “true” or “1” “Low” => Low voltage or “false” or “0”. These mean the same: => high, true, logical “1” => low, false, logical “0”. A means: A is true when it is low, sometimes written *A (over_scores are hard to type), not the same meaning as !A AdressBit0 means that AddressBit0 is true when this voltage is “false”, not the same in as !AddressBit0.

Voltage Levels There is uncertainty between what is “sent” and what is “received”. This uncertainty can and does happen! This is a problem for hardware folks.

Inversion at every gate This is “how the hardware works” This is the fastest way If there is an inverted and a non-inverted output, the inverted output is faster Easiest example is an “open collector” output R Input output +5V

Basic Gates / Symbols AND OR INVERTER NAND NOR  

NAND / “OR” Duality NAND Gate : If it takes two “highs” to get “low”. Doesn’t that mean that any low on any input input gives a high on the output? So, another way to draw the exact same hardware part is:

NOR / “AND” Duality NOR Gate: If any high gives a low, then doesn’t it take all low’s to give a high? Another way to draw the exact same physical part:

De Morgan’s Theorem A or B  A and B A and B  A or B Swap the bubbles and the symbols  

XOR Many students freak out about XOR, but is it not that complicated! If the 2 inputs are the same: you get ”false”, 0, or “even” If the 2 inputs are different: you get “true”, 1 or “odd”. It is as simple as that – think “odd” or “even” This simple thing can be used for numeric addition, calculating parity (the number of even or odd bits that are turned on in an variable), and even polynomial division!

Half Adder XOR Version Gate Version (same) A B Sum Carry ABsumCarry Even Odd A B Sum Carry Sum = (A+B) and AB Sum is “1” if A or B is true, unless: A and B are both true, Then sum=0 with carry

Full Adder Incorporates the Carry in This combines 2 half-adders with an “or ” A B C in Sum Cout = (A and B) or ( (A xor B) and Cin)) Cout= ab + bc + ac Cout Note: all Nand gates Sum=1 if A,B,C Are odd

Cout= ab + bc + ac The cascading XOR’s can do the sum: Sum is “1” if combination of (A,B,C) is odd, else sum is “0” 1+1 = 0 (sum is even) with carry 1+1+1= 1 (sum is odd) with carry The tricky part is the carry. We are adding 3 bits together, if any 2 of these bits are “1”, we get a carry. If all 3 are “1”, we still get a carry although the sum is different.

Full Adder Truth Table ABCinSum2 bit sum Cout Even => Sum =0 Odd => Sum =1 Cout if any 2 inputs are “1”