Croyyin / A-Low-power-Hardware-Architecture-for-Real-time-CNN-Computing

The Unlicense
2 stars 2 forks source link

Error messages indicates that there is a problem with the elaboration of a ChiselGeneratorAnnotation #1

Open amayseaa opened 1 year ago

amayseaa commented 1 year ago

Hi, why does the code in ConvolutionalLayer.scala that determines the division by zero keep occurring? These are the errors I received from the sbt shell: [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:17:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:26:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:159:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:168:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:132:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:141:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:232:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:241:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:309:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:318:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:17:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:159:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:132:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:232:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:309:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] 15 warnings found [warn] multiple main classes detected: run 'show discoveredMainClasses' to see the list [info] running CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le Elaborating design... [error] java.lang.ArithmeticException: / by zero [error] ... [error] at CNN.Partial_Convolutional_Layer.<init>(ConvolutionalLayer.scala:68) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$4(ConvolutionalLayer.scala:738) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$3(ConvolutionalLayer.scala:738) [error] at chisel3.internal.plugin.package$.autoNameRecursively(package.scala:52) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.<init>(ConvolutionalLayer.scala:738) [error] at CNN.NetworkComponentsGen$.$anonfun$new$7(NewGenerator.scala:115) [error] ... (Stack trace trimmed to user code only, rerun with --full-stacktrace if you wish to see the full stack trace) [error] (run-main-0) firrtl.options.StageError: [error] firrtl.options.StageError: [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:60) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] Caused by: chisel3.internal.ChiselException: Exception thrown when elaborating ChiselGeneratorAnnotation [error] at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:65) [error] at chisel3.stage.phases.Elaborate.$anonfun$transform$1(Elaborate.scala:24) [error] at scala.collection.immutable.List.flatMap(List.scala:366) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:23) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:16) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.DependencyManager.$anonfun$transform$3(DependencyManager.scala:278) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.DependencyManager.transform(DependencyManager.scala:269) [error] at firrtl.options.DependencyManager.transform$(DependencyManager.scala:255) [error] at firrtl.options.PhaseManager.transform(DependencyManager.scala:436) [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:46) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] Caused by: java.lang.ArithmeticException: / by zero [error] at CNN.Partial_Convolutional_Layer.<init>(ConvolutionalLayer.scala:68) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$4(ConvolutionalLayer.scala:738) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$3(ConvolutionalLayer.scala:738) [error] at chisel3.internal.plugin.package$.autoNameRecursively(package.scala:52) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.<init>(ConvolutionalLayer.scala:738) [error] at CNN.NetworkComponentsGen$.$anonfun$new$7(NewGenerator.scala:115) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at chisel3.stage.ChiselGeneratorAnnotation.$anonfun$elaborate$1(ChiselAnnotations.scala:60) [error] at chisel3.internal.Builder$.$anonfun$build$1(Builder.scala:645 [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at chisel3.internal.Builder$.build(Builder.scala:642) [error] at chisel3.internal.Builder$.build(Builder.scala:638) [error] at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:60) [error] at chisel3.stage.phases.Elaborate.$anonfun$transform$1(Elaborate.scala:24) [error] at scala.collection.immutable.List.flatMap(List.scala:366) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:23) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:16) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.DependencyManager.$anonfun$transform$3(DependencyManager.scala:278) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.DependencyManager.transform(DependencyManager.scala:269) [error] at firrtl.options.DependencyManager.transform$(DependencyManager.scala:255) [error] at firrtl.options.PhaseManager.transform(DependencyManager.scala:436) [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:46) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] stack trace is suppressed; run last Test / bgRunMain for the full outpu [error] Nonzero exit code: 1 [error] (Test / runMain) Nonzero exit code: 1 [error] Total time: 155 s (02:35), completed Apr 9, 2023 2:03:12 PM [warn] In the last 614 seconds, 13.524 (2.2%) were spent in GC. [Heap: 0.85GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance. sbt:0AME[36m> test:runMain CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le [info] compiling 1 Scala source to /home/user/1_CNN_Architecture/target/scala-2.12/classes ... [error] /home/user/1_CNN_Architecture/src/main/scala/LayerModule/ConvolutionalLayer.scala:69:21: not found: value kotlin [error] val m_c_k_num = kotlin.math.ceil(all_in_channel_num.toDouble() / one_in_channel_num.toDouble()).toInt() [error] ^ [error] /home/user/1_CNN_Architecture/src/main/scala/LayerModule/ConvolutionalLayer.scala:69:65: Double does not take parameters [error] val m_c_k_num = kotlin.math.ceil(all_in_channel_num.toDouble() / one_in_channel_num.toDouble()).toInt() [error] ^ [error] /home/user/1_CNN_Architecture/src/main/scala/LayerModule/ConvolutionalLayer.scala:69:97: Double does not take parameters [error] val m_c_k_num = kotlin.math.ceil(all_in_channel_num.toDouble() / one_in_channel_num.toDouble()).toInt() [error] ^ [error] three errors found [warn] In the last 35 seconds, 16.894 (48.4%) were spent in GC. [Heap: 0.89GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance. [error] (Compile / compileIncremental) Compilation failed [error] Total time: 39 s, completed Apr 9, 2023 9:48:25 PM [warn] In the last 607 seconds, 5.454 (0.9%) were spent in GC. [Heap: 0.89GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance. sbt:0AME[36m> test:runMain CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le [info] compiling 1 Scala source to /home/user/1_CNN_Architecture/target/scala-2.12/classes ... [warn] multiple main classes detected: run 'show discoveredMainClasses' to see the list [info] running CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le Elaborating design... [error] java.lang.ArithmeticException: / by zero [error] ... [error] at CNN.Partial_Convolutional_Layer.<init>(ConvolutionalLayer.scala:68) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$4(ConvolutionalLayer.scala:741) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$3(ConvolutionalLayer.scala:741) [error] at chisel3.internal.plugin.package$.autoNameRecursively(package.scala:52) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.<init>(ConvolutionalLayer.scala:741) [error] at CNN.NetworkComponentsGen$.$anonfun$new$7(NewGenerator.scala:115) [error] ... (Stack trace trimmed to user code only, rerun with --full-stacktrace if you wish to see the full stack trace) [error] (run-main-1) firrtl.options.StageError: [error] firrtl.options.StageError: [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:60) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] Caused by: chisel3.internal.ChiselException: Exception thrown when elaborating ChiselGeneratorAnnotation [error] at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:65) [error] at chisel3.stage.phases.Elaborate.$anonfun$transform$1(Elaborate.scala:24) [error] at scala.collection.immutable.List.flatMap(List.scala:366) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:23) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:16) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.DependencyManager.$anonfun$transform$3(DependencyManager.scala:278) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.DependencyManager.transform(DependencyManager.scala:269) [error] at firrtl.options.DependencyManager.transform$(DependencyManager.scala:255) [error] at firrtl.options.PhaseManager.transform(DependencyManager.scala:436) [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:46) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] Caused by: java.lang.ArithmeticException: / by zero [error] at CNN.Partial_Convolutional_Layer.<init>(ConvolutionalLayer.scala:68) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$4(ConvolutionalLayer.scala:741) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$3(ConvolutionalLayer.scala:741) [error] at chisel3.internal.plugin.package$.autoNameRecursively(package.scala:52) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.<init>(ConvolutionalLayer.scala:741) [error] at CNN.NetworkComponentsGen$.$anonfun$new$7(NewGenerator.scala:115) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at chisel3.stage.ChiselGeneratorAnnotation.$anonfun$elaborate$1(ChiselAnnotations.scala:60) [error] at chisel3.internal.Builder$.$anonfun$build$1(Builder.scala:645 [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at chisel3.internal.Builder$.build(Builder.scala:642) [error] at chisel3.internal.Builder$.build(Builder.scala:638) [error] at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:60) [error] at chisel3.stage.phases.Elaborate.$anonfun$transform$1(Elaborate.scala:24) [error] at scala.collection.immutable.List.flatMap(List.scala:366) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:23) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:16) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.DependencyManager.$anonfun$transform$3(DependencyManager.scala:278) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.DependencyManager.transform(DependencyManager.scala:269) [error] at firrtl.options.DependencyManager.transform$(DependencyManager.scala:255) [error] at firrtl.options.PhaseManager.transform(DependencyManager.scala:436) [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:46) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] stack trace is suppressed; run last Test / bgRunMain for the full outpu [warn] In the last 56 seconds, 11.721 (21.2%) were spent in GC. [Heap: 0.89GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance. [error] Nonzero exit code: 1 [error] (Test / runMain) Nonzero exit code: 1 [error] Total time: 55 s, completed Apr 9, 2023 11:28:08 PM [warn] In the last 609 seconds, 8.615 (1.4%) were spent in GC. [Heap: 0.89GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance.

Croyyin commented 1 year ago

Hi, why does the code in ConvolutionalLayer.scala that determines the division by zero keep occurring? These are the errors I received from the sbt shell: [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:17:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:26:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:159:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:168:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:132:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:141:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:232:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:241:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:309:13: enclosing method delFile has result type Unit: return value of type Boolean(false) discarded [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:318:9: enclosing method delFile has result type Unit: return value of type Boolean discarded [warn] return file.delete(); [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:17:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/NewGenerator.scala:159:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:132:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:232:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] /home/user/1_CNN_Architecture/src/test/scala/VerilogGenerator.scala:309:20: a pure expression does nothing in statement position [warn] return false [warn] ^ [warn] 15 warnings found [warn] multiple main classes detected: run 'show discoveredMainClasses' to see the list [info] running CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le Elaborating design... [error] java.lang.ArithmeticException: / by zero [error] ... [error] at CNN.Partial_Convolutional_Layer.<init>(ConvolutionalLayer.scala:68) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$4(ConvolutionalLayer.scala:738) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$3(ConvolutionalLayer.scala:738) [error] at chisel3.internal.plugin.package$.autoNameRecursively(package.scala:52) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.<init>(ConvolutionalLayer.scala:738) [error] at CNN.NetworkComponentsGen$.$anonfun$new$7(NewGenerator.scala:115) [error] ... (Stack trace trimmed to user code only, rerun with --full-stacktrace if you wish to see the full stack trace) [error] (run-main-0) firrtl.options.StageError: [error] firrtl.options.StageError: [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:60) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] Caused by: chisel3.internal.ChiselException: Exception thrown when elaborating ChiselGeneratorAnnotation [error] at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:65) [error] at chisel3.stage.phases.Elaborate.$anonfun$transform$1(Elaborate.scala:24) [error] at scala.collection.immutable.List.flatMap(List.scala:366) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:23) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:16) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.DependencyManager.$anonfun$transform$3(DependencyManager.scala:278) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.DependencyManager.transform(DependencyManager.scala:269) [error] at firrtl.options.DependencyManager.transform$(DependencyManager.scala:255) [error] at firrtl.options.PhaseManager.transform(DependencyManager.scala:436) [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:46) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] Caused by: java.lang.ArithmeticException: / by zero [error] at CNN.Partial_Convolutional_Layer.<init>(ConvolutionalLayer.scala:68) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$4(ConvolutionalLayer.scala:738) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$3(ConvolutionalLayer.scala:738) [error] at chisel3.internal.plugin.package$.autoNameRecursively(package.scala:52) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.<init>(ConvolutionalLayer.scala:738) [error] at CNN.NetworkComponentsGen$.$anonfun$new$7(NewGenerator.scala:115) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at chisel3.stage.ChiselGeneratorAnnotation.$anonfun$elaborate$1(ChiselAnnotations.scala:60) [error] at chisel3.internal.Builder$.$anonfun$build$1(Builder.scala:645 [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at chisel3.internal.Builder$.build(Builder.scala:642) [error] at chisel3.internal.Builder$.build(Builder.scala:638) [error] at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:60) [error] at chisel3.stage.phases.Elaborate.$anonfun$transform$1(Elaborate.scala:24) [error] at scala.collection.immutable.List.flatMap(List.scala:366) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:23) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:16) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.DependencyManager.$anonfun$transform$3(DependencyManager.scala:278) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.DependencyManager.transform(DependencyManager.scala:269) [error] at firrtl.options.DependencyManager.transform$(DependencyManager.scala:255) [error] at firrtl.options.PhaseManager.transform(DependencyManager.scala:436) [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:46) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] stack trace is suppressed; run last Test / bgRunMain for the full outpu [error] Nonzero exit code: 1 [error] (Test / runMain) Nonzero exit code: 1 [error] Total time: 155 s (02:35), completed Apr 9, 2023 2:03:12 PM [warn] In the last 614 seconds, 13.524 (2.2%) were spent in GC. [Heap: 0.85GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance. sbt:0AME[36m> test:runMain CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le [info] compiling 1 Scala source to /home/user/1_CNN_Architecture/target/scala-2.12/classes ... [error] /home/user/1_CNN_Architecture/src/main/scala/LayerModule/ConvolutionalLayer.scala:69:21: not found: value kotlin [error] val m_c_k_num = kotlin.math.ceil(all_in_channel_num.toDouble() / one_in_channel_num.toDouble()).toInt() [error] ^ [error] /home/user/1_CNN_Architecture/src/main/scala/LayerModule/ConvolutionalLayer.scala:69:65: Double does not take parameters [error] val m_c_k_num = kotlin.math.ceil(all_in_channel_num.toDouble() / one_in_channel_num.toDouble()).toInt() [error] ^ [error] /home/user/1_CNN_Architecture/src/main/scala/LayerModule/ConvolutionalLayer.scala:69:97: Double does not take parameters [error] val m_c_k_num = kotlin.math.ceil(all_in_channel_num.toDouble() / one_in_channel_num.toDouble()).toInt() [error] ^ [error] three errors found [warn] In the last 35 seconds, 16.894 (48.4%) were spent in GC. [Heap: 0.89GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance. [error] (Compile / compileIncremental) Compilation failed [error] Total time: 39 s, completed Apr 9, 2023 9:48:25 PM [warn] In the last 607 seconds, 5.454 (0.9%) were spent in GC. [Heap: 0.89GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance. sbt:0AME[36m> test:runMain CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le [info] compiling 1 Scala source to /home/user/1_CNN_Architecture/target/scala-2.12/classes ... [warn] multiple main classes detected: run 'show discoveredMainClasses' to see the list [info] running CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le Elaborating design... [error] java.lang.ArithmeticException: / by zero [error] ... [error] at CNN.Partial_Convolutional_Layer.<init>(ConvolutionalLayer.scala:68) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$4(ConvolutionalLayer.scala:741) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$3(ConvolutionalLayer.scala:741) [error] at chisel3.internal.plugin.package$.autoNameRecursively(package.scala:52) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.<init>(ConvolutionalLayer.scala:741) [error] at CNN.NetworkComponentsGen$.$anonfun$new$7(NewGenerator.scala:115) [error] ... (Stack trace trimmed to user code only, rerun with --full-stacktrace if you wish to see the full stack trace) [error] (run-main-1) firrtl.options.StageError: [error] firrtl.options.StageError: [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:60) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] Caused by: chisel3.internal.ChiselException: Exception thrown when elaborating ChiselGeneratorAnnotation [error] at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:65) [error] at chisel3.stage.phases.Elaborate.$anonfun$transform$1(Elaborate.scala:24) [error] at scala.collection.immutable.List.flatMap(List.scala:366) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:23) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:16) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.DependencyManager.$anonfun$transform$3(DependencyManager.scala:278) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.DependencyManager.transform(DependencyManager.scala:269) [error] at firrtl.options.DependencyManager.transform$(DependencyManager.scala:255) [error] at firrtl.options.PhaseManager.transform(DependencyManager.scala:436) [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:46) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] Caused by: java.lang.ArithmeticException: / by zero [error] at CNN.Partial_Convolutional_Layer.<init>(ConvolutionalLayer.scala:68) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$4(ConvolutionalLayer.scala:741) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.$anonfun$c_last$3(ConvolutionalLayer.scala:741) [error] at chisel3.internal.plugin.package$.autoNameRecursively(package.scala:52) [error] at CNN.Multy_Columns_Convolutional_Pooling_Layer.<init>(ConvolutionalLayer.scala:741) [error] at CNN.NetworkComponentsGen$.$anonfun$new$7(NewGenerator.scala:115) [error] at chisel3.Module$.do_apply(Module.scala:54) [error] at chisel3.stage.ChiselGeneratorAnnotation.$anonfun$elaborate$1(ChiselAnnotations.scala:60) [error] at chisel3.internal.Builder$.$anonfun$build$1(Builder.scala:645 [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at chisel3.internal.Builder$.build(Builder.scala:642) [error] at chisel3.internal.Builder$.build(Builder.scala:638) [error] at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:60) [error] at chisel3.stage.phases.Elaborate.$anonfun$transform$1(Elaborate.scala:24) [error] at scala.collection.immutable.List.flatMap(List.scala:366) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:23) [error] at chisel3.stage.phases.Elaborate.transform(Elaborate.scala:16) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.DependencyManager.$anonfun$transform$3(DependencyManager.scala:278) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.DependencyManager.transform(DependencyManager.scala:269) [error] at firrtl.options.DependencyManager.transform$(DependencyManager.scala:255) [error] at firrtl.options.PhaseManager.transform(DependencyManager.scala:436) [error] at chisel3.stage.ChiselStage.run(ChiselStage.scala:46) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.Stage$$anon$1.transform(Stage.scala:43) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:38) [error] at firrtl.options.phases.DeletedWrapper.internalTransform(DeletedWrapper.scala:15) [error] at firrtl.options.Translator.transform(Phase.scala:248) [error] at firrtl.options.Translator.transform$(Phase.scala:248) [error] at firrtl.options.phases.DeletedWrapper.transform(DeletedWrapper.scala:15) [error] at firrtl.options.Stage.$anonfun$transform$5(Stage.scala:47) [error] at scala.collection.LinearSeqOptimized.foldLeft(LinearSeqOptimized.scala:126) [error] at scala.collection.LinearSeqOptimized.foldLeft$(LinearSeqOptimized.scala:122) [error] at scala.collection.immutable.List.foldLeft(List.scala:91) [error] at firrtl.options.Stage.$anonfun$transform$3(Stage.scala:47) [error] at logger.Logger$.$anonfun$makeScope$2(Logger.scala:166) [error] at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62) [error] at logger.Logger$.makeScope(Logger.scala:164) [error] at firrtl.options.Stage.transform(Stage.scala:47) [error] at firrtl.options.Stage.execute(Stage.scala:58) [error] at chisel3.stage.ChiselStage.emitVerilog(ChiselStage.scala:117) [error] at CNN.NetworkComponentsGen$.$anonfun$new$5(NewGenerator.scala:115) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.$anonfun$new$4(NewGenerator.scala:102) [error] at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158) [error] at CNN.NetworkComponentsGen$.delayedEndpoint$CNN$NetworkComponentsGen$1(NewGenerator.scala:89) [error] at CNN.NetworkComponentsGen$delayedInit$body.apply(NewGenerator.scala:13) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:431) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at CNN.NetworkComponentsGen$.main(NewGenerator.scala:13) [error] at CNN.NetworkComponentsGen.main(NewGenerator.scala) [error] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [error] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [error] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [error] at java.lang.reflect.Method.invoke(Method.java:498) [error] stack trace is suppressed; run last Test / bgRunMain for the full outpu [warn] In the last 56 seconds, 11.721 (21.2%) were spent in GC. [Heap: 0.89GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance. [error] Nonzero exit code: 1 [error] (Test / runMain) Nonzero exit code: 1 [error] Total time: 55 s, completed Apr 9, 2023 11:28:08 PM [warn] In the last 609 seconds, 8.615 (1.4%) were spent in GC. [Heap: 0.89GB free of 0.97GB, max 0.97GB] Consider increasing the JVM heap using-Xmxor try a different collector, e.g.-XX:+UseG1GC, for better performance.

Hi, I could not locate where the problem occurs by this message. Could you list the changes you made to the code and the commands you run in this situation at your convenience? This will help me solve this problem.

amayseaa commented 1 year ago

The only changes I made only in model_config.py and pb_balance.py, but those changes were made due to a syntax error after running this command:

python ./new_assistant/pb_balance.py -m le -f gen -p ./test_config

However, the error above was after I ran this command in the sbt shell:

test:runMain CNN.NetworkComponentsGen -td ./test_verilog/our/le -sd ./test_config/our/le

Screenshot (57)

Croyyin commented 1 year ago

It works fine in my environment with the same operation. I guess the problem is that the files in ./test_config are not generated normally. You can check whether the directory structure of ./test_config is as shown in the figure below. L`NHD((`6S`}VSXQPM`DSQV You also need to check the content of max_cycle_*.txt files, and determine if it matches the figure below. F1N`24H$I2U{3S~MAO@NMD4

amayseaa commented 1 year ago

Everything looks the same to me. Btw, what do you mean by the files in ./test_config are not generated normally? Is it after I run the first command;

python ./new_assistant/pb_balance.py -m le -f gen -p ./test_config

or before I run the command?

Croyyin commented 1 year ago

I mean after you run this command, the files will appear.

I may not have time to help you solve this problem today, but if you want, you can provide me with a user of your server in an email, and I can help you debug it when I have time.

amayseaa commented 1 year ago

Hi, just an update. I have solved the issue and the program is able to run smoothly. I updated the Phyton 2.7. version (the one that I was previously using) to Phyton 3.