Expand description
A CSR register. Parameters ––––– fields : :class:dict or :class:list or :class:Field Collection of register fields. If None (default), a dict is populated from Python :term:variable annotations <python:variable annotations>. fields is used to create a :class:FieldActionMap, :class:FieldActionArray, or :class:FieldAction, depending on its type (dict, list, or Field). Interface attributes –––––––––– element : :class:Element Interface between this register and a CSR bus primitive. Attributes ––––– field : :class:FieldActionMap or :class:FieldActionArray or :class:FieldAction Collection of field instances. f : :class:FieldActionMap or :class:FieldActionArray or :class:FieldAction Shorthand for :attr:Register.field. Raises —— :exc:TypeError If fields is neither None, a :class:dict, a :class:list, or a :class:Field. :exc:ValueError If fields is not None and at least one variable annotation is a :class:Field. :exc:ValueError If element.access is not readable and at least one field is readable. :exc:ValueError If element.access is not writable and at least one field is writable.
Structs§
- EV_
ENABLE_ SPEC - A CSR register. Parameters ––––– fields : :class:
dictor :class:listor :class:FieldCollection of register fields. IfNone(default), a dict is populated from Python :term:variable annotations <python:variable annotations>.fieldsis used to create a :class:FieldActionMap, :class:FieldActionArray, or :class:FieldAction, depending on its type (dict, list, or Field). Interface attributes –––––––––– element : :class:ElementInterface between this register and a CSR bus primitive. Attributes ––––– field : :class:FieldActionMapor :class:FieldActionArrayor :class:FieldActionCollection of field instances. f : :class:FieldActionMapor :class:FieldActionArrayor :class:FieldActionShorthand for :attr:Register.field. Raises —— :exc:TypeErrorIffieldsis neitherNone, a :class:dict, a :class:list, or a :class:Field. :exc:ValueErrorIffieldsis notNoneand at least one variable annotation is a :class:Field. :exc:ValueErrorIfelement.accessis not readable and at least one field is readable. :exc:ValueErrorIfelement.accessis not writable and at least one field is writable.