• 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. generate of specman (vs) randomize of systemverilog

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 65
  • Views 15336
  • 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

generate of specman (vs) randomize of systemverilog

onkarkk
onkarkk over 16 years ago

Hi,

Could any one please explain me clearly steps of generate and randomize and their significance.

i.e ., in generate it is told there is pre-generate and post-generate methods i could not understand clearly why they required.

In the same way in randomize() also there are pre_randomize() and post_randomize() methods will be invoked , i didnt get sufficient clarity on their explanation .. could any 

one please clarify the significance of those methods.

Thanks in advance,

regards

Krishna Kishore 

  • Cancel
Parents
  • onkarkk
    onkarkk over 16 years ago

    Dear Stephen,

    I too feel e bit convenient than SV (with my little knowledge),  thats ok , thanks for your reply i am going through documents but not like sn_help.sh (i dont know why , it is not working on my system , yes i didnt put much concentration on it i will look at it),  from ur post what i understood is

    1. pre_ method will create some memory for random variables  ---->  my understanding is correct ??

    2. "It can be hard and inefficient to do this with constraints especially if your object has many optional fields" -- could u please elaborate it ..

    3. You have used post_generate method to calculate crc when there is an error , cant i use custom method say good_crc() instead of post_generate() , i.e, like pre_generate , post_generate also create some momory or like that??

    Please correct me if i am wrong ....

    Thanks in advance

    regards

    Krishna Kishore

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • onkarkk
    onkarkk over 16 years ago

    Dear Stephen,

    I too feel e bit convenient than SV (with my little knowledge),  thats ok , thanks for your reply i am going through documents but not like sn_help.sh (i dont know why , it is not working on my system , yes i didnt put much concentration on it i will look at it),  from ur post what i understood is

    1. pre_ method will create some memory for random variables  ---->  my understanding is correct ??

    2. "It can be hard and inefficient to do this with constraints especially if your object has many optional fields" -- could u please elaborate it ..

    3. You have used post_generate method to calculate crc when there is an error , cant i use custom method say good_crc() instead of post_generate() , i.e, like pre_generate , post_generate also create some momory or like that??

    Please correct me if i am wrong ....

    Thanks in advance

    regards

    Krishna Kishore

     

    • 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