Digital Electronics and Computer Interfacing

Slides:



Advertisements
Similar presentations
Part 4: combinational devices
Advertisements

ADDER, HALF ADDER & FULL ADDER
Cs 1110 Ch 4-1 Combinational Logic. ° Introduction Logic circuits for digital systems may be: °2°2 combinational sequential OR A combinational circuit.
Combinational Circuits
Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
ECE 331 – Digital System Design
ECE 301 – Digital Electronics
ECE 301 – Digital Electronics
Combinational circuits
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
 Arithmetic circuit  Addition  Subtraction  Division  Multiplication.
CS 105 Digital Logic Design
Decoders and Multiplexers Prof. Sin-Min Lee Department of Computer Science San Jose State University.
ReVieW Combinational & Sequential Logic Circuit EKT 221 / 4 DIGITAL ELECTRONICS II.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Combinational and Sequential Logic Circuits.
Binary Addition CSC 103 September 17, 2007.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
ECE 3130 – Digital Electronics and Design
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
CS1Q Computer Systems Lecture 9 Simon Gay. Lecture 9CS1Q Computer Systems - Simon Gay2 Addition We want to be able to do arithmetic on computers and therefore.
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.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
9/15/09 - L15 Decoders, Multiplexers Copyright Joanne DeGroat, ECE, OSU1 Decoders and Multiplexer Circuits.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
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.
1 CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits 4-1,2: Iterative Combinational Circuits and Binary Adders.
Universal college of engineering & technology. .By Harsh Patel)
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Logic and computers 2/6/12. Binary Arithmetic /6/ Only two digits: the bits 0 and 1 (Think: 0 = F, 1.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 7 Dr. Shi Dept. of Electrical and Computer Engineering.
Computer Science 101 More Devices: Arithmetic. From 1-Bit Equality to N-Bit Equality = A B A = B Two bit strings.
Computer Architecture
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
Complex Combinational Circuits Binary Adders Key to enterprise: Addition table also a truth table S i = C i 'A i B i ' + C i 'A i 'B i + C i A i 'B i '+
Arithmetic Logic Unit (ALU) Introduction to Computer Yung-Yu Chuang with slides by Sedgewick & Wayne ( introcs.cs.princeton.edu ), Nisan & Schocken (
Chapter 3 Digital Logic Structures
MSI Combinational logic circuits
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
CS151 Introduction to Digital Design Chapter 4: Arithmetic Functions and HDLs 4-1: Iterative Combinational Circuits 4-2: Binary Adders 1Created by: Ms.Amany.
President UniversityErwin SitompulDigital Systems 7/1 Lecture 7 Digital Systems Dr.-Ing. Erwin Sitompul President University
Winter 2016CISC101 - Prof. McLeod1 Today How transistors can carry out commands in a CPU. For example, how to add two integers in an integrated circuit.
Programming for GCSE Topic 9.2: Circuits for Adding T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen.
ETE 204 – Digital Electronics Combinational Logic Design Single-bit and Multiple-bit Adder Circuits [Lecture: 9] Instructor: Sajib Roy Lecturer, ETE,ULAB.
ECEN 248 Lab 3: Study and Implementation of Adders Dept. of Electrical and Computer Engineering.
Gunjeet Kaur Dronacharya Group of Institutions. Binary Adder-Subtractor A combinational circuit that performs the addition of two bits is called a half.
Combinational Circuits
ECE 3130 Digital Electronics and Design
ECE 3130 Digital Electronics and Design
Digital Systems Section 8 Multiplexers. Digital Systems Section 8 Multiplexers.
Combinational Circuits
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
Unit5 Combinational circuit and instrumentation system.
Week 7: Gates and Circuits: PART II
Digital Logic.
Number Systems and Circuits for Addition
Logic Gates.
CSE 140L Discussion 3 CK Cheng and Thomas Weng
Digital Logic.
COMS 361 Computer Organization
DIGITAL ELECTRONICS B.SC FY
Combinational Circuits
Electronics for Physicists
XOR Function Logic Symbol  Description  Truth Table 
Computer Architecture
Presentation transcript:

Digital Electronics and Computer Interfacing Tim Mewes 3. Digital Electronics

Digital Electronics and Computer Interfacing 3.5 Adder An adder is a device that will calculate the sum of two numbers In digital electronics an adder needs to be able to add two binary numbers Idea: create an adder for one bit numbers – numbers with more bits can then be added by chaining multiple adders together Digital Electronics and Computer Interfacing

Digital Electronics and Computer Interfacing 3.5.1 Half Adder Two input bits A and B and two outputs: the sum S and the carry output Co Truth table Problem: how to use the carry output for the next bit?! Digital Electronics and Computer Interfacing

3.5.2 Full Adder Takes three input bits A, B and the input carry Ci Has again two outputs the sum S and the carry output Co Truth table How to add two n-bit numbers?! Digital Electronics and Computer Interfacing

Digital Electronics and Computer Interfacing 3.5.3 Ripple carry adder Chain multiple 1 bit full adders – each carry bit ripples to the next full adder 1 bit full adder Ci A (bit n) B (bit n) Co S (bit n) 1 bit full adder Ci A (bit 1) B (bit 1) Co S (bit 1) 1 bit full adder Ci A (bit 0) B (bit 0) Co S (bit 0) … If the most significant bit produces a carry output an overflow has occurred Digital Electronics and Computer Interfacing

3.6.1 Digital 2 Channel Multiplexer Multiplexer outputs one of its inputs A or B depending on a third input S A B S Q S=0 selects A S=1 selects B Digital Electronics and Computer Interfacing

3.6 Multiplexer A multiplexer combines multiple inputs into one single output What is it good for? Transmit multiple data streams over one physical link Practical example: telephone Synchronized switches Digital Electronics and Computer Interfacing

3.6.2 Digital 2n channel multiplexer 2n-Channel multiplexer outputs one of its 2n inputs (I0- I2n-1) depending on the n inputs (S0-Sn-1) I0 I1 Q . . . I2n-1 … S0 S1 Sn-1 Digital Electronics and Computer Interfacing

3.6.2 Digital 2n channel multiplexer Example n=2  2n=4 Channel multiplexer X: Don’t care Digital Electronics and Computer Interfacing

3.6.2 Digital 2n channel multiplexer A 2n channel multiplexer is more: You can create any logic function with n inputs!! Put your own example here Digital Electronics and Computer Interfacing

3.6.2 Digital 2n channel multiplexer A 2n channel multiplexer is more: You can create any logic function with n inputs!! Example 1: AND I0 S1 Q I1 I2 I3 S0 3V Digital Electronics and Computer Interfacing

3.6.2 Digital 2n channel multiplexer Example 2: XOR I0 S1 Q I1 I2 I3 S0 3V Digital Electronics and Computer Interfacing

Precaution: turn fully counter clockwise! Vcc=5 V GND 8 Boolean indicators 7486 horizontal lines are connected 74151 Leave in +5 position 8 Boolean controls Digital Electronics and Computer Interfacing