Bug #5513
closed[verilog][parser] Bad casting from NodeValue to NodeOperation
0%
Description
2014.12.17 18:34:52.148. INFO: Retrascope is starting
Running: verilog-parser
Options: {args=src/test/verilog/ram/sapic.v --target efsm, v=[src/test/verilog/ram/sapic.v]}
Including file 'src/test/verilog/ram/sapic.v'
java.lang.ClassCastException: ru.ispras.fortress.expression.NodeValue cannot be cast to ru.ispras.fortress.expression.NodeOperation
at ru.ispras.verilog.parser.model.basis.Expression.getExpression(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_primary(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_expression(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_concatenation(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_primary(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_expression(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_extended_expression(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_assignment(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_assign(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_item(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_module(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.ast_root(Unknown Source)
at ru.ispras.verilog.parser.grammar.VerilogTreeBuilder.startRule(Unknown Source)
at ru.ispras.verilog.parser.VerilogFrontend.startBuilder(Unknown Source)
at ru.ispras.verilog.parser.VerilogFrontend.startBuilder(Unknown Source)
at ru.ispras.verilog.parser.VerilogFrontend.start(Unknown Source)
at ru.ispras.verilog.parser.VerilogFrontend.start(Unknown Source)
at ru.ispras.verilog.parser.VerilogTranslator.start(Unknown Source)
at ru.ispras.retrascope.parser.verilog.VerilogParser.parse(VerilogParser.java:87)
at ru.ispras.retrascope.parser.basis.HDLParser.start(HDLParser.java:63)
at ru.ispras.retrascope.basis.Engine.start(Engine.java:199)
at ru.ispras.retrascope.basis.ToolChain.start(ToolChain.java:106)
at ru.ispras.retrascope.basis.Engine.start(Engine.java:199)
at ru.ispras.retrascope.Retrascope$Run.start(Retrascope.java:117)
at ru.ispras.retrascope.Retrascope.main(Retrascope.java:328)
at ru.ispras.retrascope.Retrascope.main(Retrascope.java:349)
2014.12.17 18:34:52.551. ERROR: The exception has been encountered: java.lang.NullPointerException
at ru.ispras.retrascope.basis.Engine.runBackends(Engine.java:253)
at ru.ispras.retrascope.basis.Engine.start(Engine.java:201)
at ru.ispras.retrascope.basis.ToolChain.start(ToolChain.java:106)
at ru.ispras.retrascope.basis.Engine.start(Engine.java:199)
at ru.ispras.retrascope.Retrascope$Run.start(Retrascope.java:117)
at ru.ispras.retrascope.Retrascope.main(Retrascope.java:328)
at ru.ispras.retrascope.Retrascope.main(Retrascope.java:349)
2014.12.17 18:34:52.552. INFO: Retrascope is shutting down
Exception in thread "main" java.lang.NullPointerException
at ru.ispras.retrascope.basis.Engine.runBackends(Engine.java:253)
at ru.ispras.retrascope.basis.Engine.start(Engine.java:201)
at ru.ispras.retrascope.basis.ToolChain.start(ToolChain.java:106)
at ru.ispras.retrascope.basis.Engine.start(Engine.java:199)
at ru.ispras.retrascope.Retrascope$Run.start(Retrascope.java:117)
at ru.ispras.retrascope.Retrascope.main(Retrascope.java:328)
at ru.ispras.retrascope.Retrascope.main(Retrascope.java:349)