resolve xobs review comments
This commit is contained in:
parent
377794748b
commit
10256aa109
|
@ -173,12 +173,12 @@ class EventManager(Module, AutoCSR):
|
||||||
fields.append(CSRField(
|
fields.append(CSRField(
|
||||||
name=source.name,
|
name=source.name,
|
||||||
size=1,
|
size=1,
|
||||||
description="Level of the `{}` event".format(source.name)))
|
description="Level of the ``{}`` event".format(source.name)))
|
||||||
else:
|
else:
|
||||||
fields.append(CSRField(
|
fields.append(CSRField(
|
||||||
name="event{}".format(i),
|
name="event{}".format(i),
|
||||||
size=1,
|
size=1,
|
||||||
description="Level of the `event{}` event".format(i)))
|
description="Level of the ``event{}`` event".format(i)))
|
||||||
self.status = CSRStatus(n, description=desc, fields=fields)
|
self.status = CSRStatus(n, description=desc, fields=fields)
|
||||||
|
|
||||||
# annotate pending
|
# annotate pending
|
||||||
|
@ -205,19 +205,19 @@ class EventManager(Module, AutoCSR):
|
||||||
fields = []
|
fields = []
|
||||||
for i, source in enumerate(sources):
|
for i, source in enumerate(sources):
|
||||||
if source.description is None:
|
if source.description is None:
|
||||||
desc = "This register enables the corresponding {} events. Write a `0` to this register to disable individual events.".format(str(source.name))
|
desc = "This register enables the corresponding {} events. Write a ``0`` to this register to disable individual events.".format(str(source.name))
|
||||||
else:
|
else:
|
||||||
desc = source.description
|
desc = source.description
|
||||||
if hasattr(source, "name") and source.name is not None:
|
if hasattr(source, "name") and source.name is not None:
|
||||||
fields.append(CSRField(
|
fields.append(CSRField(
|
||||||
name=source.name,
|
name=source.name,
|
||||||
offset=i,
|
offset=i,
|
||||||
description="Write a `1` to enable the `{}` Event".format(source.name)))
|
description="Write a ``1`` to enable the ``{}`` Event".format(source.name)))
|
||||||
else:
|
else:
|
||||||
fields.append(CSRField(
|
fields.append(CSRField(
|
||||||
name="event{}".format(i),
|
name="event{}".format(i),
|
||||||
offset=i,
|
offset=i,
|
||||||
description="Write a `1` to enable the `{}` Event".format(i)))
|
description="Write a ``1`` to enable the ``{}`` Event".format(i)))
|
||||||
self.enable = CSRStorage(n, description=desc, fields=fields)
|
self.enable = CSRStorage(n, description=desc, fields=fields)
|
||||||
|
|
||||||
for i, source in enumerate(sources):
|
for i, source in enumerate(sources):
|
||||||
|
|
Loading…
Reference in New Issue