Skip to content

[otbn, sca] Follow up PR on MAI SCA setup#30687

Open
h-filali wants to merge 4 commits into
lowRISC:masterfrom
h-filali:sca-otbn-masc-acc
Open

[otbn, sca] Follow up PR on MAI SCA setup#30687
h-filali wants to merge 4 commits into
lowRISC:masterfrom
h-filali:sca-otbn-masc-acc

Conversation

@h-filali

@h-filali h-filali commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This PR is a follow up PR that addresses @vogelpi s feedback in #30507

@h-filali h-filali requested a review from a team as a code owner July 8, 2026 12:33
@h-filali h-filali requested review from timothytrippel and removed request for a team and timothytrippel July 8, 2026 12:33
@h-filali h-filali force-pushed the sca-otbn-masc-acc branch 2 times, most recently from 755cfcd to d7730c7 Compare July 8, 2026 17:49
@h-filali h-filali requested review from etterli, nasahlpa and vogelpi July 8, 2026 17:50

@vogelpi vogelpi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @h-filali , this looks good to me!

I have no strong opinion about the third commit.

@vogelpi

vogelpi commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

CHANGE AUTHORIZED: hw/ip/otbn/rtl/otbn_mask_accelerator.sv

This PR removes a parameter from a newly created module to align the SCA verification with how the module is actually used in OTBN.

@vogelpi

vogelpi commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@h-filali , CI / Lint currently fails with:

(17:59:05) Analyzing: target //quality:format_check_Starlark_with_buildifier (0 packages loaded, 0 targets configured)

(17:59:06) INFO: Analyzed target //quality:format_check_Starlark_with_buildifier (4 packages loaded, 25 targets configured).
(17:59:06) FAIL: //quality:format_check_Starlark_with_buildifier (Exit 123) (see /home/runner/.cache/bazel/_bazel_runner/847d6b60020b9cb038b853068e4c7b18/execroot/_main/bazel-out/k8-fastbuild/testlogs/quality/format_check_Starlark_with_buildifier/test.log)
(17:59:06) INFO: From Testing //quality:format_check_Starlark_with_buildifier:
==================== Test output for //quality:format_check_Starlark_with_buildifier:
third_party/hwtrust/extensions.bzl # reformat
Formatted Starlark in 0m0.281s
FAILED: A formatter tool exited with code 123
Try running 'bazel run //quality:format_check_Starlark_with_buildifier ' to fix this.
================================================================================

@nasahlpa

Copy link
Copy Markdown
Contributor

CHANGE AUTHORIZED: hw/ip/otbn/rtl/otbn_mask_accelerator.sv

This PR removes a parameter from a newly created module to align the SCA verification with how the module is actually used in OTBN.

@vogelpi vogelpi added the CI:Rerun Rerun failed CI jobs label Jul 10, 2026
@github-actions github-actions Bot removed the CI:Rerun Rerun failed CI jobs label Jul 10, 2026
h-filali added 3 commits July 13, 2026 14:03
This commit fixes comments where PROLEAD and CocoAlma are not
mentioned correctly. Furthermore in README_MAI.md there are some
stale references to scripts which are updated in this commit.

Signed-off-by: Hakim Filali <hfilali@lowrisc.org>
This commit feeds signals that were hardcoded to a constant out of their
modules such that they now have to be applied by the SCA testbench. This
aligns the DUT with how it is actually used in OTBN.
Furthermore, this commit fixes a bug in a PROLEAD wrapper files and updates
the SCA testbenches accordingly.

Signed-off-by: Hakim Filali <hfilali@lowrisc.org>
When shortening signal names the shorten_alma_identifiers.py script used to
flatten the design before shortening the identifiers. This commit changes
this. Now the signal names are shortened without an initial flattening
step. This is done by adding a --reserve flag that decides how long the
unflattened signal names can get (how much should be left in reserve).

Signed-off-by: Hakim Filali <hfilali@lowrisc.org>
@h-filali h-filali force-pushed the sca-otbn-masc-acc branch from 73ff6aa to 1d703d6 Compare July 13, 2026 12:08
Signed-off-by: Hakim Filali <hfilali@lowrisc.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants