Chapter 4: Combinational Logic

Slides:



Advertisements
Similar presentations
Digital Techniques Fall 2007 André Deutz, Leiden University
Advertisements

컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Lecture 23: Registers and Counters (2)
Modular Combinational Logic
Registers and Counters
التصميم المنطقي Second Course
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
1 Fundamentals of Computer Science Sequential Circuits.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
EE2420 – Digital Logic Summer II 2013
Module 12.  In Module 9, 10, 11, you have been introduced to examples of combinational logic circuits whereby the outputs are entirely dependent on the.
1 Lecture 20 Sequential Circuits: Latches. 2 Overview °Circuits require memory to store intermediate data °Sequential circuits use a periodic signal to.
Circuits require memory to store intermediate data
Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
The Map Method Boolean expressions may be simplified by algebraic means as discussed in Previous lecture However, this procedure of minimization is awkward.
11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.
Logic and Computer Design Fundamentals Registers and Counters
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Contemporary Logic Design Sequential Logic © R.H. Katz Transparency No Chapter #6: Sequential Logic Design Sequential Switching Networks.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Registers and Counters
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Test #2 Combinational Circuits – MUX Sequential Circuits – Latches – Flip-flops – Clocked Sequential Circuits – Registers/Shift Register – Counters – Memory.
COE 202: Digital Logic Design Sequential Circuits Part 1
Rabie A. Ramadan Lecture 3
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
Hamming Code,Decoders and D,T-flip flops Prof. Sin-Min Lee Department of Computer Science.
Sequential logic circuits
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
CO5023 Latches, Flip-Flops and Decoders. Sequential Circuit What does this do? The OUTPUT of a sequential circuit is determined by the current output.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Dr. Clincy Professor of CS
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
CS Chapter 3 (3A and ) Part 6 of 8
Sequential Logic.
Instructor: Alexander Stoytchev
Synchronous Sequential Circuits
Dr. Clincy Professor of CS
CS Chapter 3 (3A and ) – Part 4 of 5
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Flip Flop.
Instructor: Alexander Stoytchev
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Latches and Flip-flops
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
LECTURE 15 – DIGITAL ELECTRONICS
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
Instructor: Alexander Stoytchev
触发器 Flip-Flops 刘鹏 浙江大学信息与电子工程学院 March 27, 2018
Synchronous Sequential Circuits
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Computer Architecture and Organization: L02: Logic design Review
Thought of the Day To be what we are, and to become
FLIP-FLOPS.
Instructor: Alexander Stoytchev
Flip-Flops.
Presentation transcript:

Chapter 4: Combinational Logic Dr Mohamed Menacer Taibah University 2007-2008

Multiplexer

The Multiplexer (MUX)

4-1 Multiplexer Principle: Use the A and B inputs to select a pair of minterms. The value applied to the MUX input is selected from {0, 1, C, C} to pick the desired behavior of the minterm pair.

Multiplexer Function Multiplexer Y = A • S + B • S´ OR AND NOT

8-1 Multiplexer

The Demultiplexer (DEMUX)

The Demultiplexer is a Decoder with an Enable Input

Adders

Half-Adder Truth Table x y C S 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0 0 0 0 0 0 1 0 1 1 0 0 1 1 1 1 0 Logic Equations C = x • y S = x  y Schematic

Full-Adder Truth Table x y z C S 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1 Logic Equations C = x’yz + xy’z + xyz’ + xyz = z • (x’y+xy’) + xy • (z+z’) = z • (x  y) + x • y = MAJ (x,y,z) S = x’y’z + x’yz’ + xy’z’ + xyz = x’yz’ + xy’z’ + x’y’z + xyz = z’(x’y + xy’) + z(x’y’ + xy) = z’(x  y) + z(x  y)’ = (x  y)  z = x  y  z

Full Adder Schematic

Adding Two Numbers Many Types of Adders: Some examples: Bit Serial Adder Add time = n x f Cascade Stages Ripple carry adder Add time = n x tPD Carry Look Ahead Adder Generate carries in parallel e.g., 4-bit AM2902. Can have “look ahead” of the “look ahead” units.

4-bit Ripple Carry Adder

Negative Numbers and Subtraction Several different codes for negative numbers 2's complement 1's complement signed magnitude others For 2's complement, subtraction is implemented with the same hardware by negating the subtrahend. This is done by inverting each bit and adding one. The one can be added by setting the carry-in to the first stage equal to 1, saving an operation.

Decoders

Decoder Fundamentals Route data to one specific output line. Selection of devices, resources Code conversions. Arbitrary switching functions implements the AND plane

Decoder 1 1 1 0 0 1 00 What happens when the inputs goes from 01 to 10?

Why Encode? A Logarithmic Relationship Lets say we have N inputs to a decoder, the number of outputs will be equal to 2^N

Decoder with Enable Demultiplexer Decoder with Enable

3 to 8 Decoder

Encoder An encoder translates a set of inputs into a binary encoding, Can be thought of as the converse of a decoder. A priority encoder imposes an order on the inputs.

Sequential Logic

Sequential Logic The combinational logic circuits we have been studying so far have no memory. The outputs always follow the inputs. There is a need for circuits with a memory, which behave differently depending upon their previous state. Sequential circuits use current input variables and previous input variables by storing the information and putting back into the circuit on the next clock (activation) cycle.

Sequential Circuit

Synchronous & Asynchronous Sequential Circuits

The Clock Paces the System In a positive logic system, the “action”happens when the clock is high, or positive. The low part of the clock cycle allows propagation between subcircuits, so their inputs are stable at the correct value when the clock next goes high.

Clock Pulse Definition Positive Pulse Positive Edge Negative Negative Pulse Positive Edge Negative Edges can also be referred to as leading and trailing.

A NOR Gate with a Lumped Delay This delay between input and output is at the basis of the functioning of an important memory element, the flip-flop.

Flip-Flops Flip-flops are the first stage in sequential logic design which incorporates memory (storage of previous states).

Types of Flip-Flops SR type Flip-flop or Set / Reset D type Flip-flop or Data / Delay JK type Flip-flop T type Flip-flop or Triggered /Toggle

The S-R (Set-Reset) Flip-Flop The operation of an SR flip-flop is as follows: The Set input will make Q goto 1 The Reset input will make the output Q goto 0 i.e. reset the output. Both Set and Reset at logic 1 is not allowed as this is not a logical pair of inputs. The S-R flip-flop is an active high (positive logic) device.

A Clocked S-R Flip-Flop The clock signal, CLK, turns on the inputs to the flip-flop.

The Clocked D (Data) Flip-Flop The operation of the D type flip-flop is as follows: Any input appearing (present state) at the input D, will be produced at the output Q in time T+1 (next state). The operation of the D type delays any input by exactly one clock cycle. Cascading several D type flip-flops together can produce delaying circuits The clocked D flip-flop, sometimes called a latch, has a potential problem: If D changes while the clock is high, the output will also change. The Master-Slave flip-flop solves this problem:

8 Bits D (Data) Flip-Flop One D type flip-flop can store one bit of information for one clock cycle. To have eight bits of information, simply arrange eight flip-flops in parallel with a common clock.

The Master-Slave Flip-Flop The rising edge of the clock clocks new data into the Master, while the slave holds previous data. The falling edge clocks the new Master data into the Slave.

Parallel Registers

4-Bit Parallel Register (4 Flip Flops)

4-Bit Register With Enable

Memory Devices

Magnetic Core Memory Register Decoder (AND plane)

Semiconductor Memory Decoder (AND plane) OR plane

UT4090 RAM Module Dual-port 1152 bits per cell Four configurations 64 X 18 128 X 9 256 X 4 512 X 2 WA(8:0) RE WD(17:0) RCLK WE RA(8:0) WCLK RD(17:0) MODE(1:0) ASYNCRD

Packaging