typedef inside module causes internal error
|Assignee:||Wilson Snyder||% Done:|
module ... ... typedef logic [6-1:0] six_bits; ... endmodule
%Error: Internal Error: ...v:273: ../V3EmitC.cpp:630: Unknown node type reached emitter: RANGE
#2 Updated by Wilson Snyder almost 2 years ago
- Category set to TranslationError
- Status changed from New to AskedReporter
- Assignee set to Wilson Snyder
Can you please attach a complete test and command line, preferably in test_regress format? The below works for me:
module t; typedef logic [6-1:0] six_bits; var six_bits s; endmodule
#3 Updated by Alex Solomatnikov almost 2 years ago
Unfortunately, it looks like this error happens only when I compile the whole design. Even when I tried to compile a single module, where error happens, compile does not fail.
So, it seems unlikely that I would be able to construct simple test case.
Given low priority, I would just ignore this issue.