SlideShare a Scribd company logo
1 of 5
Download to read offline
This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval.
The Challenge of the Clock Domain
Crossing verification in DO-254
Florent Checa
Arion Entreprise‘s digital conception engineer
April 2012
This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval.
The context
In order to meet high-performance and low-power requirements, FPGA and ASIC designs often
include many separate clock domains. This practice creates Clock Domain Crossing (CDC), which
occurs whenever a signal is transferred from a clock domain to another. However, these signals
may cause data corruption issues, only occurring during post-layout verification, because
conventional RTL verification techniques cannot detect resynchronization problems. As a
consequence, critical bugs may escape the verification process and simulation does not accurately
predict asynchronous silicon behavior. To predict these problems and debug a design, the Mentor
Graphics® CDC analysis tools, 0-In CDC, could be included in your DO-254 design flow.
CDC issues
Because there are many solutions to design CDC, designers have to check if their CDC
synchronization logics prevent data corruption across clock domains. Whenever there is a CDC
implementation, bugs could be introduced by several issues.
Metastability, the most commonly issue, could occurs when the signal’s target and source clocks
are asynchronous. They can have different frequencies or same frequencies but not in phase
alignment. If the signal state change doesn’t respect the setup or hold time of the target clock, it
may be entering in a metastable state before it randomly sets to a “1” or “0” logic value (Figure 1).
Output set randomly to "1"
or
to "0"
clock_1
clock_2
input
output
output’
Figure 1: Metastability
A metastable signal could causes data loss, where hardware values may differ from values
predicted by RTL simulation, causing unpredictable behavior in logic interpretation. As shown in
the Figure 2, the resynchronized signal may not match with the original and cycle by cycle
correspondence between the source and destination domain data are not respected.
This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval.
clock_1
clock_2
input
output
Clock edges too close
Figure 2: Metastability’s effects
This type of metastability effect can introduce reconvergence issue when the design uses
separately-propagated correlated signals. Due to variable delays introduced by the metastability,
invalid data can be inserted (Figure 3) and cause unexpected results. This intermediate value
which is an invalid state creates reconvergence bugs.
clock_2
clock_1
input[0]
output[0]
input[1]
output[1]
valid data
valid datainvalid data
Clock edges too close
Figure 3: Reconvergence
CDC can introduce another type of problem when the target clock frequency is lower than the
source clock one. As the figure 4 shows, some signal event may not be sampled by the destination
domain. In this case, informations are lost and the resynchronized sequence is corrupted.
clock_2
clock_1
input
output data loss
Figure 4: data loss
To avoid unpredictable behavior related to metastability, ASIC and FPGA designs must properly
implement the synchronization logic: synchronizers must be robust to metastability effects and
handshaking procotocol logic must ensure that buses are resynchronized only when they are
stable.
This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval.
O-In CDC analyses
The Mentor Graphics® CDC verification tools, 0-In CDC, allows designers to check all CDC paths.
CDC correct behaviors are verified thanks to two kinds of analysis, static and dynamic, which will
ensure that data is transferred correctly across clock domains.
The Static analysis, supporting a hierarchical approach, examines the RTL source code of the
design and identifies clocks, clocks domains, CDC signal and synchronizers. This structural analysis
lists all CDC signal paths and their associated CDC schemes and categorizes each CDC logic
according to a complete set of predefined CDC schemes. All of them are ranked in three
categories corresponding to their critical level of severity, and reported to the user. This analysis
highlights CDC paths liable to introduce metastability or reconvergence issues, like CDC paths
where synchronizer misses.
If the Static analysis examines the correctness of the CDC paths logic, it does not ensure correct
CDC functionality. To perform this task, the Dynamic analysis uses static analysis results as input
files. Based on the user-defined simulation test benches, all CDC schemes identified by the static
analysis are explicitly verified in dynamic conditions. The Dynamic analysis generates CDC protocol
monitors that use assertions to check to correct CDC functionality and ensure proper data
transfer. These protocol checkers are also used for the CDC-FX metastability analysis which
verifies that all CDC paths are metastability hardened, and reconvergence issues don’t introduce
error. For this dynamic simulation, metastability injection logic is extended to each CDC paths,
which causes the tested design to act like a hardware implementation with random metastability
effects. At the end of dynamic simulations, a coverage rate for each CDC checkers is provided to
the user to evaluate each CDC paths in dynamic conditions.
Thanks to CDC static and dynamic analyses, a complete and automatic CDC verification is
accomplished from the RTL source code. With this tool the verification flow is improved and
adapts itself to the increasing level of CDC paths in designs. The use of a CDC checker allows a
design team to found bugs earlier in the project planning and mainly before last implementation
phases. Another usage could be during IP inspection by the customer to assure enough
confidence in the product they will buy.
O-In CDC in DO-254 flows
The DO-254 provides guidance for the development of airborne electronic hardware. As a
consequence, in the avionic industry, hardware items must be DO-254 compliant. According to the
Design Assurance Level (DAL A to DAL E) the DO-254 defines methods and rules that must be
followed during design and verification processes, to ensure hardware item safety.
In response to the increasing CDC use in designs, the DO-254 standard takes close interest in CDC
verifying tools. 0-In CDC could complete the RTL code review by verifying correct CDC
implementation. Moreover, a metastability hardened design could be compliant with design
standard rules specifying how to describe CDC. In another hand, many requirements, like clock
specification requirements, don’t need test but code analysis verification. Here, 0-In CDC reports
could be used as verification mean for this type of requirement. Especially for hardware items
categorized as DAL A and B, where safety requirements are needed, 0-In CDC may be an added
value for the verification process.
This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval.
About us
DMAP
DMAP is focused on high reliability semiconductor application domains. With more than 40 years
of experience we are able to combine IP and SoC development for ASIC and FPGA target with high
reliability methods provided by the DO-254 guidance. High reliable domains as aeronautic,
medical, defense and space like others mass markets are sensible to time-to-market constraints
and a growing system complexity, that's why we offer to IP vendors the opportunity to address
new markets and to high reliable sub-contractor community to buy DO-254 ready IP to speed up
their development.
DMAP is Arion Entreprise’s components and services business unit.
For more information, please email: contact@dmap.fr or visit our website at www.dmap.fr
ARION Entreprise
ARION is delivering innovative solutions to keep industrial data transmission simple while
guarantying their performances (real-time, bandwidth optimization, deterministic transmission,
security and stability…).
ARION real-time products benefit from our significant experience in highly critical data
transmission environment and allow our customers to easily distribute applications across
industrial networks while keeping compatible with existing software and networks.
For more information, please email: contact@arion.fr or visit the company’s website
at www.arion.fr

More Related Content

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

The challenge of Clock Domain Verification in DO-254

  • 1. This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval. The Challenge of the Clock Domain Crossing verification in DO-254 Florent Checa Arion Entreprise‘s digital conception engineer April 2012
  • 2. This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval. The context In order to meet high-performance and low-power requirements, FPGA and ASIC designs often include many separate clock domains. This practice creates Clock Domain Crossing (CDC), which occurs whenever a signal is transferred from a clock domain to another. However, these signals may cause data corruption issues, only occurring during post-layout verification, because conventional RTL verification techniques cannot detect resynchronization problems. As a consequence, critical bugs may escape the verification process and simulation does not accurately predict asynchronous silicon behavior. To predict these problems and debug a design, the Mentor Graphics® CDC analysis tools, 0-In CDC, could be included in your DO-254 design flow. CDC issues Because there are many solutions to design CDC, designers have to check if their CDC synchronization logics prevent data corruption across clock domains. Whenever there is a CDC implementation, bugs could be introduced by several issues. Metastability, the most commonly issue, could occurs when the signal’s target and source clocks are asynchronous. They can have different frequencies or same frequencies but not in phase alignment. If the signal state change doesn’t respect the setup or hold time of the target clock, it may be entering in a metastable state before it randomly sets to a “1” or “0” logic value (Figure 1). Output set randomly to "1" or to "0" clock_1 clock_2 input output output’ Figure 1: Metastability A metastable signal could causes data loss, where hardware values may differ from values predicted by RTL simulation, causing unpredictable behavior in logic interpretation. As shown in the Figure 2, the resynchronized signal may not match with the original and cycle by cycle correspondence between the source and destination domain data are not respected.
  • 3. This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval. clock_1 clock_2 input output Clock edges too close Figure 2: Metastability’s effects This type of metastability effect can introduce reconvergence issue when the design uses separately-propagated correlated signals. Due to variable delays introduced by the metastability, invalid data can be inserted (Figure 3) and cause unexpected results. This intermediate value which is an invalid state creates reconvergence bugs. clock_2 clock_1 input[0] output[0] input[1] output[1] valid data valid datainvalid data Clock edges too close Figure 3: Reconvergence CDC can introduce another type of problem when the target clock frequency is lower than the source clock one. As the figure 4 shows, some signal event may not be sampled by the destination domain. In this case, informations are lost and the resynchronized sequence is corrupted. clock_2 clock_1 input output data loss Figure 4: data loss To avoid unpredictable behavior related to metastability, ASIC and FPGA designs must properly implement the synchronization logic: synchronizers must be robust to metastability effects and handshaking procotocol logic must ensure that buses are resynchronized only when they are stable.
  • 4. This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval. O-In CDC analyses The Mentor Graphics® CDC verification tools, 0-In CDC, allows designers to check all CDC paths. CDC correct behaviors are verified thanks to two kinds of analysis, static and dynamic, which will ensure that data is transferred correctly across clock domains. The Static analysis, supporting a hierarchical approach, examines the RTL source code of the design and identifies clocks, clocks domains, CDC signal and synchronizers. This structural analysis lists all CDC signal paths and their associated CDC schemes and categorizes each CDC logic according to a complete set of predefined CDC schemes. All of them are ranked in three categories corresponding to their critical level of severity, and reported to the user. This analysis highlights CDC paths liable to introduce metastability or reconvergence issues, like CDC paths where synchronizer misses. If the Static analysis examines the correctness of the CDC paths logic, it does not ensure correct CDC functionality. To perform this task, the Dynamic analysis uses static analysis results as input files. Based on the user-defined simulation test benches, all CDC schemes identified by the static analysis are explicitly verified in dynamic conditions. The Dynamic analysis generates CDC protocol monitors that use assertions to check to correct CDC functionality and ensure proper data transfer. These protocol checkers are also used for the CDC-FX metastability analysis which verifies that all CDC paths are metastability hardened, and reconvergence issues don’t introduce error. For this dynamic simulation, metastability injection logic is extended to each CDC paths, which causes the tested design to act like a hardware implementation with random metastability effects. At the end of dynamic simulations, a coverage rate for each CDC checkers is provided to the user to evaluate each CDC paths in dynamic conditions. Thanks to CDC static and dynamic analyses, a complete and automatic CDC verification is accomplished from the RTL source code. With this tool the verification flow is improved and adapts itself to the increasing level of CDC paths in designs. The use of a CDC checker allows a design team to found bugs earlier in the project planning and mainly before last implementation phases. Another usage could be during IP inspection by the customer to assure enough confidence in the product they will buy. O-In CDC in DO-254 flows The DO-254 provides guidance for the development of airborne electronic hardware. As a consequence, in the avionic industry, hardware items must be DO-254 compliant. According to the Design Assurance Level (DAL A to DAL E) the DO-254 defines methods and rules that must be followed during design and verification processes, to ensure hardware item safety. In response to the increasing CDC use in designs, the DO-254 standard takes close interest in CDC verifying tools. 0-In CDC could complete the RTL code review by verifying correct CDC implementation. Moreover, a metastability hardened design could be compliant with design standard rules specifying how to describe CDC. In another hand, many requirements, like clock specification requirements, don’t need test but code analysis verification. Here, 0-In CDC reports could be used as verification mean for this type of requirement. Especially for hardware items categorized as DAL A and B, where safety requirements are needed, 0-In CDC may be an added value for the verification process.
  • 5. This document is the property of Arion Entreprise. Its content cannot be reproduced, disclosed or utilized without the company's written approval. About us DMAP DMAP is focused on high reliability semiconductor application domains. With more than 40 years of experience we are able to combine IP and SoC development for ASIC and FPGA target with high reliability methods provided by the DO-254 guidance. High reliable domains as aeronautic, medical, defense and space like others mass markets are sensible to time-to-market constraints and a growing system complexity, that's why we offer to IP vendors the opportunity to address new markets and to high reliable sub-contractor community to buy DO-254 ready IP to speed up their development. DMAP is Arion Entreprise’s components and services business unit. For more information, please email: contact@dmap.fr or visit our website at www.dmap.fr ARION Entreprise ARION is delivering innovative solutions to keep industrial data transmission simple while guarantying their performances (real-time, bandwidth optimization, deterministic transmission, security and stability…). ARION real-time products benefit from our significant experience in highly critical data transmission environment and allow our customers to easily distribute applications across industrial networks while keeping compatible with existing software and networks. For more information, please email: contact@arion.fr or visit the company’s website at www.arion.fr