[3.4.0-RC1] missing reference
See original GitHub issueI have this example circuit: https://scastie.scala-lang.org/XSpo4Q6kRnO2LCO4mKtW4w
It elaborates successfully with Chisel 3.3.x but on 3.4.0-RC1 I get an internal error where Chisel is trying to get the value of a _ref
which is None
:
Caused by: java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:529)
at scala.None$.get(Option.scala:527)
at chisel3.internal.HasId.getRef(Builder.scala:228)
at chisel3.internal.HasId.getRef$(Builder.scala:228)
at chisel3.experimental.BaseModule.getRef(Module.scala:162)
at chisel3.internal.HasId.recArg$1(Builder.scala:162)
at chisel3.internal.HasId.$anonfun$computeName$5(Builder.scala:164)
at scala.Option.flatMap(Option.scala:271)
at chisel3.internal.HasId.buildAggName$1(Builder.scala:164)
at chisel3.internal.HasId.$anonfun$computeName$6(Builder.scala:177)
at scala.collection.immutable.List.foreach(List.scala:392)
at chisel3.internal.HasId.buildName$1(Builder.scala:174)
at chisel3.internal.HasId.computeName(Builder.scala:188)
at chisel3.internal.HasId.computeName$(Builder.scala:151)
at chisel3.Data.computeName(Data.scala:275)
at chisel3.RawModule.$anonfun$namePorts$1(RawModule.scala:45)
at chisel3.RawModule.$anonfun$namePorts$1$adapted(RawModule.scala:44)
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
at chisel3.RawModule.namePorts(RawModule.scala:44)
at chisel3.RawModule.generateComponent(RawModule.scala:68)
at chisel3.Module$.do_apply(Module.scala:69)
at chisel3.stage.ChiselGeneratorAnnotation.$anonfun$elaborate$1(ChiselAnnotations.scala:60)
at chisel3.internal.Builder$.$anonfun$build$1(Builder.scala:625)
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
at chisel3.internal.Builder$.build(Builder.scala:622)
at chisel3.stage.ChiselGeneratorAnnotation.elaborate(ChiselAnnotations.scala:60)
The circuit was working with an earlier SNAPSHOT
release of 3.4
so this regression seems like it was recently introduced.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Cannot start Thehive 3.4.0-RC1 · Issue #1020 - GitHub
After installing from bintray (3.4.0-RC1) The hive service is unable to ... ConfigException$Missing: No configuration setting found for key ...
Read more >Reference Documentation - Spring
3.0.0.RC1 ... References to other beans (collaborators); 3.4.2.3. ... For example, the bean throws an exception as a result of a missing or...
Read more >Mono (reactor-core 3.4.0-RC1)
The recommended way to learn about the Mono API and discover new operators is through the reference documentation, rather than through this javadoc...
Read more >Diff - pub/scm/linux/kernel/git/horms/renesas-bsp
... into v4.9-rc1/rcar-3.4.x ... device registers + - interrupts: the interrupt for the device + - clocks: Reference to the parent clock +...
Read more >Changelog — Elyra 3.13.0 documentation
Fix missing placeholder text in metadata editor - #2764 ... Remove references to deprecated 'elyra-examples-airflow-catalog' package - #2529 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I just wanted to call attention to it.
This seems to be a regression since this circuit works with Chisel 3.3
Randomly came across this, it has been fixed since 3.4.1 and remains fixed in 3.4.2.
See same example with 3.4.2 working: https://scastie.scala-lang.org/lhXp0aEsRsq2ho5F7Jw9vA