-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sim: Dangling virtual interface - Questa support #4528
Comments
UART does not have alerts so your proposed change should not be needed. All of our testbenches extend from the Comportable IP library classes ( Would you please print
|
Agree with @sriyerg alert agent and cfg aren't created in uart env. Please make sure below codes aren't executed in uart test.
|
Yes,list_of_alerts is empty, printed at 1000ps below is log:
|
This is confusing. The original Fatal error occurred at 0ps. Yet, the simulation seems to have progressed till 1000ps. Also, as you can see in the above print msg, |
Just sharing my other similar porting experience - Questa does look for all virtual interfaces in the code (used inside driver/monitor etc.) to be initialized. I do vaguely recall some LRM section supporting this, will dig if I get a chance. |
Sorry for the confusion, I did workaround and showed the print for your eyes only ;-) Bottom-line - Questa needs this fix for now. I will see if I can check with their AEs, but would take additional effort. |
Ohh I see, nevermind. I did a quick google search on |
See second reply in this thread: The thread above is 12 years old! Questa devs added a workaround for this with that switch above rather than fixing it in the tool. I cannot imagine how many DV people would have run into this and wasted their times... |
Marking as resolved, since this is clearly a Questa tool issue. |
In OT code, we have few virtual interfaces that are apparently left unconnected for few IPs. I believe depending on how the elaborator works, some simulators may not need those to be connected to actual/physical interfaces. However, Questa (and I believe Riviera as well) performs checks to ensure all virtual interfaces are initialized at time 0.
Below is what we get with default OT code in Questa:
Fix is simple, make sure we connect it via config_db - a snippet is below (Few more lines have changed in file: hw/ip/uart/dv/tb/tb.sv)
Kindly review if you care about the change. Eventually we need this fix in all IPs (tb.sv file).
The text was updated successfully, but these errors were encountered: