We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
using firtool-1.75.0 from github releases
I expect firtool to be able to lower enum types as specified in the ABI, however it just plain fails.
using the following FIRRTL:
FIRRTL version 3.2.0 circuit check_enum_literals: type Ty0 = {|None, Some: UInt<8>|} module check_enum_literals: input i: UInt<8> output o: Ty0 connect o, {|None, Some: UInt<8>|}(Some, i)
I tried running:
firtool check_enum_literals.fir -o - --mlir-print-ir-after-all
which output:
<snip> // -----// IR Dump After LowerIntrinsics (firrtl-lower-intrinsics) //----- // firrtl.module @check_enum_literals(in %i: !firrtl.uint<8>, out %o: !firrtl.alias<Ty0, enum<None: uint<0>, Some: uint<8>>>) attributes {convention = #firrtl<convention scalarized>} { %0 = firrtl.enumcreate Some(%i) : (!firrtl.uint<8>) -> !firrtl.enum<None: uint<0>, Some: uint<8>> firrtl.connect %o, %0 : !firrtl.alias<Ty0, enum<None: uint<0>, Some: uint<8>>>, !firrtl.enum<None: uint<0>, Some: uint<8>> } // -----// IR Dump After LowerSignatures Failed (firrtl-lower-signatures) //----- // firrtl.circuit "check_enum_literals" { firrtl.module @check_enum_literals(in %i: !firrtl.uint<8>, out %o: !firrtl.alias<Ty0, enum<None: uint<0>, Some: uint<8>>>) attributes {convention = #firrtl<convention scalarized>} { %0 = firrtl.enumcreate Some(%i) : (!firrtl.uint<8>) -> !firrtl.enum<None: uint<0>, Some: uint<8>> firrtl.connect %o, %0 : !firrtl.alias<Ty0, enum<None: uint<0>, Some: uint<8>>>, !firrtl.enum<None: uint<0>, Some: uint<8>> } }
The text was updated successfully, but these errors were encountered:
Thank you for the report! LowerSignature seems not to handle enum right now ;)
circt/lib/Dialect/FIRRTL/Transforms/LowerSignatures.cpp
Line 234 in 76b65f8
Sorry, something went wrong.
No branches or pull requests
using firtool-1.75.0 from github releases
I expect firtool to be able to lower enum types as specified in the ABI, however it just plain fails.
using the following FIRRTL:
I tried running:
which output:
The text was updated successfully, but these errors were encountered: