-
Notifications
You must be signed in to change notification settings - Fork 646
Add parameter to ExtModule for requirements #5174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
0560b6a to
32c502a
Compare
7103df8 to
919dd04
Compare
2359f0a to
85a7ae7
Compare
| abstract class BlackBox( | ||
| val params: Map[String, Param] = Map.empty[String, Param], | ||
| override protected final val knownLayers: Seq[Layer] = Seq.empty[Layer] | ||
| val params: Map[String, Param] = Map.empty[String, Param], | ||
| override protected final val knownLayers: Seq[Layer] = Seq.empty[Layer], | ||
| override protected final val requirements: Seq[String] = Seq.empty[String] | ||
| ) extends BaseBlackBox { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blackbox is deprecated and we will remove it right before Chisel 8 release so I wouldn't bother.
| case x @ DefBlackBox(id, _, _, _, _, _, _) => !id._isImportedDefinition | ||
| case DefIntrinsicModule(_, _, _, _, _) => false | ||
| case DefClass(_, _, _, _) => false | ||
| case x => true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd just simplify this
| case x @ DefBlackBox(id, _, _, _, _, _, _) => !id._isImportedDefinition | |
| case DefIntrinsicModule(_, _, _, _, _) => false | |
| case DefClass(_, _, _, _) => false | |
| case x => true | |
| case d: DefBlackBox => !d.id._isImportedDefinition | |
| case _: DefIntrinsicModule => false | |
| case _: DefClass => false | |
| case _ => true |
jackkoenig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, I think we should wait until a firtool release with requires support (and bump) before merging. I want to do a Chisel release soon and might do so before firtool supports this.
Adds an API for the
requireskeyword supported by CIRCT after llvm/circt#9496.Contributor Checklist
docs/src?Type of Improvement
Desired Merge Strategy
Release Notes
requirementsparameter toExtModulefor tracking external build requirements.Reviewer Checklist (only modified by reviewer)
3.6.x,5.x, or6.xdepending on impact, API modification or big change:7.0)?Enable auto-merge (squash)and clean up the commit message.Create a merge commit.