SlideShare uma empresa Scribd logo
1 de 5
Baixar para ler 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

Mais conteúdo relacionado

Último

How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 

Último (20)

How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 

Destaque

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 HubspotMarius Sescu
 
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 ChatGPTExpeed Software
 
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 EngineeringsPixeldarts
 
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 HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 

Destaque (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