Hi,
I am debugging a very complex constraint which has a lot of code and if-else statements.
I want some suggestions on how to debug it.
I tried the below approaches which do not work:
- Adding $display inside the constraint. My thinking was it will help me understand which if-else loop the code executes.
- Adding `uvm_info inside the constraint
- Using a variable and assigning it when it enters a loop. Something like this:
constraint <> {
if(<>) {
loop_1_entered++;
}
}
Note: The constraint is passing, I need to understand what the constraint is doing.
Appreciate any suggestions!!