chisel icon indicating copy to clipboard operation
chisel copied to clipboard

Layers not emitted when used as colors of probes with separate elaboration

Open dtzSiFive opened this issue 1 year ago • 0 comments

Type of issue: Bug Report

Please provide the steps to reproduce the problem:

  1. Checkout this commit of Chisel (small change to test to demonstrate issue):

https://github.com/chipsalliance/chisel/commit/49325496999148dc3fe48c093a16811134715cfb

  1. testOnly chiselTests.experimental.hierarchy.SeparateElaborationSpec (I did this by launching sbt and entering this at the prompt)

What is the current behavior?

Errors due to generated FIRRTL using layers that aren't declared:

[info] src/test/scala/chiselTests/experimental/hierarchy/Examples.scala:43:23: error: probe port 'p' is associated with layer '@A', but this layer was not defined
[info]     @public val p = IO(probe.Probe(UInt(width.W), A))

What is the expected behavior?

All used layers are emitted, no error when using layer-colored probes in this way.

Please tell us about your environment:

Other Information

What is the use case for changing the behavior?

dtzSiFive avatar Oct 15 '24 14:10 dtzSiFive