Skip to content

Commit cb8df60

Browse files
committed
[dv] Correct documentation about reset tracking in csr_utils
Resets actually get tracked in dv_base_scoreboard, which updates the environment config and that, in turn, calls the csr_utils_pkg function. Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
1 parent 940519b commit cb8df60

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

hw/dv/sv/csr_utils/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ task is primarily implemented to use after reset, to make sure all the CSRs are
5656
being reset to the default value.
5757

5858
##### Under_reset
59-
Due to `csr_utils_pkg` is not connected to any interface, methods inside
60-
this package are not able to get reset information. Current the `under_reset`
61-
bit is declared with two functions:
59+
Because `csr_utils_pkg` is not connected to any interface, methods inside
60+
this package are not able to get reset information. The `under_reset`
61+
bit can be kept up to date with two functions:
6262
```systemverilog
6363
function automatic void reset_asserted();
6464
under_reset = 1;
@@ -68,9 +68,10 @@ function automatic void reset_deasserted();
6868
under_reset = 0;
6969
endfunction
7070
```
71-
This reset information is updated in `dv_lib/dv_base_vseq.sv`. When the
72-
`apply_reset` task is triggered, it will set and reset the `under_reset` bit
73-
via the functions above.
71+
This reset information is tracked by `dv_base_scoreboard` (using its
72+
`monitor_reset` task). When that task sees a reset, it calls `reset_asserted` or
73+
`reset_deasserted` in its environment config. That function, in turn, calls the
74+
`csr_utils_pkg` function.
7475

7576
#### Global CSR util methods
7677
##### Global methods for CSR and MEM attributes

0 commit comments

Comments
 (0)