Skip to content

Commit

Permalink
[sival,kmac] Add kmac_error_conditions_test
Browse files Browse the repository at this point in the history
This adds the new `kmac_error_conditions_test` test that is
defined in the `chip_sw_kmac_error_conditions` chip level test.

`ErrSwIssuedCmdInAppActive` could not be implemented in SW as
triggering a SW command while the app interface is active is
not possible.

For the same reason, the `ErrSwPushedMsgFifo` was adapted.
Now, in this test point, a message is written into the message
FIFO before issuing the START command. This triggers the same
error code.

Closes #21413.

Signed-off-by: Pascal Nasahl <[email protected]>
  • Loading branch information
nasahlpa committed Oct 11, 2024
1 parent 7e76fe2 commit 0134925
Show file tree
Hide file tree
Showing 3 changed files with 475 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/top_earlgrey/data/ip/chip_kmac_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
si_stage: SV3
lc_states: ["PROD"]
tests: []
bazel: []
bazel: ["//sw/device/tests:kmac_error_conditions_test"]
}
]
}
26 changes: 26 additions & 0 deletions sw/device/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2218,6 +2218,32 @@ opentitan_test(
],
)

opentitan_test(
name = "kmac_error_conditions_test",
srcs = ["kmac_error_conditions_test.c"],
# TODO(#15530): EDN doesn't timeout on FPGA
broken = fpga_params(tags = ["broken"]),
exec_env = dicts.add(
EARLGREY_TEST_ENVS,
EARLGREY_SILICON_OWNER_ROM_EXT_ENVS,
{
# FIXME broken on FPGA as masking is off. See #15530.
"//hw/top_earlgrey:fpga_cw310_sival_rom_ext": "broken",
"//hw/top_earlgrey:fpga_cw310_rom_with_fake_keys": "broken",
"//hw/top_earlgrey:silicon_creator": None,
},
),
deps = [
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
"//sw/device/lib/base:mmio",
"//sw/device/lib/dif:clkmgr",
"//sw/device/lib/dif:kmac",
"//sw/device/lib/runtime:log",
"//sw/device/lib/testing:kmac_testutils",
"//sw/device/lib/testing/test_framework:ottf_main",
],
)

opentitan_test(
name = "kmac_idle_test",
srcs = ["kmac_idle_test.c"],
Expand Down
Loading

0 comments on commit 0134925

Please sign in to comment.