CDC Check
CDC analysis checks the design for signals crossing between different clock domains, where improper synchronization can lead to metastability or data corruption. Tools analyze these crossings for various conditions such as proper synchronization, convergence and divergence of signals, control/data separation, and the use of safe synchronization structures.
CDC Check Directory
├── inputs
│ ├── cdc.sdc -> <path_to_sdc_file>
│ ├── cdc_constraints.tcl -> <path_to_cdc_constraints_file>
│ ├── design_config.tcl -> <path_to_design_config.tcl>
│ └── tech_config.tcl -> <path_to_tech_config.tcl>
├── logs
│ └── cdc.log
├── outputs
├── quickCDC.cmd
├── quickCDC.log
├── reports
│ ├── cdc.rpt
│ ├── cdc_constraints.rpt
│ ├── checks.rpt
│ ├── design.rpt
│ ├── sdc.rpt
│ └── stats.json
├── scripts
│ └── flow_cdc.tcl
└── tmp
├── cdc_db
│ ├── <design_name>.json
│ ├── <design_name>.v
│ ├── <design_name>_noattr.v
│ ├── module_hierarchy.txt
│ └── violations.json
└── rtl_file_list.tcl
The structure above represents the contents of the CDC directory. This chapter provides a detailed description of all the files generated during the CDC process, including reports, output logs, etc. Each file’s purpose and typical contents are explained to help users understand and navigate the results effectively.
CDC Directory File Descriptions
| Path | File | Description |
|---|---|---|
| inputs/ | cdc.sdc | SDC file, providing clock definition, set_case_analysis etc. |
| cdc_constraints.tcl | Tcl file defining CDC-specific constraints. | |
| design_config.tcl | Design Configuration file specifying RTL and design-specific settings. | |
| tech_config.tcl | Technology configuration file specifying PDK, library paths, physical design parameters and flow specific settings. | |
| logs/ | cdc.log | Full log of the CDC run, including execution flow and any errors or warnings. |
| quickCDC.log | Summary log of quick CDC checks. | |
| quickCDC.cmd | Summary log of quick CDC commands run. | |
| reports/ | cdc.rpt | Main CDC analysis report showing all detected crossings and their classification. |
| cdc_constraints.rpt | Report showing how CDC constraints were interpreted and applied. | |
| checks.rpt | Summary report for Error and warning during the run. | |
| design.rpt | General design report summarizing hierarchy, clocks, and structure. | |
| sdc.rpt | Report detailing how timing constraints (SDC) were parsed and applied. | |
| stats.json | Used to populate the stage-specific dashboard with metrics and run information for the lint stage. | |
| scripts/ | flow_cdc.tcl | Main script orchestrating the entire CDC flow. |
| tmp/ |
Sample CDC report
Design name: \<design_name\>
CDC Analysis Summary
╔════════════════════════════════════════════════════════════════════════╦═══════╗
║ Description ║ Count ║
╠════════════════════════════════════════════════════════════════════════╬═══════╣
║ CDC Violations: ║ ║
║ - The single-bit signal is missing a synchronizer ║ 5 ║
║ - The multi-bit signal is missing a synchronizer ║ 2 ║
║ - Combinational logic drives the input of the synchronizer ║ 0 ║
║ - The single-bit signal is missing a synchronizer & driven by combo ║ 20 ║
║ - The multi-bit signal is missing a synchronizer & driven by combo ║ 0 ║
║ - Divergence in CDC Path before synchronizer ║ 2 ║
║ - Divergence in CDC Path in synchronizer ║ 0 ║
╠════════════════════════════════════════════════════════════════════════╬═══════╣
║ CDC Verified Paths: ║ ║
║ - Synchronization of a single-bit signal using a DFF synchronizer ║ 10 ║
║ - Synchronization of a multi-bit signal using a DFF synchronizer ║ 3 ║
╚════════════════════════════════════════════════════════════════════════╩═══════╝
Detailed Analysis
==================================================================================
Section 1. CDC Violations
==================================================================================
Section 2. CDC Verified Paths
==================================================================================
Sample design.rpt
═════════════════ DESIGN STATISTICS ═══════════════
Design Name : \<design_name\>
───────────────────────────────────────────────────
Number of Clocks : 2
Primary Clocks : clk_src
Gated Clocks : clk_dst
Number of Ports : 30
Number of Flops : 1973
Number of Combo Cells : 11999
───────────────────────────────────────────────────