quick.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

   

space.gif

   

space.gif

  ../images/main/bulllet_4dots_orange.gif Sampling Signal

Till now we have seen regular sampling of signals. In Vera we have additional features to make this sampling of signals more powerful. In this page we will seeing some of these features.

   

space.gif

  ../images/main/bullet_star_pink.gif The Expect Event

The expect event asserts that a given signal has a given value at a given time. There are several forms of the expect primitive.

   

space.gif

  • Simple expect - @, == (!=)
  • Full expect - @@, == (!=)
  • Restricted - @@@, == (!=)
   

space.gif

   

space.gif

  ../images/main/bullet_star_pink.gif Simple Expect

The simple expect checks that a given signal has a specific value at a given time. If the signal value does not match the expression when the check is made, a simulation error is generated. If a subfield within the signal is specified, all other bits in the signal are ignored and only those specified are checked against the expression.

   

space.gif

Multiple expressions can be defined in the expect_list. If multiple expressions are defined (and separated by ",") the expect is satisfied if all of the conditions are satisfied at the time of the sample. Expressions can also be separated by the or keyword. In that case, the expect is satisfied if any of the conditions are satisfied at the time of the check.

   

space.gif

  ../images/main/bullet_star_pink.gif Full Expect

Full expects check that a signal has a given value over the entire length of a given interval. Full expects behave in the same manner as simple expects with one exception. The signal value must match the expression over the entire course of the defined window. Multiple expressions can be checked using comma-separated lists. If all signals do not match during any part of the interval, the expect is not satisfied and a simulation error is generated.

   

space.gif

  ../images/main/bullet_star_pink.gif Example : Expect
   

space.gif

   

space.gif

   

space.gif

  ../images/main/bullet_star_pink.gif Simulation : Expect
   

space.gif

   

space.gif

   

space.gif

   

space.gif

   

space.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

  

Copyright © 1998-2014

Deepak Kumar Tala - All rights reserved

Do you have any Comment? mail me at:deepak@asic-world.com