CDC Synchronizer | 2 flop synchronizer | Two flop synchronizer |2 stage synchronizer| VLSI Interview

Поділитися
Вставка
  • Опубліковано 31 жов 2024

КОМЕНТАРІ • 31

  • @Electronicspedia
    @Electronicspedia  2 роки тому

    Please Like, Share and Subscribe to my channel ua-cam.com/channels/3mTACG8vPWsHQFMfxzeDZg.html

  • @WAIKARMAYUR
    @WAIKARMAYUR Рік тому +1

    I think the reason for keeping two flops closer in 2 flop synchronizer is to reduce wire delay so we get maximum time to resolve metastability and settle to stable value, you were mentioning reason is metastable signal will decay and disappear that part I did not get.

    • @Electronicspedia
      @Electronicspedia  Рік тому +1

      Yes exactly, if they are separated apart then the data signal might get corrupted because of wire length. It adds the delay. We may not be able to sample the signal at desired frequency.

  • @pallakishoreyadav4537
    @pallakishoreyadav4537 5 місяців тому +4

    sir once the data enters metastable state it can settle to any value how can we ensure that we are sampling correct data at the 2nd flop

  • @kpark5467
    @kpark5467 8 місяців тому

    Nice explanation, Thank you. How do you set SDC constraints for CDC on 1st_flop and 2nd_flp ? and what else SDC do I need to set ?

  • @rohanyadala9096
    @rohanyadala9096 8 місяців тому

    Super..

  • @sasikiran3530
    @sasikiran3530 2 роки тому +1

    Good explanation

  • @danielarthur7739
    @danielarthur7739 7 місяців тому

    I have a question,
    Im using clock gating in my design. My question is: the clock gating should affect the dual flop synchronizer or the synchronizer must have the free clock always?

  • @77uu22
    @77uu22 8 днів тому

    Hi,
    One question on 2 flop synchronizer, the settling of metastability causes latency issue at the recever side, as for a signal changing from 0->1 at flop1 might settle to 1 or 0 before getting sampled by flop2, but will settle to value 1 in next clock
    So if it is settle in first clock the latency is 2 else the latency will be 3
    How to update design to make this latency a fix value
    Considering both clock same frequency with phase difference

    • @Electronicspedia
      @Electronicspedia  8 днів тому

      Hi, 2 flop synchronizer are typically used for quasi-static signals, meaning they will be high for enough cycles. In such cases the settling after one extra cycle should be fine. The destination might see a signal after 1 extra cycle. This is acceptable.

    • @77uu22
      @77uu22 8 днів тому

      ​@@Electronicspedia Thank you Sir for your reply
      But if the destination is not able to tolerate this latency uncertainty even of 1 clock
      What can we do to provide fixed latency

  • @travelfreakphani5933
    @travelfreakphani5933 3 місяці тому

    thanks sir !

  • @srinuvadthya4879
    @srinuvadthya4879 2 роки тому +4

    sir as the signal is altered in first ff How can we ensure that we get correct output after 2nd ff

    • @Electronicspedia
      @Electronicspedia  2 роки тому +5

      Hi Srinu, signal might go into metastable state on 1st FF, but eventually 2nd flop may not see the this as the signal gets settled to a stable value. This is true for upto certain frequency.
      But for high speed clocks say above 2GHz, 2nd FF also might go into metastability, in such cases 3rd stage FF synchronizer is required.

    • @SaiRam-el6gk
      @SaiRam-el6gk 2 роки тому +1

      @@Electronicspedia Hi sir, how can we ensure that the stable value after metastable state from 1st flop is the correct data that is settled to a stable value. There might be a chance that the data may be corrupted after metastable state and the same data is captured by the 3rd ff?

    • @Electronicspedia
      @Electronicspedia  2 роки тому +2

      Hi, yes whatever you told is correct, there might be a chance that data may be still on metastable condition even after 2nd stage,
      Usually this information comes from .lib characteristics of synchronizer. There will be some range of frequency information will be provided upfront, there will be a maximum frequency of operation below which the two stage synchronizer will be able to sample data properly, but if it sampling frequency crosses the limit, it might enter metastability.
      In such cases we may have go for 3 stage or even higher stage synchronizer.
      Hope this is clear.

  • @Saath_Chale_toh_Jeetenge
    @Saath_Chale_toh_Jeetenge 2 роки тому +1

    Sir, I am a little bit confused about you tell us that two flops should be closer to each other to avoid getting the wrong output. But sir I think the clock is the only one responsible for this, because of the small delay of the path nothing will happen!!!!! That delay is for sure will be less than clock period???

    • @Electronicspedia
      @Electronicspedia  2 роки тому

      Hi, When I mention the distance between two flops should be closer to reach other is actually we should be using standard cells, which are nothing but .lib cells or library cells for which there will be a timing spec available.
      If the Frequency of sampling domain is higher, we might end up in sampling wrong data, in such conditions we should go for 3 or 4 flops based standard synchronizer cells.

  • @jamesbondgaming6901
    @jamesbondgaming6901 Місяць тому

    Here we use same clk for both ff there cant be metastable state here

  • @shubhamshahi6280
    @shubhamshahi6280 5 місяців тому +2

    No clearity ,I am still confused.

  • @shuvambiswas458
    @shuvambiswas458 2 роки тому +1

    Can you Suggest book for this

    • @Electronicspedia
      @Electronicspedia  2 роки тому

      I am not aware of any books as such. But you can definitely refer to papers from Sunburst design they are really great.

    • @shuvambiswas458
      @shuvambiswas458 2 роки тому

      @@Electronicspedia thbk you sir

    • @shubhamshahi6280
      @shubhamshahi6280 5 місяців тому

      ​@@Electronicspedia means CDC is not present in standard textbooks?

  • @PremKumar-jq3wg
    @PremKumar-jq3wg 2 роки тому +1

    How we can calculate number of flops in synchronizer

    • @Electronicspedia
      @Electronicspedia  2 роки тому +1

      Hi Prem, No. Of Flops in the synchronizer depends on metastability, i.e. what is the frequency of sampling domain or destination clock freq and also on the frequency of data rate change and how these standard cell synchronizers are modelled in each technology nodes.

    • @PremKumar-jq3wg
      @PremKumar-jq3wg 2 роки тому +1

      @@Electronicspedia Thanks you sir responding to me, Keep doing more videos, I will also share your videos in my circle

    • @Electronicspedia
      @Electronicspedia  2 роки тому

      @Prem Kumar Thank You for your Support. 👍

  • @sasikiran3530
    @sasikiran3530 2 роки тому +1

    Nice explanation