|
<< Click to Display Table of Contents >> 10.2 Waiting for Signal Transitions or Conditions |
![]() ![]()
|
In TestBencher and Reactive Test Bench Generation, either samples, markers, or sensitive edges can be use to make a transaction wait for an event or series of events before continuing to execute. Below is a chart of the different methods of waiting and the recommended usage for each method.
Wait On |
How Long |
Construct |
Help/Settings |
One event |
Block indefinitely or until diagram times out |
Sensitive Edge |
|
One or more conditions (e.g., signal states) |
Block indefinitely until all conditions are true |
Wait Until Marker |
|
Samples |
Section 3.3: Samples that Block Clock Domains to make a sample block, check Blocking and uncheck Full Expect (so it triggers when the condition is true) in the HDL Code Generation dialog. |
||
One event or condition |
Block until time out |
Sample with window |
min != max multiplier == 1 |
One event or condition |
Block until time out |
Sample with Multiplier |
Section 3.2: Sample Checking and Actions min == max multiplier > 1 |
Several events or conditions across several clock cycles |
Each sample may block with time out |
Several samples chained together (first samples will block subsequent samples |
Section 3.4: Samples Triggering a delayed transition or another Sample |
Below is an example of timing diagram that demonstrates these techniques for waiting.
|
If a Sample has a multiplier of 1 and no window defined at simulation, then the blocking check box has no effect on the behavior of the Sample. This is because the Sample will execute and then immediately pass or fail depending on the condition (if the sample was windowed, it potentially blocks the clock domain until the sample's timeout time, but without a window, the "timeout" occurs immediately).