ECE 511: Digital System & Microprocessor. Course Outline WeekSubject W1-W2Digital Logic Review W2-W3Microprocessor Architecture & Overview W3-W6Microprocessor.

Slides:



Advertisements
Similar presentations
Sequential Logic Building Blocks – Flip-flops
Advertisements

1 Sequential Ckts, Latches and Timing Issues Today: Sequential Circuits, LatchesFirst Hour: Sequential Circuits, Latches –Section of Katz’s Textbook.
Digital Electronics Lecture 7 Sequential Logic Circuit Design.
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,
Classification of Digital Circuits  Combinational. Output depends only on current input values.  Sequential. Output depends on current input values and.
Sequential logic circuits. 2 Outline Sequential Circuit Models –Asynchronous –Synchronous Latches Flip-Flops.
Logical Circuit Design Week 11: Sequential Logic Circuits Mentor Hamiti, MSc Office ,
EET 1131 Unit 10 Flip-Flops and Registers
+ CS 325: CS Hardware and Software Organization and Architecture Sequential Circuits 1.
Chapter 10 Flip-Flops and Registers Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. William Kleitz.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
2-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Fundamentals of Digital.
Spring 2002EECS150 - Lec14-seq1 Page 1 EECS150 - Digital Design Lecture 14 - Sequential Circuits I (State Elements) March 12, 2002 John Wawrzynek.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Fundamentals of Digital Logic B. Furman 25NOV2014.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
AB C f Gates are combined into circuits by using the output of one gate as the input for another. So, in these circuits the output depends only on the.
So far, all of the logic circuits we have studied were basically based on the analysis and design of combinational digital circuits. The other major aspect.
ECE 301 – Digital Electronics Flip-Flops and Registers (Lecture #15)
Engineering Lecture 3 Digital Electronics by Jaroslaw Karcz.
COE 202: Digital Logic Design Sequential Circuits Part 1
Lecture 1 Combinational Logic Design & Flip Flop 2007/09/07 Prof. C.M. Kyung.
Flip_Flops  Logic circuits are classified ito two groups  1. The combinational logic circuits,using the basic gates AND,OR and NOT.  2. Sequential.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
Flip-Flops and Registers
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
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.
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
1 ASIC 120: Digital Systems and Standard-Cell ASIC Design Tutorial 1: Introduction to Digital Circuits January 25, 2006.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
מבנה מחשב תרגול 2. 2 Boolean AND Operation Truth Table Equivalent Gate Different notations:
Instructor: Alexander Stoytchev CprE 281: Digital Logic.
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.
ECE 511: Digital System & Microprocessor. Course Outline WeekSubject W1Digital Logic Review W2-W3Microprocessor Architecture & Overview W3-W6Microprocessor.
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
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.
7. Latches and Flip-Flops Digital Computer Logic.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Sequential Logic Design
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Instructor: Alexander Stoytchev
Flip-FLops and Latches
Flip Flops.
Basics of digital systems
Overview Introduction Logic Gates Flip Flops Registers Counters
Flip-Flop.
Digital Signals Digital Signals have two basic states:
Flip-FLops and Latches
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Flip-FLops and Latches
Sequential logic circuits
LECTURE 15 – DIGITAL ELECTRONICS
Flip-FLops and Latches
Flip-FLops and Latches
FLIP-FLOPS.
Flip-Flops.
14 Digital Systems.
Flip-FLops and Latches
Presentation transcript:

ECE 511: Digital System & Microprocessor

Course Outline WeekSubject W1-W2Digital Logic Review W2-W3Microprocessor Architecture & Overview W3-W6Microprocessor Instruction Set & Programming W6-W9Memory Interfacing W10-W14Parallel I/O Interfacing

References J. L. Antonakos, “The Microprocessor: Hardware and Software Principles & Applications,” 5 th Ed., Pearson Prentice-Hall, C. M. Gilmore, “Microprocessors: Principles & Applications,” 2 nd Ed., McGraw-Hill, A. Clements, “Microprocessor System Design,” PWS- Kent, J. Palmer & D. Perlman, “Introduction to Digital Systems,” Schaum’s Outlines Series, McGraw-Hill, 1993.

Course Evaluation Tests x 230% Quizzes x 320% Mini Projects50%

If you have problems, please contact me: Ahmad Ihsan bin Mohd Yassin Rm. T2-A13-1A, Dept. of Comp. Eng. Faculty of Elect. Eng. UiTM, Shah Alam , *Please call before you see me.

Digital Logic Review: Part I ECE 511: Digital System & Microprocessor.

What we will learn in this session: Review of logic gates. Flip-flops. Universal representation of logic gates. Decoders.

Gates

What are gates? Gates are:  Simple electronic devices.  Constructed using transistors.  Used to design digital systems. Three basic gates:  AND  OR  NOT Usually packed into ICs.

Gates as Building Blocks

Basic Gate - AND The AND gate is similar to multiply operation. A AND B C A BC TRUTH TABLE

Basic Gate - OR The OR gate is similar to add operation. OR A B C A BC TRUTH TABLE

Basic Gate - NOT The NOT gate performs the inverse operation. NOT A B TRUTH TABLE A B

Extended Gates Combination of basic gates to perform complex functions:  NAND  NOR  XOR  XNOR  Flip-Flops

NAND Gate Adds NOT after AND gate. AND outputs are inverted  NAND (NOT-AND). A AND B C NOT A NAND B C A BC TRUTH TABLE

NOR Gate Adds NOT after OR gate. OR outputs are inverted  NOR (NOT-OR). OR A B C NOT C NOR A B A BC TRUTH TABLE

XOR Gate XOR performs the Exclusive Or operation. When A=B, C=0; when A≠B, C=1. A BC TRUTH TABLE XOR A B C

XNOR Gate Adds NOT after XOR gate. XOR outputs inverted  XNOR (NOT XOR). A BC TRUTH TABLE XOR A B C NOTXOR A B C

Flip-Flops

Extended gate. 2 gates, feedback connections. 2 inputs, 4 states. Used as memory:  Each FF stores 1 bit.  Unchanged at “keep” state. More complex ones may:  Use timing from CLK.  Perform bit toggle.

RS Flip-Flop 4 states:  Three stable.  One not stable. 2 inputs, 2 outputs. May contain clock (CLK) signal.

RSFF - NOR Implementation *Assuming initial condition: S = 0, R = 0, Q = 0 Q prev SRQ N/A Doesn’t matter 11N/A Unstable Output unchanged Output set (Q = 1) Output reset (Q = 0) Q’ N/A *As long as S=0 and R=0, Q will always remain at previous state. S R Q’ Q

RS Flip-Flop (NAND Implementation) *Assuming initial condition: S = 0, R = 0, Q = 0 Q prev SRQ N/A Doesn’t matter 11N/A Unstable Output unchanged Output set (Q = 1) Output reset (Q = 0) Q’ N/A *As long as S=0 and R=0, Q will always remain at Q prev. S R Q Q’

Clocked RS S R Q’ Q CLK Q prev SRQ N/A Doesn’t matter 11N/A Unstable Output unchanged Output set (Q = 1) Output reset (Q = 0) Q’ N/A CLK ↑ ↑ ↑ Doesn’t matter Only active when CLK is ↑ Reduced sensitivity to noise.

JK Flip-Flop Same as RS, but forbidden state used to toggle bit. Can also be clocked using CLK. Q prev SRQ N/A Q 11Q Toggle Output unchanged Output set (Q = 1) Output reset (Q = 0) Q’ Q

JK Flip-Flop (Palmer & Perlman, pg. 200) Q prev SRQ N/A Q 11Q Toggle Output unchanged Output set (Q = 1) Output reset (Q = 0) Q’ Q J K Q Q

Clocked JK (Palmer & Perlman, pg. 200) Q prev SRQ N/A Q 11Q Toggle Output unchanged Output set (Q = 1) Output reset (Q = 0) CLK ↑ ↑ ↑ ↑ J K Q Q

D-Flip-Flop Data latch. Modification of RSFF. Stores 1-bit of information.  Can be combined to store more. How data stored in memory.

D-Flip-Flop D Q’ Q EN Q prev DQ Doesn’t Matter Output set (Q = 1) Output reset (Q = 0) Q’ 0 1 EN 1 1 Only active when EN is 1

D-Flip-Flop: Timing Diagram D EN Q

Storing 8-bits using DFF DFF Q3Q5Q6Q7Q1Q2Q4Q0 EN D3D5D6D7D1D2D4D0

Asynchronous Latch Allows both synchronous & asynchronous operations:  Synchronous: CLK driven (Clocked JK).  Asynchronous: similar to RSFF. 5 inputs, 2 outputs:  J, K and CLK for synch. operation.  PR, CLR for asynch. operation.

Asynchronous Latch (Perlman, pg. 201) CLK J K Q Q CLR PRE CLRQ 11Follows J, K, CLK (Synch. JK) 10Q = 0, resets output. 01Q = 1, sets output. 00Not valid. PRECLRQ 00Follows J, K, CLK (Synch. JK) 01Q = 0, resets output. 10Q = 1, sets output. 11Not valid. CLK J K Q Q CLR PRE

Universal Gates – NAND and NOR

NAND and NOR as Universal Gates In industry, NAND and NOR gates are most common. Reason?  Can be used to represent any gate (functionally complete).  Easiest & cheapest to produce.

NAND Logic

NOR Logic

NAND Logic

NOR Logic

IC 4011 IC 7402

Decoders

Electronic device that:  Reverse of an encoder.  “Translates” binary codes back into signal.  Converts n inputs into 2 n combinations. Uses:  Activate devices for use by µP.  Memory, I/O interfacing.

Encoder vs. Decoder 8  3 Encoder I0I0 I7I7 I6I6 I5I5 I4I4 I3I3 I2I2 I1I1 Y2Y2 Y0Y0 Y1Y1

Encoder vs. Decoder 3  8 Decoder I0I0 I7I7 I6I6 I5I5 I4I4 I3I3 I2I2 I1I1 Y2Y2 Y0Y0 Y1Y1 Y2Y2 Y1Y1 Y0Y I4I4 I5I5 I6I6 I7I7 I0I0 I1I1 I2I2 I3I

What Goes on Inside a Decoder? Y0 Y1 Y2 I 0 = Y 0 Y 1 Y 2 I 2 = Y 0 Y 1 Y 2 I 3 = Y 0 Y 1 Y 2 I 4 = Y 0 Y 1 Y 2 I 5 = Y 0 Y 1 Y 2 I 6 = Y 0 Y 1 Y 2 I 7 = Y 0 Y 1 Y 2 I 1 = Y 0 Y 1 Y 2

Decoders in Action Decoder Device Code CodeDevice 000LED 001DC Motor 010Memory #1 110LCD Display 011Memory #2 100Memory #3 101Memory #4 Activate Signal

74LS139 Dual 2-4 Line Decoder Motorola 2-4 decoder. 2 x decoders in one IC. 16 pins total:  2 inputs, 4 outputs (active low).  Vcc (±5V) and GND.  2 x Enable pins.

74LS139 Dual 2-4 Line Decoder EaEa A 0a A 1a O 0a O 1a O 2a O 3a EbEb A 0b A 1b O 0b O 1b O 2b O 3b

74LS139 Truth Table EI0I0 I1I1 O3O3 O0O0 O1O1 O2O2 1XX

74LS Line Decoder Motorola 3-8 decoder. 1 x decoder in one IC. 16 pins total:  3 inputs, 8 outputs (active low).  Vcc (±5V) and GND.  3 x Enable pins.

74LS Line Decoder E1E1 A0A0 A1A1 O0O0 O1O1 O2O2 O3O3 O4O4 O5O5 O6O6 O7O7 E2E2 E3E3 A2A2

E1E1 I0I0 I1I1 O3O3 O0O0 O1O1 O2O2 1XX1111 XXX1111 XXX E2E2 X 1 X 0 0 E3E3 X X I2I2 X X X 0 0 O7O7 O4O4 O5O5 O6O LS138 Truth Table

Conclusion Gates: most basic elements in circuits.  Can be extended to perform advanced functions.  Some types are universal.  Flip-flops can store data – feedback. Decoders transform code into original signals.  Can be used to control access to hardware.

The End Please read: Palmer & Perlman, pg