Loading src/main/java/hk/quantr/verilogcompiler/listener/AllModuleListener.java +4 −2 Changes for src/main/java/hk/quantr/verilogcompiler/listener/AllModuleListener.java: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ public class AllModuleListener extends VerilogParserBaseListener { String wireName = ctx.list_of_net_identifiers() == null ? "null" : /*CommonLib.randomString(6, true, false, false) + "_" + */ ctx.list_of_net_identifiers().getText(); // System.out.println("wireName=" + wireName); String wireType = ctx.range_() == null ? "null" : ctx.range_().getText(); // System.out.println(wireName); System.out.println("exitNet_declaration: " + wireName + ", " + wireType); wires.put(wireName, new Wire(wireName, wireType)); // } catch (OptionErrorException ex) { // Logger.getLogger(AllModuleListener.class.getName()).log(Level.SEVERE, null, ex); Loading @@ -147,6 +147,9 @@ public class AllModuleListener extends VerilogParserBaseListener { public void exitModule_instantiation(VerilogParser.Module_instantiationContext ctx) { moduleName = ctx.module_identifier().getText(); System.out.println("exitModule_instantiation=" + moduleName); if (moduleName.equals("SB_SPRAM256KA")){ System.out.println(""); } try { for (Module_instanceContext module_instance : ctx.module_instance()) { hk.quantr.verilogcompiler.structure.Module module = supportingModule.get(moduleName); Loading Loading @@ -184,5 +187,4 @@ public class AllModuleListener extends VerilogParserBaseListener { } } } Loading
src/main/java/hk/quantr/verilogcompiler/listener/AllModuleListener.java +4 −2 Changes for src/main/java/hk/quantr/verilogcompiler/listener/AllModuleListener.java: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ public class AllModuleListener extends VerilogParserBaseListener { String wireName = ctx.list_of_net_identifiers() == null ? "null" : /*CommonLib.randomString(6, true, false, false) + "_" + */ ctx.list_of_net_identifiers().getText(); // System.out.println("wireName=" + wireName); String wireType = ctx.range_() == null ? "null" : ctx.range_().getText(); // System.out.println(wireName); System.out.println("exitNet_declaration: " + wireName + ", " + wireType); wires.put(wireName, new Wire(wireName, wireType)); // } catch (OptionErrorException ex) { // Logger.getLogger(AllModuleListener.class.getName()).log(Level.SEVERE, null, ex); Loading @@ -147,6 +147,9 @@ public class AllModuleListener extends VerilogParserBaseListener { public void exitModule_instantiation(VerilogParser.Module_instantiationContext ctx) { moduleName = ctx.module_identifier().getText(); System.out.println("exitModule_instantiation=" + moduleName); if (moduleName.equals("SB_SPRAM256KA")){ System.out.println(""); } try { for (Module_instanceContext module_instance : ctx.module_instance()) { hk.quantr.verilogcompiler.structure.Module module = supportingModule.get(moduleName); Loading Loading @@ -184,5 +187,4 @@ public class AllModuleListener extends VerilogParserBaseListener { } } }