• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. how can i detect X value

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 64
  • Views 13460
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how can i detect X value

archive
archive over 17 years ago

Hello, i'm using ticks to read data from verilog wire. however, when the wire contains invalid value (x) it gives me defauls zero. how can detect this invalid value ? thanks,


Originally posted in cdnusers.org by zcabeli11
  • Cancel
  • archive
    archive over 17 years ago

    Use ports instead - they're faster, safer and have built-in methods for doing X checks etc.


    Originally posted in cdnusers.org by stephenh
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago


    i used simple port to bind a name with it's verilog corresponding element. and then called the method has_unknown( )

    thanks,


    Originally posted in cdnusers.org by zcabeli11
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    You can also use the MVL API with simple ports to both sample and drive X/Z values safely.


    Originally posted in cdnusers.org by jhzhang
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    The following example gives the x detection on simple port

    a : simple_port of bit is instance;

    if(a.get_mvl() == MVL_X) {
    out("unknown value was detected on verilog wire");
    };


    Originally posted in cdnusers.org by arjuny
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information