Digital Logic Design Review Dr. Ahmad Almulhem Email: ahmadsm AT kfupm Phone: 860-7554 Office: 22-324 Ahmad Almulhem, KFUPM 2010.

Slides:



Advertisements
Similar presentations
컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Advertisements

COE 202: Digital Logic Design Combinational Circuits Part 1
COE 202: Digital Logic Design Sequential Circuits Part 3
COE 202: Digital Logic Design Sequential Circuits Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Multiplexors Sequential Circuits and Finite State Machines Prof. Sin-Min Lee Department of Computer Science.
1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
Circuits require memory to store intermediate data
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Sequential Circuits A Basic sequential circuit is nothing but a combinational circuit with some feedback paths between its output and input terminals.
Sequential circuit Digital electronics is classified into combinational logic and sequential logic. In combinational circuit outpus depends only on present.
Overview Part 2 – Combinational Logic
COE 202: Digital Logic Design Combinational Circuits Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
Logic and Computer Design Fundamentals Registers and Counters
COE 202: Digital Logic Design Sequential Circuits Part 4 KFUPM Courtesy of Dr. Ahmad Almulhem.
COE 202: Digital Logic Design Combinational Circuits Part 1
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
ETE Digital Electronics
Digital Computer Design Fundamental
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Some Useful Circuits Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
COE 202: Digital Logic Design Sequential Circuits Part 1
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 DIGITAL LOGIC CIRCUITS Dept. of Computer Science Engineering Islamic Azad University.
COE 202: Digital Logic Design Combinational Circuits Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Digital Logic Design Sequential circuits
Rabie A. Ramadan Lecture 3
Chap 4. Sequential Circuits
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Introduction to Sequential Logic Design Finite State-Machine Design.
CE1110: Digital Logic Design Sequential Circuits.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
1 Lecture 22 Sequential Circuits Analysis. 2 Combinational vs. Sequential  Combinational Logic Circuit  Output is a function only of the present inputs.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Department of Computer and IT Engineering University of Kurdistan Computer Architecture (Review of Digital Design) By: Dr. Alireza Abdollahpouri.
COE 202: Digital Logic Design Combinational Circuits Part 3
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 2 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
Chapter5: Synchronous Sequential Logic – Part 1
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Chap 5. Registers and Counters
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
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.
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #3 Flip-Flops, Registers, Shift registers, Counters, Memory 3/3/2005.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
CS221: Digital Logic Design Combinational Circuits 3
COE 202: Digital Logic Design Sequential Circuits Part 4
COE 202: Digital Logic Design Combinational Circuits Part 3
Computer Architecture and Organization: L02: Logic design Review
CSC3050 – Computer Architecture
COE 202: Digital Logic Design Sequential Circuits Part 3
Presentation transcript:

Digital Logic Design Review Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM 2010

Objectives Logic Circuits Combinational Sequential Ahmad Almulhem, KFUPM 2010

Introduction Digital circuits have two classes: Combinational Circuits Sequential Circuits Combinational circuits consist of logic gates with inputs and outputs The outputs at any instance of time depend only on the combination of the input values based on logic operations such as AND, OR etc. Sequential circuits, in addition to inputs and outputs also have storage elements, therefore the output depends on both the current inputs as well as the stored values Ahmad Almulhem, KFUPM 2010

Combinational Circuits Ahmad Almulhem, KFUPM 2010 Combinational Circuits.. Input X Output Z Z = F(X) In combinational circuits, the output at any time is a direct function of the applied external inputs..

Design Procedure of Combinational Circuits Ahmad Almulhem, KFUPM 2010 Circuit Specification Truth Table How many input/output? Logic Diagram Minimization K-maps, Algebraic Manipulation. Computer based tools

Logic Gates Ahmad Almulhem, KFUPM 2010 AND OR NANDNOR XOR XNOR NOT

Physical Properties of Gates Building blocks of digital circuits Built using integrated circuits Integrated circuits themselves are built using various technologies. E.g. TTL, CMOS Physical characteristics of an Integrated Circuit depend on the underlying technology Key characteristics of ICs are: Physical voltage ranges for 1 and 0 Gate propagation delay/speed Fan-in and Fan-out Buffers Tri-state Drivers Ahmad Almulhem, KFUPM 2010

Voltage Levels Logic values of 0 & 1 are represented in electrical terms using a voltage level A range of voltage defines logic 0 and logic 1. Any value outside this range is invalid. +5V +0V Illegal Voltage Range Ahmad Almulhem, KFUPM 2010

Propagation Delay The delay when the voltage signal arrives at the input of a circuit, and when the output of the circuit changes, is called the propagation delay A circuit is considered to be fast, if its propagation delay is small (ideally as close to 0 as possible) Delay between input (X, Y) and change in output Z XYXY Z Ahmad Almulhem, KFUPM 2010

Timing Diagram The inputs to a circuit can be changed over time. The timing diagram shows the values of the input signals to a circuit with the passage of time, in the form of a waveform It also shows a waveform for the output XYZXYZ Propagation Delay of the Circuit = τ Inputs Output Timing Diagram for an AND gateTime Ahmad Almulhem, KFUPM 2010

Fanin Fanin of a gate is the number of inputs to the gate For a 3-input OR gate, the fanin = 3 There is a limitation on the fanin for any gate In CMOS IC technology, higher fanin implies slower gates (higher propagation delays) TTL IC gates can have higher fanin

Fanout Fanout is the number of gates that can be driven by a driver gate The driven gate is called the load gate There is a limit to the number of load gates that can be driven by a driver gate Fanout = 3 Ahmad Almulhem, KFUPM 2010

Buffers Buffers have a single input and a single output, where output = input Buffers help increase the drive capability of a circuit by increasing the fanout Ahmad Almulhem, KFUPM 2010

Gates with Tristate outputs These gates have an additional input signal called the Enable This signal (Enable) if high, implies that inputs are accepted by the gate, and outputs are generated If Enable = 0, the gate is in a high impedance state, and the output is disabled Enable EXZ High Z 01 Ahmad Almulhem, KFUPM 2010

Decoder Information is represented by binary codes Decoding - the conversion of an n-bit input code to an m-bit output code with n <= m <= 2 n such that each valid code word produces a unique output code Circuits that perform decoding are called decoders A decoder is a minterm generator Ahmad Almulhem, KFUPM n inputs2 n outputs n-to-2 n Decoder

Decoder (Uses) Decode a 3-bit op-codes:Home automation: Ahmad Almulhem, KFUPM to-8 Decoder Add Sub And Xor Not Load Store Jump op0 op1 op2 2-to-4 Decoder Light A/C Door Light-A/C C0C1C0C1 Load a Add b Store c.

Decoder-Based Combinational Circuits (Example) Ahmad Almulhem, KFUPM 2010 Src: Mano’s book XYZCS S = ∑m (1,2,4,7) C = ∑m (3,5,6,7) 3 inputs and 8 possible minterms 3-to-8 decoder can be used for implementing this circuit

Encoder Encoding - the opposite of decoding - the conversion of an m- bit input code to a n-bit output code with n  m  2 n such that each valid code word produces a unique output code Circuits that perform encoding are called encoders An encoder has 2 n (or fewer) input lines and n output lines which generate the binary code corresponding to the input values Typically, an encoder converts a code containing exactly one bit that is 1 to a binary code corresponding to the position in which the 1 appears n outputs 2 n inputs 2 n -to-n Encoder Ahmad Almulhem, KFUPM 2010

Multiplexers Is a combinational circuit Has a single output Directs one of 2 n input to the output Input to output direction is done based on a set of n select bits Ahmad Almulhem, KFUPM n inputs n select lines one output 2 n x 1 MUX

MUX-based Design (n-1 Select lines) Ahmad Almulhem, KFUPM 2010 ABCF 0000 F = C F = C’ F = F = D0D1D2D3D0D1D2D3 F S1S1 S0S0 A B C C’ 0 1 F(A,B,C)=∑(1,3,5,6)

Combinational vs Sequential A combinational circuit: At any time, outputs depends only on inputs Changing inputs changes outputs No regard for previous inputs No memory (history) Time is ignored ! Ahmad Almulhem, KFUPM 2010 Combinational Circuits inputs X outputs Z

Combinational vs Sequential A sequential circuit: outputs depends on inputs and previous inputs Previous inputs are stored as binary information into memory The stored information at any time defines a state next state depends on inputs and present state Ahmad Almulhem, KFUPM 2010 Combinational Circuits inputs X outputs Z Memory next state present state

Examples of sequential systems Ahmad Almulhem, KFUPM 2010 Traffic lightVending machine ATM What is common between these systems?

Types of Sequential Circuits Two types of sequential circuits: Synchronous: The behavior of the circuit depends on the input signal values at discrete intervals of time (also called clocked) Asynchronous: The behavior of the circuit depends on the order of change of the input signals at any instance of time (continuous) Ahmad Almulhem, KFUPM 2010

Design of Synchronous Sequential Circuits Obtain a state diagram State reduction if necessary Obtain State Table State Assignment Choose type of flip-flops Use FF’s excitation table to complete the table Derive state equations Use K-Maps Obtain the FF input equations and the output equations Draw the circuit diagram Ahmad Almulhem, KFUPM 2010

Building a Sequential Circuit Combinational part Memory Latches Flip-Flops Ahmad Almulhem, KFUPM 2010

Flip Flops Sheet (Mano’s Textbook) Ahmad Almulhem, KFUPM 2010

Registers A register is a group of flip-flops. An n-bit register is made of n flip-flips and can store n bits A register may have additional combinational gates to perform certain operations Ahmad Almulhem, KFUPM …n-1

4-Bit Register A simple 4-bit register can be made with 4 D-FF Common Clock At each positive-edge, 4 bits are loaded in parallel Previous data is overwritten Common Clear Asynchronous clear When Clear = 0, all FFs are cleared; i.e. 0 is stored. Ahmad Almulhem, KFUPM 2010

4-bit Shift Register A simple 4-bit shift register can be made with 4 D-FF Common Clock At each positive-edge, 1 bit is shifted in Rightmost bit is discarded Which direction this register is shifting? Ahmad Almulhem, KFUPM 2010

Universal Shift Register (cont.) Ahmad Almulhem, KFUPM 2010

Ripple Counters Instead of having a common clock signal to all Flip Flops, in a Ripple counter the output of one stage (Flip Flop) is connected to the clock input of the next stage T or JK flip flops are used for this construction because of their capability to flip their stored bits Clock is connected to the least significant bit Flip flops are negative edge-triggered (clock is bubbled) – are active when the clock signal is falling (high to low) Flip flops invert their stored bits, when the input clock signal goes from high (1) to low (0) Ahmad Almulhem, KFUPM 2010 J C Q Q’K R J C Q K R J C Q K R J C Q K R clock pulses Q0Q0 clear’ Q1Q1 Q2Q2 Q3Q3 Logic 1

Need more details ? Ahmad Almulhem, KFUPM