lowRISC / lowRISC/opentitan

[hw,csr_utils,dv] Wait for register field to be non-busy before write access

Open
#18,737 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component:DV Earlgrey-PROD Candidate Priority:P3 Type:Enhancement Type:FutureRelease
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

Description

In the current implementation of csr_wr, there is no option to wait for register/field to be free before calling write method
Update csr_wr with an option to explicitly wait for register to be free.

https://github.com/lowRISC/opentitan/blob/c3d3e284a6346c373c55da82120586eb401d9060/hw/dv/sv/csr_utils/csr_utils_pkg.sv#L145-L181

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read hw/dv/sv/csr_utils/csr_utils_pkg.sv around lines 145-181, starting with csr_wr and its current arguments and behavior. Check the relevant CSR verification usage, then confirm that the new option explicitly waits for the register or field to become non-busy before write access.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.