Hi,
I want some details on usage of uvm heartbeat. What I know is heartbeat is used to understand if some uvm component is alive or not. And we can use this to terminate simulations as well. I need some example code.
Thanks,
Ashish
Hi,
I want some details on usage of uvm heartbeat. What I know is heartbeat is used to understand if some uvm component is alive or not. And we can use this to terminate simulations as well. I need some example code.
Thanks,
Ashish
The reason there are no examples of heartbeat is that you should never use it.
In reply to tfitz:
Is there any reason behind that. Does that impact simulation time?
In reply to ashishk:
That’s it? You need to give a reason why otherwise it looks like mentor is yet again trying to dictate how we should write our code? Looking at what uvm_heartbeat does I think it should be used it would help me realize when a simulation or DUT is locked up instead of waiting for a long test to complete only to find out it is stalled. So please enlighten us?
In reply to ashishk:
Hi ashishk,
You can find a working example of uvm_heartbeat at the link below:
https://www.edaplayground.com/x/gwg
You can pass the run-time argument as +NOERROR or +ERROR to check the HB functionality in normal as well as erroneous scenario respectively.
Hope this helps.
Regards,
Nidhi Makwana