Open unlsycn opened 3 months ago
It seems to be due to unused modules being retained in firrtl. Remove the definitions which are not instantiated should resovle it. However, we can hardly tell if a Definition is instantiated at Chisel runtime and remove it before InferResets pass in firtool may be a better solution.
Type of issue: Bug Report
Please provide the steps to reproduce the problem: This code comes from the example in the documentation and simply use
Module
instead ofRawModule
.What is the current behavior? The Chisel code runs with correctly fetched the width, but firtool gets a error:
What is the expected behavior? Firtool doesn't encounter any errors since the
Definition
is not instantiated, and the reset inferring happens onInstance
.Please tell us about your environment:
6.4.0
1.62.0
and1.76.0
have the same problemLinux 6.9.0 x86_64
Other Information
What is the use case for changing the behavior?