Skip to content

Commit a0a1ec1

Browse files
committed
[ROM] Update size and hashes in the ROM self hash test
Signed-off-by: Raphael Roth <rroth@lowrisc.org>
1 parent a837669 commit a0a1ec1

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

sw/device/silicon_creator/rom/e2e/release/rom_e2e_self_hash_test.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,26 @@ enum {
3838
* report.
3939
*/
4040

41-
const size_t kGoldenRomSizeBytes = 32652 - sizeof(build_info_t);
41+
const size_t kGoldenRomSizeBytes = 130956 - sizeof(chip_info_t);
4242
const uint32_t kSimDvGoldenRomHash[kSha256HashSizeIn32BitWords] = {
43-
0xc16e04d6, 0x2e94b881, 0x0759b405, 0xd0a28cde,
44-
0xa8c900f3, 0x57b8c7f6, 0xacc910b0, 0x43000c0a,
43+
0x917698bb, 0xd196ff27, 0xb57ebec0, 0x6e83f5ef,
44+
0xee82c190, 0x732ff2e2, 0x9bd89af5, 0xf5e24c26,
4545
};
4646
const uint32_t kFpgaCw310GoldenRomHash[kSha256HashSizeIn32BitWords] = {
47-
0xf3508c51, 0xef65a542, 0xc20e55d9, 0xada4c934,
48-
0x8015bbca, 0xa863db5a, 0xd1ead827, 0x968d94cb,
47+
0x9cf6fde3, 0x4ce29174, 0xe5a66169, 0xa868502c,
48+
0x351f2a82, 0xc76c9e84, 0x5785f640, 0x50647c8e,
4949
};
5050
const uint32_t kSiliconGoldenRomHash[kSha256HashSizeIn32BitWords] = {
51-
0x43b60e89, 0xbfa80347, 0xeeceb60a, 0x356bc7f1,
52-
0xbd023b8a, 0xe5a4ddfc, 0xf66b45b5, 0x5b2ba0ba,
51+
0x49ed17f2, 0x28923f27, 0x10ae68f6, 0xe810307c,
52+
0x8bd65e6a, 0x0e6bec1c, 0xf9ce33e3, 0x09893631,
5353
};
5454

5555
extern const char _rom_chip_info_start[];
5656

5757
// We hash the ROM using the SHA256 algorithm and print the hash to the console.
5858
status_t hash_rom(void) {
5959
hmac_digest_t rom_hash;
60-
hmac_sha256((void *)TOP_EARLGREY_ROM_BASE_ADDR, kGoldenRomSizeBytes,
60+
hmac_sha256((void *)TOP_EARLGREY_ROM_CTRL_ROM_BASE_ADDR, kGoldenRomSizeBytes,
6161
&rom_hash);
6262
// Use printf directly here instead of the `LOG()` macros which print extra
6363
// filenames and line numbers which bloat DV and GLS runtimes.

0 commit comments

Comments
 (0)