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

what is an enum's corresponding mask type? for memory write ports #211

Open
programmerjake opened this issue May 13, 2024 · 0 comments
Open

Comments

@programmerjake
Copy link

The specification doesn't specify how to construct a memory write port's mask type from the memory's data-type when the type contains an enumeration.

I suggest using something like this:

The mask type of a FIRRTL type is defined for the following memory data types:

  • Any Ground Type: The mask type is UInt<1>
  • Vector Types T[N] for any type T and any non-negative integer N: The mask type is M[N] where M is the mask type of T.
  • Bundle Types {field0: Ty0, field1: Ty1, field2: Ty2, ...}: The mask type is {field0: M0, field1: M1, field2: M2, ...} where M0, M1, M2, ... are the corresponding mask types of Ty0, Ty1, Ty2, ...
  • Enumeration Types: The mask type is UInt<1>
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