|
From: Martin W. <mai...@ma...> - 2015-03-17 21:47:35
|
Cary R. wrote: > Hi Martin, I'm guessing that the difference is $display can work with > automatic variables and things like $strobe (which also fails) and $monitor > cannot so we have to check to see if the variable is automatic. I think the > problem is that between step 5 and 6 the reference to the net is being lost > while trying to determine if the argument is to an automatic variable (or > in this case part of an automatic variable) or not. It almost looks like we > are loosing the pointer to the parent for the PV structure, > vvp_lookup_handle() is failing? We would need to run this with a runtime > compiled with -O0 and -g to get the true back trace. > Yes, the problem was that the compilation of the parent net was delayed (pending resolution of another symbol lookup), which meant that when the PV expression was compiled, the VPI handle for the parent wasn't available. I've pushed a fix for this to the master branch on GitHub. I'll see about adding a "sorry" message for non-packed structs later in the week unless you or Steve get to it first. Martin |