Download Public Interface

Transcript
A ONE_SHOT event, named GENERATED, should be indicated
immediately before adding a new instance to the output channel
This will allow other components in the verification environment
or tests to synchronize themselves with the generated output
stream.
class abc_eth_mac_frame_gen extends abc_xactor {
...
integer GENERATED;
task new(...)
{
...
this.GENERATED =
this.notify.configure(*,
this.notify.ONE_SHOT_TRIGGER);
}
...
while (1) {
...
this.notify.indicate(this.GENERATED, fr);
this.out_chan.put_t(fr);
}
...
}
The newly generated instance should be used as the status
information for the indicated GENERATED event
This will allow other components in the verification environment
or tests to gain access to the generated data without having to
extend a callback method. See the previous guideline for an
example.
A callback method shall be called after each instance is
generated
This will allow other components in the verification environment
or tests to record the generated data for response checking,
sample the generated data in a functional coverage model or
modify the generated data with directed stimulus or inject errors.
Stimulus and Generation: Generator Components
5-14