lowRISC / lowRISC/opentitan

[dv,fusesoc-upgrade] Provide a mechanism to assign integrator DFT ports

Open
#27,409 1 comment 0 reactions 1 assignee View on GitHub

@hcallahan-lowrisc is already working on this.

Since Jun 11, 2025.

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

Description

### Description

For example in the sram_ctrl testbench, we added code downstream to properly set the DFT vector when selecting the foundry prim library:

```systemverilog
always_comb begin
ram_cfg = '0;

if (`PRIM_DEFAULT_IMPL == prim_pkg::ImplIntegrator) begin : gen_impl_integrator
// Integrator RAM config
ram_cfg.field1 = 3'h5;
ram_cfg.field2 = 4'h4;
ram_cfg.field3 = 1'h1;
end
end
```

When not selecting the foundry lib, i.e., when compiling to verilator a default `'0` was passed.

With the recent fuseoc upgrade and the deprecation of `prim_pkg`, this is going to be removed. What would be the alternative to solve this problem?

/cc @a-will @andreaskurth

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.