Skip to content

Commit

Permalink
Shift FUSE REG offsets to better match 1.1 legacy offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
calebofearth committed Nov 20, 2024
1 parent 966f37c commit c48bda8
Show file tree
Hide file tree
Showing 7 changed files with 348 additions and 348 deletions.
164 changes: 82 additions & 82 deletions src/integration/rtl/caliptra_reg.h

Large diffs are not rendered by default.

164 changes: 82 additions & 82 deletions src/integration/rtl/caliptra_reg_defines.svh

Large diffs are not rendered by default.

164 changes: 82 additions & 82 deletions src/soc_ifc/rtl/caliptra_top_reg.h

Large diffs are not rendered by default.

164 changes: 82 additions & 82 deletions src/soc_ifc/rtl/caliptra_top_reg_defines.svh

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/soc_ifc/rtl/soc_ifc_fuse_reg.rdl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ reg {
[br]Caliptra Access: RO
[br]SOC Access: RWL-S";
Fuse svn[32]=0;
} fuse_fmc_key_manifest_svn @0x2c4;
} fuse_fmc_key_manifest_svn @0x2b4;
reg {
desc = "Runtime SVN Fuse.
[br]Caliptra Access: RO
Expand Down Expand Up @@ -83,7 +83,7 @@ reg {
[br]Caliptra Access: RO
[br]SOC Access: RWL-S";
Fuse lms_revocation[32]=0;
} fuse_lms_revocation @0x350;
} fuse_lms_revocation @0x340;
reg {
desc = "One-hot encoded list of revoked Vendor MLDSA Public Keys (up to 4 keys)
[br]Caliptra Access: RO
Expand Down
18 changes: 9 additions & 9 deletions src/soc_ifc/rtl/soc_ifc_reg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -285,22 +285,22 @@ module soc_ifc_reg (
for(int i0=0; i0<8; i0++) begin
decoded_reg_strb.fuse_key_manifest_pk_hash_mask[i0] = cpuif_req_masked & (cpuif_addr == 12'h290 + i0*12'h4);
end
decoded_reg_strb.fuse_fmc_key_manifest_svn = cpuif_req_masked & (cpuif_addr == 12'h2c4);
decoded_reg_strb.fuse_fmc_key_manifest_svn = cpuif_req_masked & (cpuif_addr == 12'h2b4);
for(int i0=0; i0<4; i0++) begin
decoded_reg_strb.fuse_runtime_svn[i0] = cpuif_req_masked & (cpuif_addr == 12'h2c8 + i0*12'h4);
decoded_reg_strb.fuse_runtime_svn[i0] = cpuif_req_masked & (cpuif_addr == 12'h2b8 + i0*12'h4);
end
decoded_reg_strb.fuse_anti_rollback_disable = cpuif_req_masked & (cpuif_addr == 12'h2d8);
decoded_reg_strb.fuse_anti_rollback_disable = cpuif_req_masked & (cpuif_addr == 12'h2c8);
for(int i0=0; i0<24; i0++) begin
decoded_reg_strb.fuse_idevid_cert_attr[i0] = cpuif_req_masked & (cpuif_addr == 12'h2dc + i0*12'h4);
decoded_reg_strb.fuse_idevid_cert_attr[i0] = cpuif_req_masked & (cpuif_addr == 12'h2cc + i0*12'h4);
end
for(int i0=0; i0<4; i0++) begin
decoded_reg_strb.fuse_idevid_manuf_hsm_id[i0] = cpuif_req_masked & (cpuif_addr == 12'h33c + i0*12'h4);
decoded_reg_strb.fuse_idevid_manuf_hsm_id[i0] = cpuif_req_masked & (cpuif_addr == 12'h32c + i0*12'h4);
end
decoded_reg_strb.fuse_lms_revocation = cpuif_req_masked & (cpuif_addr == 12'h350);
decoded_reg_strb.fuse_mldsa_revocation = cpuif_req_masked & (cpuif_addr == 12'h354);
decoded_reg_strb.fuse_soc_stepping_id = cpuif_req_masked & (cpuif_addr == 12'h358);
decoded_reg_strb.fuse_lms_revocation = cpuif_req_masked & (cpuif_addr == 12'h340);
decoded_reg_strb.fuse_mldsa_revocation = cpuif_req_masked & (cpuif_addr == 12'h344);
decoded_reg_strb.fuse_soc_stepping_id = cpuif_req_masked & (cpuif_addr == 12'h348);
for(int i0=0; i0<4; i0++) begin
decoded_reg_strb.fuse_manuf_dbg_unlock_token[i0] = cpuif_req_masked & (cpuif_addr == 12'h35c + i0*12'h4);
decoded_reg_strb.fuse_manuf_dbg_unlock_token[i0] = cpuif_req_masked & (cpuif_addr == 12'h34c + i0*12'h4);
end
decoded_reg_strb.SS_CALIPTRA_BASE_ADDR_L = cpuif_req_masked & (cpuif_addr == 12'h500);
decoded_reg_strb.SS_CALIPTRA_BASE_ADDR_H = cpuif_req_masked & (cpuif_addr == 12'h504);
Expand Down
18 changes: 9 additions & 9 deletions src/soc_ifc/rtl/soc_ifc_reg_uvm.sv
Original file line number Diff line number Diff line change
Expand Up @@ -4809,54 +4809,54 @@ package soc_ifc_reg_uvm;
this.fuse_fmc_key_manifest_svn.configure(this);

this.fuse_fmc_key_manifest_svn.build();
this.default_map.add_reg(this.fuse_fmc_key_manifest_svn, 'h2c4);
this.default_map.add_reg(this.fuse_fmc_key_manifest_svn, 'h2b4);
foreach(this.fuse_runtime_svn[i0]) begin
this.fuse_runtime_svn[i0] = new($sformatf("fuse_runtime_svn[%0d]", i0));
this.fuse_runtime_svn[i0].configure(this);

this.fuse_runtime_svn[i0].build();
this.default_map.add_reg(this.fuse_runtime_svn[i0], 'h2c8 + i0*'h4);
this.default_map.add_reg(this.fuse_runtime_svn[i0], 'h2b8 + i0*'h4);
end
this.fuse_anti_rollback_disable = new("fuse_anti_rollback_disable");
this.fuse_anti_rollback_disable.configure(this);

this.fuse_anti_rollback_disable.build();
this.default_map.add_reg(this.fuse_anti_rollback_disable, 'h2d8);
this.default_map.add_reg(this.fuse_anti_rollback_disable, 'h2c8);
foreach(this.fuse_idevid_cert_attr[i0]) begin
this.fuse_idevid_cert_attr[i0] = new($sformatf("fuse_idevid_cert_attr[%0d]", i0));
this.fuse_idevid_cert_attr[i0].configure(this);

this.fuse_idevid_cert_attr[i0].build();
this.default_map.add_reg(this.fuse_idevid_cert_attr[i0], 'h2dc + i0*'h4);
this.default_map.add_reg(this.fuse_idevid_cert_attr[i0], 'h2cc + i0*'h4);
end
foreach(this.fuse_idevid_manuf_hsm_id[i0]) begin
this.fuse_idevid_manuf_hsm_id[i0] = new($sformatf("fuse_idevid_manuf_hsm_id[%0d]", i0));
this.fuse_idevid_manuf_hsm_id[i0].configure(this);

this.fuse_idevid_manuf_hsm_id[i0].build();
this.default_map.add_reg(this.fuse_idevid_manuf_hsm_id[i0], 'h33c + i0*'h4);
this.default_map.add_reg(this.fuse_idevid_manuf_hsm_id[i0], 'h32c + i0*'h4);
end
this.fuse_lms_revocation = new("fuse_lms_revocation");
this.fuse_lms_revocation.configure(this);

this.fuse_lms_revocation.build();
this.default_map.add_reg(this.fuse_lms_revocation, 'h350);
this.default_map.add_reg(this.fuse_lms_revocation, 'h340);
this.fuse_mldsa_revocation = new("fuse_mldsa_revocation");
this.fuse_mldsa_revocation.configure(this);

this.fuse_mldsa_revocation.build();
this.default_map.add_reg(this.fuse_mldsa_revocation, 'h354);
this.default_map.add_reg(this.fuse_mldsa_revocation, 'h344);
this.fuse_soc_stepping_id = new("fuse_soc_stepping_id");
this.fuse_soc_stepping_id.configure(this);

this.fuse_soc_stepping_id.build();
this.default_map.add_reg(this.fuse_soc_stepping_id, 'h358);
this.default_map.add_reg(this.fuse_soc_stepping_id, 'h348);
foreach(this.fuse_manuf_dbg_unlock_token[i0]) begin
this.fuse_manuf_dbg_unlock_token[i0] = new($sformatf("fuse_manuf_dbg_unlock_token[%0d]", i0));
this.fuse_manuf_dbg_unlock_token[i0].configure(this);

this.fuse_manuf_dbg_unlock_token[i0].build();
this.default_map.add_reg(this.fuse_manuf_dbg_unlock_token[i0], 'h35c + i0*'h4);
this.default_map.add_reg(this.fuse_manuf_dbg_unlock_token[i0], 'h34c + i0*'h4);
end
this.SS_CALIPTRA_BASE_ADDR_L = new("SS_CALIPTRA_BASE_ADDR_L");
this.SS_CALIPTRA_BASE_ADDR_L.configure(this);
Expand Down

0 comments on commit c48bda8

Please sign in to comment.