vkottler / ifgen

An interface generator for distributed computing.
MIT License
1 stars 0 forks source link

Add support for union fields (that can each have their own bit fields?) #33

Closed vkottler closed 1 year ago

vkottler commented 1 year ago

Example:

image

vkottler commented 1 year ago

Union field seems kind of stupid, don't see any reason why you can't just define an arbitrary amount of bit-fields for a given register (and just use the base name..)

vkottler commented 1 year ago

Maybe we should just allow a field's name to be a list... and turn that into a union. otherwise we could add an aliases thing or something?

vkottler commented 1 year ago

This is next up, after this we need bit fields (https://github.com/vkottler/ifgen/issues/42).

vkottler commented 1 year ago

The schema + data plumbing for derived bit fields is there, we just need to add the code-generation side for it.

vkottler commented 1 year ago

Fully implemented here: https://github.com/vkottler/ifgen/pull/43.