מערכות זיכרון – Sequential Logic

Slides:



Advertisements
Similar presentations
Changes in input values are reflected immediately (subject to the speed of light and electrical delays) on the outputs Each gate has an associated “electrical.
Advertisements

Edge Triggered Flip Flops (extended slides). Level-Sensitive Flip-Flop Level-sensitive flip-flop (also called a latch) Q changes whenever clock is high.
Latches CS370 –Spring 2003 Section 4-2 Mano & Kime.
A. Abhari CPS2131 Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and.
Computer Architecture CS 215
1 זכרון 1 2 Q’ Q זכרון Q’ Q = = 1 קלט פלט קלט פלט 0.
Sequential Logic Latches and Flip-Flops. Sequential Logic Circuits The output of sequential logic circuits depends on the past history of the state of.
Princess Sumaya University
1 Sequential Systems A combinational system is a system whose outputs depend only upon its current inputs. A sequential system is a system whose outputs.
ReturnNext  Latch : a sequential device that watches all of its inputs continuously and changes its outputs at any time, independent of a clocking signal.
1 Sequential Circuits –Digital circuits that use memory elements as part of their operation –Characterized by feedback path –Outputs depend not only on.
Sequential Circuits : Part I Read Sections 5-1, 5-2, 5-3.
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.
מבוסס על הרצאות של יורם זינגר, האוניברסיטה העברית י"ם
מערכות זיכרון – Sequential Logic Combinatorial Circuit מעגל צירופי Storage/Mem יחידה זיכרון עד כה טיפלנו במערכות צירופיות שהינן חסרות " זיכרון " או מצב.
שאלת חזרה בקר ומסלול נתונים – © Yohai Devir 2007 © Dima Elenbogen 2009 Technion - IIT.
מכונת מצבים תרגול מס' 4 Moshe Malka.
משטר דינמי המשך – © Dima Elenbogen :55 חידה שכדאי לעבור עליה: 2011/ho/WCFiles/%D7%97%D7%99%D7%93%D7%94%20%D7%A2%D7%9D%20%D7%91%D7%95%D7%A0%D7%95%D7%A1.doc.
Tutorial #7 Preventing combinatorial loops – © Yohai Devir 2007 © Dima Elenbogen 2009 Technion - IIT.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
משטר סטטי שערים לוגיים Wired Drives – © Dima Elenbogen 2009, Moshe Malka :29.
EECC341 - Shaaban #1 Lec # 14 Winter Clocked Synchronous State-Machines Such machines have the characteristics: –Sequential circuits designed.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Registers and Counters
Sequential Circuits. 2 Sequential vs. Combinational Combinational Logic:  Output depends only on current input −TV channel selector (0-9) Sequential.
משטר דינמי – © Dima Elenbogen :14. הגדרת cd ו -pd cd - הזמן שעובר בין הרגע שראשון אותות הכניסה יוצא מתחום לוגי עד אשר אות המוצא יוצא מתחום.
A clocked synchronous state-machine changes state only when a triggering edge or “tick” occurs on the clock signal. ReturnNext  “State-machine”: is a.
– © Yohai Devir 2007 © Dima Elenbogen 2009 Technion - IIT Tutorial #7 Preventing combinatorial loops.
Markov Decision Processes (MDP) תומר באום Based on ch. 14 in “Probabilistic Robotics” By Thrun et al. ב"הב"ה.
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
Flip Flops. Clock Signal Sequential logic circuits have memory Output is a function of input and present state Sequential circuits are synchronized by.
Astable: Having no stable state. An astable multivibrator oscillates between two quasistable states. Asynchronous Having no fixed time relationship Bistable.
Latches, Flip-Flops BIL- 223 Logic Circuit Design Ege University Department of Computer Engineering.
1 Sequential Circuit Latch & Flip-flop. 2 Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK.
COE 202: Digital Logic Design Sequential Circuits Part 1
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 9 Sequential.
C HAPTER F IVE S YNCHRONOUS S EQUENTIAL L OGIC 1.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Boolean Algebra and Logic Gates 1 Computer Engineering (Logic Circuits) Lec. # 10 (Sequential Logic Circuit) Dr. Tamer Samy Gaafar Dept. of Computer &
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.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2007.
מבוסס על הרצאות של יורם זינגר, האוניברסיטה העברית י"ם
Princess Sumaya University
Synchronous Sequential Logic A digital system has combinational logic as well as sequential logic. The latter includes storage elements. feedback path.
EKT 121 / 4 ELEKTRONIK DIGIT I
Synchronous Sequential Logic Part I
Sequential Circuit Latch & Flip-flop. Contents Introduction Memory Element Latch  SR latch  D latch Flip-flop  SR flip-flop  D flip-flop  JK flip-flop.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
A combinational circuit is a connected arrangement of logic gate with a set of input and output.
Synchronous Sequential Circuits by Dr. Amin Danial Asham.
Flip Flops 3.1 Latches and Flip-Flops 3 ©Paul Godin Created September 2007 Last Edit Aug 2013.
Dept. of Electrical Engineering
DIGITAL LOGIC CIRCUITS 조수경 DIGITAL LOGIC CIRCUITS.
INTRODUCTION FLIP FLOPS: Flip flop is the basic memory element in a digital computer. It is used to store one bit of information with a 0 (or) 1. It is.
CS1103 Arunima Shukla Asim Marchant Urja Kantharia Harsh kosambia Digital Electronics Mini Project.
LATCHES AND FLIP-FLOPS
ECE 3130 – Digital Electronics and Design
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Digital Design Lecture 9
Sequential Circuits Most digital systems like digital watches, digital phones, digital computers, digital traffic light controllers and so on require.
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
D Flip-Flop.
Digital Logic Design Sequential Circuits (Chapter 6)
Sequential logic circuits
מבוסס על הרצאות של יורם זינגר, האוניברסיטה העברית י"ם
אוגרים ומונים – Registers & Counters
Flip Flops Unit-4.
FLIP-FLOP. The basic memory circuit is known as Flip-flop. OR It is a bistable sequential circuit which has two stable state (set & reset) and can be.
Presentation transcript:

מערכות זיכרון – Sequential Logic כניסות מעגל צירופי יציאות זיכרון עד כה טיפלנו במערכות צירופיות שהנן חסרות זיכרון. כל מחשב מכיל זיכרון המשמש לשמירת נתונים ולביצוע תוכניות. הזיכרון שנתייחס אליו בקורס הנוכחי מושג ע"י שימוש במשוב (feedback) של יחידות לוגיות. מעגל עם משוב איננו מעגל צירופי, כי מעגל צירופי הוא גרף חסר מעגלים.

Synchronous Sequential Circuits פעולת המערכת מתבצעת ב"פיקודו" של שעון. אנו דוגמים את מצב המערכת רק ברגעי זמן דיסקרטיים, המוגדרים ע"י השעון. Asynchronous Sequential Circuits פעולות המערכת תלויות רק בסדר של שינוי הכניסות. ניתן לדגום את מצב המערכת בכל רגע נתון. יציב מהיר בקורס הנוכחי נדון כמעט אך ורק במערכות סינכרוניות. Combinatorial Circuit Memory Clock Pulses

L A T C H 1 2 S R – L a t c h Reset Set R S Q’ Q O 1

L A T C H 1 2 S R – L a t c h Reset Set R S Q’ Q 1

L A T C H S R – L a t c h 1 R Q Q’ S הערך הקודם Reset (1) 1 (0) 2 Set (0) 1 (1) הערך הקודם נניח שניתנה פקודת Set , ז"א S=1, R=0 ועתה אנו מאפסים את הכניסות (S=0, R=0). ערכי היציאה Q’, Q "זוכרים" את פקודת ה-Set. מן הסימטריה ברור שבאותו אופן יזכרו את ה - Reset.

L A T C H S R – L a t c h R S Q’ Q 1 Reset 1 2 Set כאשר S=R=1, נקבל Q=Q’=0. אם כעת מאפסים את הכניסות (S=0, R=0), הערך של Q ו Q’ תלוי באיזה קו ישתנה ראשון RACE Condition . המצב הזה, מבחינתנו, הוא איננו חוקי. 1

דיאגרמת זמנים: טבלת המצבים: Reset State Set State Illegal 1 Q 1 S 1 R טבלת המצבים: S R Q Q’ 1 Reset State Set State Illegal Latch איננו פונקציה בוליאנית, כי ערכי היציאה תלויים בפעולת Set או Reset האחרונה. עבור כניסות (0,0) ערך היציאה נשמר קבוע כל זמן שיש מתח.

SR Latch with NAND R S Q’ Q S R Q Q’ 1 Reset State Set State Illegal

SR Latch מבוקר שעון R Q CP Q’ S S R CP Q Clock Pulse C S R Next Q   No change 1 Q = 1 Q = 0 Illegal

D (data) Latch D Q’ Q CP

D (data) Latch D Q CP Q’ D-Latch הנה יחידה שאוגרת ביט יחיד. 1 D Q’ Q CP Q = 1 (Set) Q = 0 (Reset) No change Next State of Q 1  C D D-Latch הנה יחידה שאוגרת ביט יחיד. זוהי אבן הבניין הבסיסית של אוגרים (Registers).

JK Latch זהו שכלול של SR Latch. K Q CP Q’ J 1 3 4 2 כאשר K=0 , J=1 , המעגל יתייצב על Q=1,Q’=0. כאשר K=1, J=0, נקבל Q’=1, Q=0. מה קורה כאשר K=1, J=1 ?

JK Latch K Q CP Q’ J מה קורה כאשר K=1, J=1 ? 1 1 3 (1) 4 2 (0) אם לאורך זמן CP=J=K=1 , מצב Q יתהפך שוב ושוב. 1 (0) (1) JK Latch K J Q’ Q CP 3 4 1 2 מה קורה כאשר K=1, J=1 ?

טבלת אמת עבור JK-Latch דיאגרמת זמנים: J K CP Q Q(t) J K Q(t+1) 1 דיאגרמת זמנים: J K CP Q אם J=K=1 אז Q יתהפך בין 0 ל –1 הלוך ושוב כל זמן ש – cp=1

T (trigger)-Latch מתקבל ע"י חיבור J,K ב JK-Latch למקור אחד: Qt T Qt+1 1 Qt D Qt+1 1

(דלגלגים)Flip - Flops המוצא של רכיב זכרון אינו צריך להיות תלוי בתזמון, וצריך להיות יציב לפרק זמן מובטח. Flip-Flop הוא פתרון המבוסס על Latch. זהו רכיב זכרון של ביט יחיד. Master-Slave Flip-Flop ו- Edge-Triggered Flip-Flop הם שני פתרונות שימושיים. Master-Slave Flip-Flop הוא פתרון המבוסס על שימוש בשני Latch, בצורה שמבטיחה שהפלט יהיה מבודד מהכניסות.

Master – Slave SR Flip - Flop C Q Q’ ג ב ר ת ע ב ד M Y Y’ כאשר M פעיל S סביל, וההפך. C S Y Q אין השפעה!

JK Flip-Flop S R C Q SR Latch D Slave Master J K Q’ Y

T (trigger) Flip-Flop D (data) Flip-Flop Slave Master Q’ Y T Slave C Q SR Latch D Slave Master Q’ Y T D (data) Flip-Flop D C Latch Slave Master Q Y

טבלאות המצבים JKFF SRFF DFF TFF t t+1 שינוי של קלט שינוי של פלט J K Q(t+1) Q(t) No Change 1 Reset Set Q’(t) Complement S R Q(t+1) Q(t) No Change 1 Reset Set ? Illegal DFF TFF D Q(t+1) Reset 1 Set T Q(t+1) Q(t) No Change 1 Q’(t) Complement

Edge Triggered Flip-Flops שינוי המצב מתבצע ברגע שינוי השעון. : clock pulse Positive edge Negative edge Ts-Setup Time CP Ts Th Th-Holdup Time D יציב Ts+Th

כניסות ישירות(Direct Inputs) כאשר מפעילים את המחשב, המצב Q(t=0), של ה- Flip Flops , איננו מוגדר. לכן יש לבצע אתחול (כי Q(t+1) הוא פונ' של Q(t)). אתחול מבוצע ע"י כניסות ישירות אשר קובעות ישירות את המצב (Preset). preset / clear J Q CP K Q’ PreSet CP J K Q Q’  1  no change flip state