• 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. event questions from newbie

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 64
  • Views 12737
  • 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

event questions from newbie

enchanterchi
enchanterchi over 15 years ago
Dear Sir/Madam: I am a newbie of verification and specman. I have a question about EVENT in specman e: Can I create a event with is consisted of some other event, such as event CONSISTED_e = (@start_e or @stop_e or @clock_rise)? If it is possible, how could identify which is the cause of the CONSISTED_e in code? For example: my_method () @CONSISTED_e is { if (CONSISED_e is caused by @start_e) { // do something }; if (CONSISTED_e is caused by @(stop_e) { // DO SOMETHING }; and so on. Thanks.
  • Cancel
Parents
  • Hilmar
    Hilmar over 15 years ago

     Hi,

     

    To answer your syntax question: Yes, you can declare events as combinations and/or sequences of other events. 

     

    The methodology question has a number of different options, depending on personal preferences. You can define actions to happen on the occurance of an event, e.g.:

     

    on stop_e {

       message(HIGH, "I got a stop event");

    };

     

    For your method, you could do something along these lines:

     

    my_tcm()@c_e is {

        first of {

           {

             sync @start_e;

             message(HIGH,"Got a start_e event");

          };

           {

             sync @stop_e;

             message(HIGH,"Got a stop_e event");

          };

           {

             sync @clk_e;

             message(HIGH,"Got a clk_e event");

          };

        };

    };


    The benefit of this that the method will see two events as well.

     

    Cheers,

    Hilmar

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Hilmar
    Hilmar over 15 years ago

     Hi,

     

    To answer your syntax question: Yes, you can declare events as combinations and/or sequences of other events. 

     

    The methodology question has a number of different options, depending on personal preferences. You can define actions to happen on the occurance of an event, e.g.:

     

    on stop_e {

       message(HIGH, "I got a stop event");

    };

     

    For your method, you could do something along these lines:

     

    my_tcm()@c_e is {

        first of {

           {

             sync @start_e;

             message(HIGH,"Got a start_e event");

          };

           {

             sync @stop_e;

             message(HIGH,"Got a stop_e event");

          };

           {

             sync @clk_e;

             message(HIGH,"Got a clk_e event");

          };

        };

    };


    The benefit of this that the method will see two events as well.

     

    Cheers,

    Hilmar

    • 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