Replies: 1 comment 1 reply
-
The SystemRDL language does not support assigning properties to the enumerated type itself. This would include the Looking at the spec's BNF grammar for enumerations, it makes it pretty clear (
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So this is probably a dumb question but the compiler documentation mentions UserEnum's have a rdl_desc property. How would you actually set a description in an enum?
The obvious method would be to use something like:
enum mode{
desc = "This enum describes various AES key sizes";
mode0=2'b00 {desc = "runs mode 1";};
mode1=2'b01 {desc = "runs mode 2";};
mode2=2'b10 {desc = "runs mode 3";};
undefined=2'b11 {desc = "Undefined";};
};
However the compiler/language will treat 'desc' as the first encoding in the enum, and not as as a property. I could see a description here being useful, but not sure how the language supports it.
Beta Was this translation helpful? Give feedback.
All reactions