1. In some protocols, the driver will send a heartbeat-like signal to the DUT at every time. There is no essential difference between the heartbeat packet and the ordinary bag is the common transaction. Two options:
1) generated in driver, send:
2) sequence implementation, invalid loop:
The above code is best not to use the absolute delay, but to use virtual sequence. Should be as follows:
The heartbeat packet has the highest priority, so grab.
2. Use virtual sequence:
3. Not as follows:
1) because the heartbeat sequence is an infinite loop, the above will cause the body to stop.
4.virtual sequence objection is revoked, main_phase stop, exit emulation, but heartbeat sequence really send, so also set in heartbeat:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The realization of uvm:10.3.1 heartbeat function