Skip to content

[BUG] compiler fails to report a violation of rule 10.6.1.f regarding software-writable fields spanning multiple sub-words #273

Open
@nachumg

Description

@nachumg

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions