Open cindychip opened 2 years ago
I think for option2, unless we implement 'partial write', it will be like patch over patch based on any exception we discover.
Any opinions on how to deal with this for M3? We may need to write unit tests that mimic csr_rw for CSRs with excluded fields. Perhaps this can be discussed in the DV meeting.
Option 2 is more flexible. With option 2, we could define the usage as follows
Recently we have fixed a few issues to due putting csr write exclusion to a field. Here are two solutions: 1). Return an error once we found a write exclusion is applied to the field. 2). Support csr write field exclusion - since there is no partial write, supporting this feature can be tricky. I was thinking to just write default/reset value when this field is excluded from write, but it might have some side effect.
Please let me know what you think.