-
Notifications
You must be signed in to change notification settings - Fork 309
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
Add the BLIF dialect. #8019
base: main
Are you sure you want to change the base?
Add the BLIF dialect. #8019
Conversation
The BLIF dialect implements the extended berkely logic interchange format. This is a format used by some OSS tools, such as some place-and-route tools. This is the format used by yosys to interchange with nextpnr.
Will join with #8018 to push an fpga-mapped design to nextpnr. |
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.
Haven't gone through every single line of code in detail, but having both import and export support for BLIF and a BLIF ingress/egress dialect is a really cool thing for CIRCT! 🥳
include "mlir/IR/EnumAttr.td" | ||
include "mlir/IR/RegionKindInterface.td" | ||
|
||
def ModelOp : BLIFOp<"model", [IsolatedFromAbove, RegionKindInterface, SingleBlockImplicitTerminator<"OutputOp">]> { |
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.
Nit: overly long line
OpBuilder<(ins "StringRef":$name, | ||
"ArrayRef<StringRef>":$inputs, | ||
"ArrayRef<StringRef>":$outputs, | ||
"ArrayRef<StringRef>":$clocks)> |
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.
Omega-nit: "
alignment
The BLIF dialect implements the extended berkely logic interchange format. This is a format used by some OSS tools, such as some place-and-route tools. This is the format used by yosys to interchange with nextpnr.