Skip to content
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

[LowerToHW] Failure when lowering bundle_create which contains zero bit #7721

Open
uenoku opened this issue Oct 22, 2024 · 0 comments
Open

Comments

@uenoku
Copy link
Member

uenoku commented Oct 22, 2024

  firrtl.circuit "top" {
  firrtl.module @top(in %in: !firrtl.bundle<foo: uint<0>, t: uint<8>>, out %out: !firrtl.bundle<foo: uint<0>, t: uint<8>>) {
    %c0_ui0 = firrtl.constant 0 : !firrtl.uint<0>
    %0 = firrtl.subfield %in[t] : !firrtl.bundle<foo: uint<0>, t: uint<8>>
    %1 = firrtl.bundlecreate %c0_ui0, %0 : (!firrtl.uint<0>, !firrtl.uint<8>) -> !firrtl.bundle<foo: uint<0>, t: uint<8>>
    firrtl.matchingconnect %out, %1 : !firrtl.bundle<foo: uint<0>, t: uint<8>>
  }
  }
bar.fir:16:13: error: 'firrtl.bundlecreate' op LowerToHW couldn't handle this operation
    out.foo <= UInt<1>(0)
            ^
bar.fir:16:13: note: see current operation: %4 = "firrtl.bundlecreate"(%1, %3) : (!firrtl.uint<0>, !firrtl.uint<8>) -> !firrtl.bundle<foo: uint<0>, t: uint<8>>
bar.fir:15:11: note: additional location here
    out.t <= in.t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant