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!
For
post_code_monitor, the fields are marked read only to software:quartz/hdl/ip/vhd/espi/sys_regs/espi_regs.rdl
Lines 131 to 135 in 6f68cc7
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!