lowRISC / lowRISC/opentitan

[keymgr_dpe, rtl] Raise error for Out-Of-Bound src / dst index

Open
#30,682 1 comment 0 reactions 1 assignee View on GitHub

@rroth-lowrisc is already working on this.

Since Jul 7, 2026.

IP:keymgr_dpe
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

Description

During the keymgr_dpe integration into earlgrey the register interface was slightly changed. The keymgr_dpe now supports a NumMaxHwSlot and a NumInstHwSlot. Each top can set the number of instantiated hw slots while all input registers can account for NumMaxHwSlot hw slots. Currently a assign verifies that the src / dst index is smaller than NumInstHwSlot. In the future this will raise a invalid_op error (not yet implemented).

During randomize chip_csr_rw testing this assertion can be triggered when the DV writes a invalid slot number into the control register. As intermediate solution the writes into this register are restricted during randomized testing.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.