Lecture IV: Debugging Simulation mismatches

Source: Internet
Author: User

About Competitive Adventures:

1.use +race Utility to locate race condition code * * * * *

2.use $vcdplusdeltacycleon to locate race condition code (not used)

3.use Vcddiff & VCAT t Locate race condition code (not used)

Causes of simulation mismatches

1.functional Simulation Mismatches:

1.1 Different simulator Vendors:

Race condition in Source code * *

Vendor implementation

1.2different version of simulator from same vendor

Race condition in Source code

2.rtl-gate mismatches: *********

2.1 Same simulator

Race condition in Source code*** (max)

Poor code style**

A competitive adventure emerges:

1. Code is not standardized for example, there are several correct results, code is too vague

2. Write/read the same data (using and setting a value at the same time)

3. Competitive adventures will not be expected when the outcome of the synthesis before the settlement out

Coding Rules of Thumb

1.synchronous blocks drive only with non-blocking assignments

2.combinatorial and initial blocks drive only with blocking assignment

3.don ' t drive regs from multiple blocks

4.be careful with the interaction of continous assignments and procedural blocks

Debugging Race Conditions:

1.enable with compile switch +race (mainly with this)

2. Other uses are not much, and the main knowledge of human experience is not a tool.

Fourth: Debugging simulation mismatches

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.