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
Both Clash HDL and Bluespec have support for sum types. If rust-hdl could have sum types, where a register could simply be sized to hold the largest variant of the sum type - that could be a huge productivity boon in terms of designing things like decoders.
I do see this, perhaps that's where one could begin to work towards implementing sum types?
The text was updated successfully, but these errors were encountered:
That is a good point. I never thought of them for hardware designs. But I don't see a priori why you could not add them. There is already the notion of both enums and structs. I will work on some concepts. Thanks for the suggestion!
Both Clash HDL and Bluespec have support for sum types. If rust-hdl could have sum types, where a register could simply be sized to hold the largest variant of the sum type - that could be a huge productivity boon in terms of designing things like decoders.
I do see this, perhaps that's where one could begin to work towards implementing sum types?
The text was updated successfully, but these errors were encountered: