Metastability Analysis of Synchronizer

Similar documents
CMOS Implementation of Reliable Synchronizer for Multi clock domain System-on-chip

Robust Synchronization using the Wagging Technique

Product Level MTBF Calculation

EECS150 - Digital Design Lecture 10 - Interfacing. Recap and Topics

MTBF Bounds for Multistage Synchronizers

EECS150 - Digital Design Lecture 15 Finite State Machines. Announcements

EE178 Spring 2018 Lecture Module 5. Eric Crabill

FPGA TechNote: Asynchronous signals and Metastability

Measurements of metastability in MUTEX on an FPGA

EE178 Lecture Module 4. Eric Crabill SJSU / Xilinx Fall 2005

Design and Measurement of Synchronizers

Outline. EECS150 - Digital Design Lecture 27 - Asynchronous Sequential Circuits. Cross-coupled NOR gates. Asynchronous State Transition Diagram

A High-Resolution Flash Time-to-Digital Converter Taking Into Account Process Variability. Nikolaos Minas David Kinniment Keith Heron Gordon Russell

EITF35: Introduction to Structured VLSI Design

AN EFFICIENT LOW POWER DESIGN FOR ASYNCHRONOUS DATA SAMPLING IN DOUBLE EDGE TRIGGERED FLIP-FLOPS

Lecture 8: Sequential Logic

BUSES IN COMPUTER ARCHITECTURE

Efficient Architecture for Flexible Prescaler Using Multimodulo Prescaler

Asynchronous inputs. 9 - Metastability and Clock Recovery. A simple synchronizer. Only one synchronizer per input

FIFO Memories: Solution to Reduce FIFO Metastability

VLSI Technology used in Auto-Scan Delay Testing Design For Bench Mark Circuits

Chapter 5 Flip-Flops and Related Devices

6. Sequential Logic Flip-Flops

Scan. This is a sample of the first 15 pages of the Scan chapter.

EL302 DIGITAL INTEGRATED CIRCUITS LAB #3 CMOS EDGE TRIGGERED D FLIP-FLOP. Due İLKER KALYONCU, 10043

Asynchronous IC Interconnect Network Design and Implementation Using a Standard ASIC Flow

Lecture 13: Clock and Synchronization. TIE Logic Synthesis Arto Perttula Tampere University of Technology Spring 2017

A NOVEL DESIGN OF COUNTER USING TSPC D FLIP-FLOP FOR HIGH PERFORMANCE AND LOW POWER VLSI DESIGN APPLICATIONS USING 45NM CMOS TECHNOLOGY

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Clock Domain Crossing. Presented by Abramov B. 1

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

[Krishna*, 4.(12): December, 2015] ISSN: (I2OR), Publication Impact Factor: 3.785

Figure.1 Clock signal II. SYSTEM ANALYSIS


Timing Error Detection: An Adaptive Scheme To Combat Variability EE241 Final Report Nathan Narevsky and Richard Ott {nnarevsky,

Synchronization in Asynchronously Communicating Digital Systems

Synchronizers and Arbiters

Metastability and Synchronizers: A Tutorial

CPS311 Lecture: Sequential Circuits

Design of a Low Power Four-Bit Binary Counter Using Enhancement Type Mosfet

Automated Verification and Clock Frequency Characteristics in CDC Solution

2.6 Reset Design Strategy

data and is used in digital networks and storage devices. CRC s are easy to implement in binary

Chapter 4: One-Shots, Counters, and Clocks

IT T35 Digital system desigm y - ii /s - iii

DESIGN OF DOUBLE PULSE TRIGGERED FLIP-FLOP BASED ON SIGNAL FEED THROUGH SCHEME

Metastability and Synchronizers A Tutorial

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

CSE115: Digital Design Lecture 23: Latches & Flip-Flops

Experiment 8 Introduction to Latches and Flip-Flops and registers

Basis of sequential circuits: the R-S latch

Chapter 9. Timing Design. (Based on Chapter 7 and Chapter 8 of Wakerly) Data Path Comb. Logic. Reg. Reg. Reg C <= A + B

HIGH PERFORMANCE AND LOW POWER ASYNCHRONOUS DATA SAMPLING WITH POWER GATED DOUBLE EDGE TRIGGERED FLIP-FLOP

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

INTEGRATED CIRCUITS. AN219 A metastability primer Nov 15

LFSR Counter Implementation in CMOS VLSI

Sequential Circuit Design: Principle

Glitches/hazards and how to avoid them. What to do when the state machine doesn t fit!

55:131 Introduction to VLSI Design Project #1 -- Fall 2009 Counter built from NAND gates, timing Due Date: Friday October 9, 2009.

University College of Engineering, JNTUK, Kakinada, India Member of Technical Staff, Seerakademi, Hyderabad

CHAPTER 6 DESIGN OF HIGH SPEED COUNTER USING PIPELINING

Logic Design. Flip Flops, Registers and Counters

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

PERFORMANCE ANALYSIS OF AN EFFICIENT PULSE-TRIGGERED FLIP FLOPS FOR ULTRA LOW POWER APPLICATIONS

Low Latency Synchronization Scheme Using Prediction and Avoidance of Synchronization Failure in Heterochronous Clock Domains

Last time, we saw how latches can be used as memory in a circuit

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING DIGITAL DESIGN

DEDICATED TO EMBEDDED SOLUTIONS

Figure 1 shows a simple implementation of a clock switch, using an AND-OR type multiplexer logic.

Dual Edge Adaptive Pulse Triggered Flip-Flop for a High Speed and Low Power Applications

High Speed 8-bit Counters using State Excitation Logic and their Application in Frequency Divider

Performance Driven Reliable Link Design for Network on Chips

Digital Logic Design ENEE x. Lecture 19

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

IN DIGITAL transmission systems, there are always scramblers

Digital System Design

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Novel Low Power and Low Transistor Count Flip-Flop Design with. High Performance

Low Power Approach of Clock Gating in Synchronous System like FIFO: A Novel Clock Gating Approach and Comparative Analysis

CMOS Layout Design and Performance Analysis for Synchronization Failures using 50nm Technology

Synchronizing Multiple ADC08xxxx Giga-Sample ADCs

Design of a Low Power and Area Efficient Flip Flop With Embedded Logic Module

A Power Efficient Flip Flop by using 90nm Technology

Software Engineering 2DA4. Slides 9: Asynchronous Sequential Circuits

Digital Design, Kyung Hee Univ. Chapter 5. Synchronous Sequential Logic

COPY RIGHT. To Secure Your Paper As Per UGC Guidelines We Are Providing A Electronic Bar Code

Digital Fundamentals

Flip-Flops A) Synchronization: Clocks and Latches B) Two Stage Latch C) Memory Requires Feedback D) Simple Flip-Flop Gate

Lecture 12: Clock and Synchronization. TIE Logic Synthesis Arto Perttula Tampere University of Technology Spring 2018

LOW POWER DOUBLE EDGE PULSE TRIGGERED FLIP FLOP DESIGN

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Design of a High Frequency Dual Modulus Prescaler using Efficient TSPC Flip Flop using 180nm Technology

Improve Performance of Low-Power Clock Branch Sharing Double-Edge Triggered Flip-Flop

Logic Gates, Timers, Flip-Flops & Counters. Subhasish Chandra Assistant Professor Department of Physics Institute of Forensic Science, Nagpur

DO NOT COPY DO NOT COPY

More on Flip-Flops Digital Design and Computer Architecture: ARM Edition 2015 Chapter 3 <98> 98

MC9211 Computer Organization

Universal Asynchronous Receiver- Transmitter (UART)

Transcription:

Forn International Journal of Scientific Research in Computer Science and Engineering Research Paper Vol-1, Issue-3 ISSN: 2320 7639 Metastability Analysis of Synchronizer Ankush S. Patharkar *1 and V. E. Khetade 2 *1 Department of Electronics, Shri Ramdeobaba college of engineering and management, Nagpur, India 2 Department of Electronic, Shri Ramdeobaba college of Eng. and management, Nagpur, India Available online at www.isroset.org Received: 20 March 2013 Revised: 28 March 2013 Accepted: 22 May 2013 Published: 30 June 2013 Abstract- The multiple clock domain systems communicate with each other causes data loss. This data loss is due to mismatch in frequencies. For proper communication the frequencies must be synchronized. Hence synchronizer is used for data synchronization process with non-zero probability of failure. The synchronizer is also having its parameters. It suffers from metastability as data changes in between timing window due to which synchronizer failure occurs. As the metastability occurs we cannot predict the correct level at output. The proposed architecture is modeled with verilog and simulated with Xilinx ISE design suit 13.1and its parameter are verified with Quartus II 10.1. Analog behavior is studied by using Tanner. The probability of occurrence of metastability reduces with timing window width. Keywords: Data synchronization, data loss, synchronizer, metastability. 1. INTRODUCTION System on chip is an integrated circuit that integrates all components of electronic system on single chip. It may contain digital, analog, mixed signal and radio frequency functions on single chip substrate. System-on-chip that consists of multiple clock domain connected through asynchronous interconnect are called globally asynchronous and locally synchronous Network-on chip (GALS). Globally asynchronous locally synchronous (GALS) is a model of computation. It is based on synchronous MoC and asynchronous MoC. It allows to relax the synchrony assumption to model and and design computer system. Frequency and phase of each synchronous module (IP core) is independent. 1.1 Synchronizer: Fig1.Introduction to synchronizer in two clock domain Consider two digital systems which are working at different clocks say system1 is working at clock1 and system2 is working at clock2. When the data is transferred from one clock domain to another clock domain data synchronization is required. These two digital systems require a block to communicate with each other. This synchronization is performed by the synchronizer. A synchronizer samples an Corresponding Author: Ankush S. Patharkar asynchronous signal and outputs a version of the signal that has transitions synchronized to the local clock. The significance of the synchronizer is it tries to synchronize the data transfers from one system to another. `The parameters associated to synchronizer are clock, data rate and timing window (setup and hold time). 1.2 Need of Synchronizer: 1) Any asynchronous input from the outside world to a clocked circuit represents a source of unreliability. 2) There is always some residual probability that the clocked circuit will sample the asynchronous signal just at the time that it is changing. 3) From a specification point of view, synchronous elements such as flip flops specify a Setup time and a Hold time. 4) The problem of metastability propagating into synchronous systems is to use a synchronizing circuit to take the asynchronous input signal, and align it to the timing regimen of the rest of the system. 5) To minimize the probability of this occurring and propagating to the output of the synchronizer. 6) This can usually be achieved with a two stages or three stages synchronizer. 1.3 Synchronizer failure and Metastability: Metastability is a potentially catastrophic event that can occur when asynchronous inputs and flip-flops are used. As the flip flops have only two stable states i.e. 0 and 1. But all have third metastable state half way between 0 and 1. At this metastable state we cannot predict the output. The metastability occurs when setup and hold time violated 2013, IJSRCSE All Rights Reserved 43

which puts the synchronizer into metastability. When an output becomes metastable, it will be between the high and the low states. After a certain amount of time, the output unpredictably reverts to either a high or a low state. Metastability can be predicted by using the equation of MTBF. The reliable synchronizer design consisting of cascaded two D flip flop in which asynchronous input is applied from another application. As we know when setup and hold time violated then metastability occurs. The probability that a flip-flop stays in the metastable state decreases exponentially with time. Therefore, any scheme that delays using the signal can be used to decrease the probability of failure. If the clock period is greater than metastability resolution time plus FF2 setup time, FF2 gets a synchronized version of ASYNCIN. Multi-cycle synchronizers (using counters or more cascaded flip-flops) are even better. Probability of the failure is given as, Fig2. Occurrence of metastability If the system uses a synchronizer output while the output is still in the metastable state causes synchronizer failure. 2. ANALYSIS OF EXISTING SYNCHRONIZER Synchronizers are classified as follows, 1) Two flop synchronizer. 2) Data delay synchronizer. 3) Dual data delay synchronizer. 4) Clock delay synchronizer. 5) FIFO synchronizer. 6) Clock edge synchronizer. 7) Low latency clock edge synchronizer. 2.1 Comparison of various synchronizers Synchronizer Latency Throughput (cycles) Two flop 1-2 1/Latency Data delay 0-1 1 Dual data delay 0-1 1 Clock delay 0-1 1 FIFO 0-1 1 Clock edge 5 1 Low latency clock edge 0-1 1 Rate of entering metastability computed above to drive the rate of expected failure is, The inverse of failure rate is MTBF. The MTBF can be calculated by using Quartus II software for the synchronizer. 2.3 Circuit: Fig4. Synchronizer chain 2.4 Observed Simulation result 2.2 Two flop synchronizer: Fig3. Two flop synchronizer with two D flip flop Fig5. Simulation result 2013, IJSRCSE All Rights Reserved 44

3. Data rate modeling for analyzing the synchronizer: Data rate is defined as the maximum data bytes transferred by the transmitter at its operating frequency. As the synchronizer is used between two clocks domain application the sender transmits the data at particular data rate. The data rate may vary depends upon the application which is to be applied to synchronizer. There may be many application transmits data with their data rate applied to only one synchronizer. So in order to study how synchronizer handles data rate, for this the data rate model using various blocks is shown below, Fig8. Simulation result shows data loss Following graph shows the comparative percentage of data loss with frequency at receiver side. Fig6. Data rate modeling It consisting of random number generator, delay module, multiplexer, counter, synchronizer and memory. Application 1 (random generator, delay module, mux, counter) is working at clock1 while synchronizer and application 2(memory) is working at clock 2. The random generator is nothing but the LFSR which generates random data bytes. Delay module delays these bytes at particular interval. Mux and counter generate the data rate. This variable data rate is given to the synchronizer, it tries to synchronize the data with memory which are working at different clock. Here the three cases are studied shown below, 3.1 Case 1) Sender with frequency 25 MHz and receiver with frequency 50MHz without synchronizer. Here in this case there will be no data loss as receiver is working at more frequency. Fig9. Graph shows percentage of data loss Thus the percentage of data loss decreases with increase in frequency. As above two cases shows if sender is having frequency say F1and receiver have F2 and F2>F1 then there is no data loss. But F1>F2 causes significant data loss depending upon the difference in F1 and F2. 3.3 Case 3) Sender with frequency 25MHz and receiver with frequency 20MHz with synchronizer. The synchronizer is having three parameters i.e. clock, data rate and timing window (setup and hold time). Due to setup and hold time violations, the synchronizer goes in metastable state. Following tables shows timing window violation which causes metastability, 1) Sender frequency=25mhz Receiver frequency=20mhz Setup time=20 ns Hold time=25 ns Fig7. Simulation result shows no data loss 3.2 Case 2) Sender with frequency 25MHz and receiver with frequency 20MHz without synchronizer. Here in this case there will be data loss as frequency of receiver is less. Data (D) Clock Setup/Hold violation 232 235 20 232 235 25 280 285 20 280 285 25 324 335 20 324 335 25 368 385 20 368 385 25 412 435 25 464 485 25 732 735 20 2013, IJSRCSE All Rights Reserved 45

732 735 25 784 785 20 784 785 25 828 835 20 828 835 25 872 885 20 872 885 25 920 935 20 920 935 25 964 985 25 Analog modeling consisting of master latch, slave latch and transmission gates as shown above. In metastability, the voltage levels of nodes A and B of the master latch are roughly mid-way between logic 1 (VDD) and 0 (GND). Exact voltage levels depend on transistor sizing and are not necessarily the same for the two nodes. 2) Sender frequency=25 MHz Receiver frequency=20mhz Setup time=4ns Hold time=5ns Data (D) Clock Setup/Hold violation 232 235 4 232 235 5 732 735 4 732 735 5 784 785 4 784 785 5 From above tables we conclude that as the timing window decreases the violation decreases which leads to decrease in metastability. Fig12. Circuit realization 4.1 RESULT ANALYSIS As the clock becomes low the voltage at node A becomes high and voltage at node B becomes low. As node A is high and input Data (D) changes from 0 to 1, the voltage at node A drops and voltage at node B rises. Again D changes from 1 to 0 and still node A is high, shows voltage drop at node A. This condition occurs only when node A is high and output is low. Fig10. Graph shows reduction in Metastability 4. ANALOG MODELING FOR ANALYZING METASTABILITY Fig13. Simulated result Fig11. Analog modeling Fig14. Simulated result 2013, IJSRCSE All Rights Reserved 46

However the violation due to change of input in timing window can be overcome and we can exit from metastability. 5. CONCLUSION When many applications works on different clock then for better communication between them needs synchronizer. Synchronizer tries to synchronize the different clock domains for communication. But due to specification parameters of synchronizer causes metastability. However this metastability cannot be avoided as input to the synchronizes is asynchronous. But we can minimize the occurrence of metastability by parameters of synchronizer. Synchronizer performance is based on MTBF(mean time between failures). [13] C. Dike and E. Burton, "Miller and Noise Effects in a Synchronizing Flip-Flop," IEEE Journal of Solid-State Circuits. [14] J. Jex and C. Dike, A fast resolving BiNMOS synchronizer for parallel processor interconnect, -. IEEE Journal of Solid-State circuits. [15] R. Ginosar and R. Kol, Adaptive Synchronization. [16] D.G. Messerschmitt, Synchronization, in T.H. Meng, Synchronization Design for Digital Systems, Kluwer Academic Publishers. [17] D.J. Kinniment, A. Bystrov, and A.V. Yakovlev, Synchronization Circuit Performance, IEEE. As the data rate increases MTBF reduces which increase the probability of failure of synchronizer. The failure of synchronizer occurs only when data changes in timing window. However metastability can be reduced if timing window is very small that again depends upon application. Also the percentage of data loss reduces with increase in frequency at receiver side with respect to receiver frequency. REFERENCES [1] Keeping Metastability from Killing Your Design, Grosse, Debora. Unisys Report. June 23, 1994. Available[online]hppt://archives.einsite.net/archives/ed nmag/reg/1994/062394/13df2.htm [2] Metastable Response in 5-V Logic Circuits, Haseloff, Eilhard. Texas Instruments Report.Feb1997available[online]http://www.ti.com/sc/d ocs/psheets/abstract/apps/sdya006.htm. [3] Metastability in Altera Devices, version 4. Altera Application Note 42. May 1999 available[online] http://www.altera.com/literature/an/an042.pdf. [4] T. H.-Y. Meng, Synchronization Design for Digital Systems, Kluwer Academic Publishers, 1991. [5] D. J. Kinniment, Synchronization and Arbitration in Digital Systems, Wiley, 2008. [6] W. J. Dally and J. W. Poulton, Digital System Engineering, Cambridge University Press, 1998. [7] C. Dike and E. Burton, Miller and noise effects in a synchronizing flip-flop,ǁ IEEE Journal of Solid. [8] S. Yang, M. Greenstreet, Computing synchronizer failure probabilities,ǁ Proc. Design Automation and Test in Europe (DATE), pp. 1 6, 2007. [9] R. Ginosar, Fourteen Ways to Fool Your Synchronizer, Proc. IEEE Int l Symp. Asynchronous Circuits and Systems (ASYNC 03), IEEE CS Press, 2003, pp. 89-96. [10] S. Beer, R. Dobkin and R. Ginosar, "Metastability measurements of several ASIC and FPGA synchronizers," Technical Report, EE Dept, Technion, Oct. 2009. [11] Digital design principles and practices by John F. Wakerly. [12] Timing Measurement by Semiat Ginosar. 2013, IJSRCSE All Rights Reserved 47