Skip to content

Commit

Permalink
[multitop] port aes_entropy_test to multitop
Browse files Browse the repository at this point in the history
This test does not actually use entropy_testutils, so remove the
dependency and it's a simple port.

Signed-off-by: Gary Guo <[email protected]>
  • Loading branch information
nbdd0121 committed Feb 11, 2025
1 parent 44f3b0d commit f476869
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sw/device/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ opentitan_test(
{
"//hw/top_earlgrey:fpga_cw310_sival": None,
"//hw/top_earlgrey:silicon_creator": None,
"//hw/top_darjeeling:sim_dv": None,
},
),
deps = [
"//hw/top:dt",
"//hw/ip/aes:model",
"//hw/top_earlgrey/sw/autogen:top_earlgrey",
"//sw/device/lib/base:memory",
"//sw/device/lib/base:mmio",
"//sw/device/lib/dif:aes",
"//sw/device/lib/runtime:log",
"//sw/device/lib/testing:aes_testutils",
"//sw/device/lib/testing:entropy_testutils",
"//sw/device/lib/testing/test_framework:ottf_main",
],
)
Expand Down
5 changes: 1 addition & 4 deletions sw/device/tests/aes_entropy_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include "sw/device/lib/testing/test_framework/check.h"
#include "sw/device/lib/testing/test_framework/ottf_main.h"

#include "hw/top_earlgrey/sw/autogen/top_earlgrey.h"

#define TIMEOUT (1000 * 1000)

// The mask share, used to mask kKey. Note that the masking should not be done
Expand Down Expand Up @@ -99,8 +97,7 @@ bool test_main(void) {
dif_aes_t aes;

// Initialise AES.
CHECK_DIF_OK(
dif_aes_init(mmio_region_from_addr(TOP_EARLGREY_AES_BASE_ADDR), &aes));
CHECK_DIF_OK(dif_aes_init_from_dt(kDtAes, &aes));
CHECK_DIF_OK(dif_aes_reset(&aes));

return status_ok(execute_test(&aes));
Expand Down

0 comments on commit f476869

Please sign in to comment.