Adjust RST formatting for numbered list of PerfCounter modes

This commit is contained in:
Tim Snyder 2022-07-12 10:50:07 -05:00 committed by GitHub
parent a45e53f74e
commit e0316fbe46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -22,12 +22,12 @@ Chisel Interface
AutoCounter enables the addition of ad-hoc counters using the ``PerfCounter``
object in the `midas.targetutils` package. PerfCounters counters can be added in one of two modes:
# `Accumulate`, using the standard ``PerfCounter.apply`` method. Here the annotated UInt (1 or
more bits) is added to a 64b accumulation register: the target is treated as
representing an N-bit UInt and will increment the counter by a value between [0, 2^n - 1] per cycle.
# `Identity`, using the ``PerfCounter.identity`` method. Here the annotated UInt is sampled directly. This can be used
to annotate a sample with values are not accumulator-like (e.g., a PC),
and permits the user to define more complex instrumentation logic in the target itself.
1. `Accumulate`, using the standard ``PerfCounter.apply`` method. Here the annotated UInt (1 or
more bits) is added to a 64b accumulation register: the target is treated as
representing an N-bit UInt and will increment the counter by a value between [0, 2^n - 1] per cycle.
2. `Identity`, using the ``PerfCounter.identity`` method. Here the annotated UInt is sampled directly. This can be used
to annotate a sample with values are not accumulator-like (e.g., a PC),
and permits the user to define more complex instrumentation logic in the target itself.
We give examples of using PerfCounter below: