Skip to content

[BUG] an access case that should produce an error passes #272

Open
@balbal1

Description

@balbal1

Describe the bug
Just a small bug I noticed, A field that has a sw access as w and hw access as na passes the compiler with no error, this case should give an error according to table 12 in the SystemRDL Standard

Image

The issue is fairly trivial and is easily fixable by adding this case in the following condition during validation. I stumbled on it during experimenting and thought I'd share for completeness of the software.

if (this_f_sw == rdltypes.AccessType.w) and (this_f_hw == rdltypes.AccessType.w):

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions