You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for bringing it up. We generally have convenience helpers in the Python operation builder APIs that take, for example, a Python string, and build the appropriate attribute. Like you've pointed out for sv.WireOp, which is defined here:
We simply don't have any convenience helper around the default generated Python operation builder for hw.WireOp, so the user is required to manually construct the appropriate attributes. I think it would be very reasonable to have this for hw.WireOp, so the user can supply inner_sym as a Python string, and the helper would construct the appropriate InnerSymAttr.
The move to using
InnerSymAttr
in #5703 broke a somewhat obscure usage of the Python API for creatinghw.WireOp
s directly.The old code used to look like this:
Now we have:
Which doesn't seem better.
sv.WireOp()
got asym_name
parameter that does the right thing:The same fix should probably be applied to
WireOp
, and maybe just generally to allhw
operationsThe text was updated successfully, but these errors were encountered: