January 26, 2013

Lock-Up Latch: Implication on Timing

Lock-Up Latches are important elements for any STA engineer while closing timing on their DFT Modes: specially the Hold Timing Closure of the Shift Mode. While shifting, the scan chains come into picture, which are nothing but the chains of Flops involving the output pin of one flop, connected to the Scan-Input or Test-Input pin of the other flop, and so on, forming a chain. 

Now, imagine that we have two functionally asynchronous domains 1 and 2. Functionally asynchronous means that during the normal mode of operation (Functional Mode), the two domains do not interact with each other. However, very rarely do the designers have the liberty to make a separate scan chain for functionally asynchronous domains. Let's consider the following scenario: where domain 1 has the average clock latency of 3ns, and domain 2 has the average latency of 6ns. And the time period of the test clock is, let's say, 10ns.


Now, let's see the timing checks for this scenario. The output of the last flop of the domain 1 is in scan-chain and connected to the Test-Enable input of the first flop of domain 2. The check would be like: 

Owing to the positive clock skew, the setup check would be relaxed, but hold would be critical. Two possible options to fix the hold timing:
  • Insert the buffers, to add sufficient delay, so that hold is finally met.
  • To add the Lock-Up Latch between the two flops where scan chain crosses the functional domains.
The first might not be a robust solution because the delay of the buffers would vary across the PVT Corners and RC Corners. In the worse case, there might be a significant variation in the delays across corners and you might witness closure of timing in one corner, but violation in other corner!

Second solution is a more robust solution because it obviates the above scenario. Hence see how it does it.
 

Timing Check would be like:


Hence, both setup and hold checks are relaxed!!
[Please note that in the above circuit, the latch is a negative level triggered latch.]

73 comments:

  1. Suppose, clk1 is of very high freq . then , How would you ensure Setup time is met for lock-up latch?

    ReplyDelete
  2. Hi Shubham. That is a very good question. Yes, I concede that having a lock-up latch would make your setup a half cycle check and it would become critical. But note that we placed a lock-up latch to fix the hold violation!! And if the path had been setup critical to begin with, it wouldn't have been hold critical! Because it is very unlikely that the same path would be setup as well as hold critical.

    Thanks for the question!

    ReplyDelete
    Replies
    1. Hi, can't time borrowing for this negative level-sensitive latch relaxed our setup constraint in the case of a high freq. clock. Or time borrowing is not to be considered in this design? Correct me if I'm wrong. Thanks.

      Delete
    2. time borrowing helps when latch is capturing.
      time borrowing worsens when latch is launching.
      the author is right that time borrowing is a good to know in this situation as scan paths are never setup critical. You run with a 50MHz clk and so setup won't be an issue

      Delete
  3. How about inverting the clock going to FF2? it should also work the same way right?

    =R

    ReplyDelete
    Replies
    1. From timing perspective, yes. But that would alter the functionality of the circuit. Timing often follows the design, by inverting the clock going to FF2 we would be flirting with that established norm. It might or might not be fine depending on the architectural liberty.

      Delete
  4. I think here latch is transparent when clk=0 and holds the value when clk=1 Am I correct?

    ReplyDelete
    Replies
    1. Oh yes. I think I missed the bubble at the clock pin of the latch. Yes, it is a negative level triggered latch, so you re right.

      Thanks for pointing it! :)

      Delete
    2. Hi Naman,

      Could you please let me know, why are we using a latch to fix this problem ? Why not a negedge flop instead of negative level latch(lock up latch).

      Delete
    3. Set up issues may occur for the negedge Flop

      Delete
    4. If you use a neg-level latch (lock-up latch), won't we have setup issues between the latch and FF2? The setup check will be between 2nd rising edge of CLK1 (closing edge of latch - due to time borrowing) and 2nd rising edge of CLK2. This difference is only 3ns. Isn't this too little to meet setup?

      Delete
  5. clk1-latch hold check is wrong.
    It should be from clk1 posedge to the previous negative level of latch

    ReplyDelete
    Replies
    1. No.. your understanding is wrong,


      the hold check of clk1-latch is between the second rise-edge of DFF1 clock and the second rise-edge of latch clock,

      which equals the first edge of DFF1 clock and the first rise-edge of latch clock,
      just as show in Fig 1 (red line).


      you could refer to :http://tech.tdzire.com/latch-setup-and-hold-timing-checks-basics/


      In my own words,

      the latch is used to capture DFF1/Q output when the clock is low level.

      in order to not capture the unexpected data, the DFF1/Q output should be stable till the end of latch1 clock low pulse (means till its rise edge).
      which clock edge will cause DFF1/Q change?
      the answer is the second rise-edge of DFF1 clock.

      (westeast1984#163.com)
      so the hold check should be done between the second rise-edge of DFF1 clock and the second rise-edge of latch clock

      Delete
    2. which clock edge will cause DFF1/Q unexpected change when latch want to capture the previous cycle data of DFF1 output?

      the answer is the second rise-edge of DFF1 clock.

      Delete
    3. Or in the words of a solvnet article (18067):

      "For every setup check there are potentially two hold checks, one making sure that the data we launch now does not interfere with the previous capture and another hold check making sure that the data we launch next does not interfere with the data that we intend to capture"

      golden words.

      Delete
    4. Naman , Vijay
      What vijay says about two hold checks for every setup check , doesn't boil down to same thing when we close hold from timing closure point of view ?

      Delete
  6. Can someone explain me why are clk1-latch setup check done at the latch's falling (opening) edge? Aren't a latch's setup/hold time checks relevant only at the inactive (closing) edge (rising, in this case)? I have done paper/pencil latch internals' data flow timing diagrams to confirm this.

    ReplyDelete
    Replies
    1. Because like said in earlier comments, mentioned latch is negative edge triggered.

      Delete
  7. So truly speaking asynchronicity of the two domains is the not main idea here. Any two heavily skewed clk domains would end up having a potential hold violation in the scan chain, requiring a lock up latch. right ?

    ReplyDelete
  8. What about scenario where the clock skew is greater than half the clock period(+3ns in this case)? There will be hold violation again.

    ReplyDelete
    Replies
    1. Hi Kalpana. Your assertion is absolutely correct! But let's consider some practical numbers here. This path would be applicable for shift mode, where the clock frequencies are in the range of 20-40 MHz (Why? You might want to read this post: http://vlsi-soc.blogspot.in/2013/04/puzzle-dft-shift-frequency.html). This clock frequency translates into a clock period of 25 ns to 50 ns, which further translates into a half clock period of 12.5 ns to 25 ns.
      Now, if the skew between any two domain is this much, it can only point to one thing: That the CTS engineer has done a poor job while designing the clock tree! The maximum clock latency that you may observe in a typical SoC could be upto 7-8 ns. So, the maximum global skew would never really exceed the maximum clock latency. Therefore, it is safe to say that the scenario you mentioned won't happen in a practical scenario with a good CTS!

      Also, please note that 3ns in this case is not the half clock period, but the skew.

      Delete
    2. Hi Naman,

      Let us consider two asynchronous scan clocks instead of two scan clocks from the same source with known skew. In this case there is a possibility of their skew being greater than half the clock period. Will this not result in hold violation ? Or even set up violation?

      Delete
  9. Hi NMN
    Can you tell why have you shown a transition from START of Latch instead of END of latch transparent time, as that would be worst case setup time - I am talking in case of Latch-to-Reg path.
    Thanks

    ReplyDelete
    Replies
    1. Hi EE,
      While your assertion that the worst case setup check would be from the end of latch transparent time is correct, in this post, I meant to illustrate the problem that this lock-up latch solves. The setup check from latch to register is not important here given the fact that we won't have any logic in the scan chain and shifting would be done at a slower frequency anyway.

      Regards,
      Nmn.

      Delete
  10. Enjoyed reading all those good set of comments. Well captured.

    ReplyDelete
  11. what is latch transparency with in a scan chain, in what scenarios latch is transparent ?

    ReplyDelete
  12. Thanks a million Naman. Excellent blog. Keep them coming.

    ReplyDelete
  13. what if this lockup latch is reported in func mode timing result (endpoint)? is this still valid path? or something is wrong?

    ReplyDelete
  14. For suppose if i assume clock1 latency=1.8ns and clock2 latency=2.5ns then is it
    possible to hold and setup time violations? if iam wrong plz tell me.

    ReplyDelete
    Replies
    1. There can never be set up and hold time violations on one single timing path if timing path is between output of one flop to input of another flop. But with launching flop and one capture flow you have 4 timing paths which might have mix of set up and hold violations.

      Delete
  15. This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things. locksmith Leeds

    ReplyDelete
  16. Strumming my pain with his fingers. Singing my life with his words.|chantalmeNOTHIN| Prabook profiles

    ReplyDelete
  17. Hey man, .This was an excellent page for such a hard subject to talk about. I look forward to reading many more great posts like these. Thanks Daniel Gordon donates tech to LA community

    ReplyDelete
  18. If you are looking for more information about flat rate locksmith Las Vegas check that right away. monthly backlinks package

    ReplyDelete
  19. Choosing suitable clothing can improve everyday comfort and simplify personal styling. Ultra light clothing encourages individuals to consider lightweight materials, versatile designs, and comfortable fits. These elements make it easier to assemble outfits for casual events, daily errands, and relaxed gatherings while maintaining a polished and contemporary appearance. Ultra light clothing

    ReplyDelete
  20. nạp tiền go88 giúp tôi đánh giá cách trình bày những thông tin quan trọng ngoài khu vực trò chơi. Điều khoản sử dụng, chính sách bảo mật và thông tin đơn vị vận hành là các nội dung người truy cập nên tìm hiểu trước khi đăng ký tài khoản. Tôi quan tâm đến việc các đường dẫn có dễ tìm hay không, văn bản có dễ đọc và những điều kiện liên quan có được diễn giải rõ ràng. Bên cạnh các danh mục như thể thao, slot game và casino trực tuyến, khu vực hỗ trợ cũng cần được tổ chức nhất quán. Theo tôi, giao diện chỉ thực sự hữu ích khi người dùng có thể tiếp cận thông tin cần thiết mà không phải tìm kiếm qua quá nhiều bước. nạp tiền go88

    ReplyDelete
  21. Nền tảng Sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng.
    Website: https://sunwinv.me/

    ReplyDelete
  22. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sun-win.fit/dang-nhap-sunwin

    ReplyDelete
  23. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sun-wingame.com/dang-nhap-sunwin

    ReplyDelete
  24. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwin77.club/dang-nhap-sunwin

    ReplyDelete
  25. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwin.net.vc/dang-nhap-sunwin

    ReplyDelete
  26. KUWIN làm tôi quan tâm đến khả năng hiển thị dữ liệu tại khu vực thể thao. Khi đánh giá một danh mục có nhiều sự kiện, tôi thường xem xét cách sắp xếp lịch thi đấu, tên đội, thời gian và kết quả. Những bộ môn như bóng đá, cầu lông và bóng chuyền có đặc điểm dữ liệu riêng nên cần được phân loại phù hợp. Tôi cũng chú ý đến khả năng chuyển giữa các giải đấu mà không làm mất định hướng. Bảng thông tin dễ đọc, tiêu đề rõ nghĩa và bộ lọc thuận tiện là những yếu tố giúp trải nghiệm theo dõi trở nên mạch lạc hơn, dù vẫn cần kiểm tra trực tiếp… KUWIN

    ReplyDelete
  27. Kuwin khiến mình quan tâm đến cách giao diện duy trì khả năng đọc khi lượng thông tin trên màn hình tăng lên. Mình thường quan sát kích thước chữ, khoảng cách giữa các dòng và cách tiêu đề được phân biệt với phần mô tả. Khi tìm hiểu Thể thao, mình chú ý đến việc những nhóm thông tin có được chia thành các phần dễ theo dõi hay không. Có lúc mình đọc từ đầu đến cuối một khu vực để xem nhịp trình bày có giúp duy trì sự tập trung. Những đoạn quá dày có thể khiến mắt khó xác định điểm chuyển giữa các nội dung. Theo mình, khả năng đọc tốt phụ thuộc nhiều vào cách phân cấp và phân bổ không gian. Kuwin

    ReplyDelete
  28. UU88 tình cờ được mình biết đến khi đang đọc một bài viết về quản lý tài liệu và xem phần nguồn tham khảo ở cuối trang. Thấy tên này nằm trong danh sách nên mình mở thử cho biết, chủ yếu tò mò xem cách trình bày có khác những công cụ mình từng thấy không. Mình chỉ lướt qua vài trang, không đi sâu vào từng tính năng. Điều dễ nhận thấy là bố cục khá sạch, tiêu đề và nội dung được phân biệt rõ, chuyển qua các khu vực cũng tương đối thuận. Xem nhanh trên máy tính lẫn điện thoại đều không tạo cảm giác quá rối. UU88

    ReplyDelete
  29. làm tôi quan tâm đến khả năng hiển thị dữ liệu tại khu vực thể thao. Khi đánh giá một danh mục có nhiều sự kiện, tôi thường xem xét cách sắp xếp lịch thi đấu, tên đội, thời gian và kết quả. Những bộ môn như bóng đá, cầu lông và bóng chuyền có đặc điểm dữ liệu riêng nên cần được phân loại phù hợp. Tôi cũng chú ý đến khả năng chuyển giữa các giải đấu mà không làm mất định hướng. Bảng thông tin dễ đọc, tiêu đề rõ nghĩa và bộ lọc thuận tiện là những yếu tố giúp trải nghiệm theo dõi trở nên mạch lạc hơn, dù vẫn cần kiểm tra trực tiếp…link dự phòng fly88

    ReplyDelete
  30. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sun-vin.online/dang-nhap-sunwin

    ReplyDelete
  31. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sun.reviews/dang-nhap-sunwin

    ReplyDelete
  32. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwin88.design/dang-nhap-sunwin

    ReplyDelete
  33. tình cờ được mình biết đến khi đang đọc một bài viết về quản lý tài liệu và xem phần nguồn tham khảo ở cuối trang. Thấy tên này nằm trong danh sách nên mình mở thử cho biết, chủ yếu tò mò xem cách trình bày có khác những công cụ mình từng thấy không. Mình chỉ lướt qua vài trang, không đi sâu vào từng tính năng. Điều dễ nhận thấy là bố cục khá sạch, tiêu đề và nội dung được phân biệt rõ, chuyển qua các khu vực cũng tương đối thuận. Xem nhanh trên máy tính lẫn điện thoại đều không tạo cảm giác quá rối. nạp tiền go88

    ReplyDelete
  34. khiến mình quan tâm đến cách giao diện duy trì khả năng đọc khi lượng thông tin trên màn hình tăng lên. Mình thường quan sát kích thước chữ, khoảng cách giữa các dòng và cách tiêu đề được phân biệt với phần mô tả. Khi tìm hiểu Thể thao, mình chú ý đến việc những nhóm thông tin có được chia thành các phần dễ theo dõi hay không. Có lúc mình đọc từ đầu đến cuối một khu vực để xem nhịp trình bày có giúp duy trì sự tập trung. Những đoạn quá dày có thể khiến mắt khó xác định điểm chuyển giữa các nội dung. Theo mình, khả năng đọc tốt phụ thuộc nhiều vào cách phân cấp và phân bổ không gian. https://gg-88.com/

    ReplyDelete
  35. tình cờ được mình biết đến khi đang đọc một bài viết về quản lý tài liệu và xem phần nguồn tham khảo ở cuối trang. Thấy tên này nằm trong danh sách nên mình mở thử cho biết, chủ yếu tò mò xem cách trình bày có khác những công cụ mình từng thấy không. Mình chỉ lướt qua vài trang, không đi sâu vào từng tính năng. Điều dễ nhận thấy là bố cục khá sạch, tiêu đề và nội dung được phân biệt rõ, chuyển qua các khu vực cũng tương đối thuận. Xem nhanh trên máy tính lẫn điện thoại đều không tạo cảm giác quá rối. https://mm-88.org/

    ReplyDelete
  36. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwin8m.com/dang-nhap-sunwin

    ReplyDelete
  37. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwinn.fit/dang-nhap-sunwin

    ReplyDelete
  38. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwinn.onl/dang-nhap-sunwin

    ReplyDelete
  39. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwinc.store/dang-nhap-sunwin

    ReplyDelete
  40. khiến mình quan tâm đến cách giao diện duy trì khả năng đọc khi lượng thông tin trên màn hình tăng lên. FLY88

    ReplyDelete
  41. khiến mình quan tâm đến cách giao diện duy trì khả năng đọc khi lượng thông tin trên màn hình tăng lên. Mình thường quan sát kích thước chữ, khoảng cách giữa các dòng và cách tiêu đề được phân biệt với phần mô tả. Khi tìm hiểu Thể thao, mình chú ý đến việc những nhóm thông tin có được chia thành các phần dễ theo dõi hay không. Có lúc mình đọc từ đầu đến cuối một khu vực để xem nhịp trình bày có giúp duy trì sự tập trung. Những đoạn quá dày có thể khiến mắt khó xác định điểm chuyển giữa các nội dung. Theo mình, khả năng đọc tốt phụ thuộc nhiều vào… trang chủ fly88

    ReplyDelete
  42. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwinv.art/dang-nhap-sunwin

    ReplyDelete
  43. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng.
    Website: https://sunwinn.uk.net/dang-nhap-sunwin

    ReplyDelete
  44. Nền tảng Đăng nhập sunwin (sun win) phục vụ cộng đồng game thủ Việt với hơn 280 tựa slot nổ hũ cùng sảnh game bài dân gian truyền thống. Jackpot tích lũy chéo của sunwin đã chạm 2.4 tỷ đồng. Website: https://sunwinwin.london/dang-nhap-sunwin

    ReplyDelete
  45. đăng nhập go88 mang đến giao diện hiện đại cùng nhiều tính năng hữu ích. Trải nghiệm được tối ưu để phù hợp với nhiều thiết bị khác nhau. http://taigo88.tel/dang-nhap-go88/

    ReplyDelete
  46. đăng nhập go88 mang đến giao diện hiện đại cùng nhiều tính năng hữu ích. Trải nghiệm được tối ưu để phù hợp với nhiều thiết bị khác nhau. http://tx-go88.com/dang-nhap-go88/

    ReplyDelete
  47. đăng nhập go88 mang đến giao diện hiện đại cùng nhiều tính năng hữu ích. Trải nghiệm được tối ưu để phù hợp với nhiều thiết bị khác nhau. http://vipgo88.xyzdang-nhap-go88/

    ReplyDelete
  48. đăng nhập go88 mang đến giao diện hiện đại cùng nhiều tính năng hữu ích. Trải nghiệm được tối ưu để phù hợp với nhiều thiết bị khác nhau. http://choigo88.pro/dang-nhap-go88/

    ReplyDelete
  49. đăng ký go88 Gần đây tôi mới bắt đầu viết blog, những thông tin mà bạn cung cấp trên trang web này đã giúp ích cho tôi rất nhiều. Cảm ơn bạn vì tất cả thời gian và công sức đã bỏ ra.

    ReplyDelete
  50. đăng nhập go88 mang đến giao diện hiện đại cùng nhiều tính năng hữu ích. Trải nghiệm được tối ưu để phù hợp với nhiều thiết bị khác nhau. https://choigo88.org/dang-nhap-go88/

    ReplyDelete
  51. đăng nhập go88 mang đến giao diện hiện đại cùng nhiều tính năng hữu ích. Trải nghiệm được tối ưu để phù hợp với nhiều thiết bị khác nhau. https://choigo88.net/dang-nhap-go88/

    ReplyDelete
  52. cn3789 Những góc nhìn của bạn thực sự giúp tôi nhận ra nhiều điều mà trước đây tôi chưa từng cân nhắc đến. Blog này đang trở thành một nguồn tài liệu học tập tuyệt vời đối với tôi. Hãy tiếp tục phát huy nhé!

    ReplyDelete
  53. 8xbet đăng nhậpGần đây tôi mới bắt đầu viết blog, những thông tin mà bạn cung cấp trên trang web này đã giúp ích cho tôi rất nhiều. Cảm ơn bạn vì tất cả thời gian và công sức đã bỏ ra.

    ReplyDelete
  54. Gần đây tôi mới bắt đầu viết blog, những thông tin mà bạn cung cấp trên trang web này đã giúp ích cho tôi rất nhiều. Cảm ơn bạn vì tất cả thời gian và công sức đã bỏ ra. uu88

    ReplyDelete
  55. 25+ member off-page SEO agency. 3,600+ mixed backlinks & Google Entity Stacking. 70%+ indexing. iGaming, Crypto & all niche Website : https://www.fiverr.com/mdabdullah3770/do-all-in-one-off-page-seo-mega-backlinks-package-with-google-entity-stacking

    ReplyDelete