Internal error when doing V3Simulate on for loop inside for loop
Error: Internal Error: xxx.sv:472: ../V3Simulate.h:177: No value found for node. %Error: Internal Error: See the manual and http://www.veripool.org/verilator for more assistance.
Not able to reproduce this with a small test case yet. But in our code, we have two embedded for-loop where the error occurs when try to simulate the condition of inner loop.
#2 Updated by Jie Xu over 1 year ago
always @(posedge clk) begin int i; int j; for (i = 0; i < MASK_NUM; i ++) begin for (j = 0; j < MASK[i]; j ++) // the line which causes the internal error begin out[i*4+j] <= in[i*4+j]; end end endIn the log of V3Simulate, it first reports
V3Simulate.h:112: Clear optimizable: Language violation: reference to non-function-local variable: VARREFfor variable
j, then it report the internal error.
Hope this helps for your debugging.
#6 Updated by Wilson Snyder 11 months ago
- Subject changed from Internal error when doing V3Simulate to Internal error when doing V3Simulate on for loop inside for loop
- Category set to TranslationError
- Assignee set to Wilson Snyder
Thanks for the test case, straight forward now that I know where to look.
Fixed in git towards 3.891.
Also available in: Atom