• 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. Constraint issue

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 64
  • Views 13549
  • 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

Constraint issue

archive
archive over 17 years ago

Hi,
 
I’m trying to constraint two fields through a keep statement, but I’m receiving an error. This is the code:
 
struct packet{
...
    clkm: uint;
    keep soft clkm == 100;
 
    pkt_delay: uint;
    keep soft pkt_delay * 2 * clkm
...
};
  
The error message:
  
      Previous constraints reduced its range of possible values,
        then the following constraint contradicted these values:
          keep pkt_delay * 2 * clkm
        Reduced: packet_s-@20.(pkt_delay*2*clkm) from [0..9999] into []
          Using: packet_s-@20.pkt_delay == [2116432017]
          Using: packet_s-@20.clkm == [100]
 
It seems that the last keep is ignored when attributing value to fields clkm and pkt_delay; I tried without the “soft” in the keep statements but received the same error.
 
Thanks in advice
 
Montu


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

    Hi Yaron, I’m using IntelliGen. But I tried:



    keep pkt_delay < 10000 / 10000 / (2 * clkm);



    , as you suggested inside your method and it worked (and I get surprised because I think I have tried this before and still get the error...).



    Anyway, it worked!



    Thank you!


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

    Hi Yaron, I’m using IntelliGen. But I tried:



    keep pkt_delay < 10000 / 10000 / (2 * clkm);



    , as you suggested inside your method and it worked (and I get surprised because I think I have tried this before and still get the error...).



    Anyway, it worked!



    Thank you!


    Originally posted in cdnusers.org by vbdc_montu
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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