+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Member level 4
    Points: 1,099, Level: 7

    Join Date
    Mar 2010
    Location
    USA
    Posts
    71
    Helped
    0 / 0
    Points
    1,099
    Level
    7

    why to use assertions and what is their advandage?

    i had an interview question about this and i really couldn't answer. i would really appreciate if somebody could tell me.

    the question is: why to use assertions in the design? what is their advantage and disadvantage?

    why to use assertions in verification? what is their advantage over plain testing and what is their disadvantage over plain testing?

    any help is appreciated.

    •   AltAdvertisment

        
       

  2. #2
    Full Member level 2
    Points: 1,059, Level: 7

    Join Date
    Sep 2010
    Location
    Maryland
    Posts
    124
    Helped
    40 / 40
    Points
    1,059
    Level
    7

    Re: why to use assertions and what is their advandage?




    •   AltAdvertisment

        
       

  3. #3
    Advanced Member level 3
    Points: 6,706, Level: 19

    Join Date
    May 2008
    Location
    Shang Hai
    Posts
    972
    Helped
    82 / 82
    Points
    6,706
    Level
    19

    Re: why to use assertions and what is their advandage?

    assertion is a verification method for us to find some abnormal sequence very quickly!



    •   AltAdvertisment

        
       

  4. #4
    Advanced Member level 4
    Points: 8,890, Level: 22
    Achievements:
    7 years registered

    Join Date
    May 2010
    Location
    Marin
    Posts
    1,485
    Helped
    354 / 354
    Points
    8,890
    Level
    22

    Re: why to use assertions and what is their advandage?

    the main advantage to use assertion to check your design is, this assertion is always present, and then in case you test the sub-module a, you could trig an assertion inside the sub-module b, that's you do not expect.
    But after the problem is, when you have add many assertions in each modules/sub-modules, the simulation speed is reduced and you could disable some assertions.....



--[[ ]]--