• 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. one answer plz

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 65
  • Views 12849
  • 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

one answer plz

redrabbit
redrabbit over 13 years ago

hi all,

 

i write one constraints embedded two foreach loop in it,find something i could not control.....

code:

gen cur_random_interval keeping

{

    it.size() == xxxxxx;

    for each (p) using index (idx) in it

    {

        xxxxxxxxxxx;

        for each (q) using prev(prev_item) in p.rdata_dv_interval_location

        {

              q < = (cur_list[idx].e_size[cur_list[idx].cb_idx]/16 - 1);

              index == 0 => q==1;

              q > 0;

             soft q > prev_item;

        };

     };

};

 the structure is like "list of list",in the inner loop, i want to constraint prev_item is smaller it's next. then to generate one list,but i message the list which items in are generated wrapped,,,like   1  3   6    9 ... 2    4  6  8.... 2   5   8  .....   ,but i want the result to be like  1 2 3 4 5 6 7  8 9 .....   

and i could not remove the word soft ,    or will cause an syntax error.

 what should i do?

  • Cancel
  • hannes
    hannes over 13 years ago

     Hello redrabbit,

    the code you have above seems to work ok for me. Maybe there are some other pieces of code
    which might cause your issue. I think it would be helpful to get in touch with support with a more
    detailed testcase, or the log file

    Best regrads,
    -hannes

    • 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