Open
Description
- [ x] I have reviewed this project's contribution guidelines
Describe the bug
The following code should fail compilation but does not.
addrmap top {
reg {
regwidth = 64;
accesswidth = 32;
field {sw=rw;} f1[64] = 0;
} r1;
};
The SystemRDL 2.0 spec says at 10.6.1.f :
"Any field that is software-writable or clear on read shall not span multiple software accessible sub-words (e.g., a 64-bit register with a 32-bit access width may not have a writable field with bits in both the upper and lower half of the register)."
Expected behavior
Compilation failure with helpful error message.
Metadata
Metadata
Assignees
Labels
No labels