Skip to content

sw_access in JSON output doesn't seem to match HDL #507

Description

@jamesmunns

For post_code_monitor, the fields are marked read only to software:

field {
default sw = r;
default hw = w;
desc = "0x1de90001 - PHBLhello. Sticky: set when post code is seen, cleared by hardware on new boot.";
} phbl_hello[7:7] = 0;

But in the generated JSON, the sw_access is marked as "rw":

{
    "type": "field",
    "inst_name": "phbl_hello",
    "lsb": 7,
    "msb": 7,
    "reset": 0,
    "sw_access": "rw",
    "se_onread": null,
    "se_onwrite": null,
    "desc": "0x1de90001 - PHBLhello. Sticky: set when post code is seen, cleared by hardware on new boot."
}

This leads to the codegen emitting setters for these fields, which is perhaps not what we want!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions