Skip to content

Commit cb3448b

Browse files
committed
Update patch
Signed-off-by: Kamil Rakoczy <[email protected]>
1 parent 13ceed8 commit cb3448b

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

uhdm-tests/opentitan/0001-Add-opentitan-patch-for-uhdm.patch

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ index 8637ad221..a3c29e293 100644
701701

702702
// this assertion fails when rspid[0+:STIDW] not in [0..M-1]
703703
diff --git a/hw/top_earlgrey/rtl/autogen/top_earlgrey.sv b/hw/top_earlgrey/rtl/autogen/top_earlgrey.sv
704-
index 2acc14e86..c6aa89066 100644
704+
index 2acc14e86..692284ba3 100644
705705
--- a/hw/top_earlgrey/rtl/autogen/top_earlgrey.sv
706706
+++ b/hw/top_earlgrey/rtl/autogen/top_earlgrey.sv
707707
@@ -239,8 +239,8 @@ module top_earlgrey #(
@@ -731,16 +731,25 @@ index 2acc14e86..c6aa89066 100644
731731
end
732732

733733
// Non-debug module reset == reset for everything except for the debug module
734-
@@ -627,7 +627,7 @@ module top_earlgrey #(
734+
@@ -612,6 +612,8 @@ module top_earlgrey #(
735+
.rst_ni (rstmgr_resets.rst_spi_device_n)
736+
);
737+
738+
+ import flash_ctrl_pkg::*;
739+
+
740+
flash_ctrl u_flash_ctrl (
741+
.tl_i (tl_flash_ctrl_d_h2d),
742+
.tl_o (tl_flash_ctrl_d_d2h),
743+
@@ -627,7 +629,7 @@ module top_earlgrey #(
735744
// Inter-module signals
736745
.flash_o(flash_ctrl_flash_req),
737746
.flash_i(flash_ctrl_flash_rsp),
738747
- .otp_i(flash_ctrl_pkg::OTP_FLASH_DEFAULT),
739-
+ .otp_i(256'hdeadbeefbeeffacedeadbeef5a5aa5a5deadbeef5a5aa5a5deadbeefbeefface),
748+
+ .otp_i(OTP_FLASH_DEFAULT),
740749
.clk_i (clkmgr_clocks.clk_main_infra),
741750
.rst_ni (rstmgr_resets.rst_lc_n)
742751
);
743-
@@ -647,8 +647,8 @@ module top_earlgrey #(
752+
@@ -647,8 +649,8 @@ module top_earlgrey #(
744753
.tl_o (tl_aes_d_d2h),
745754

746755
// [0]: ctrl_err
@@ -751,7 +760,7 @@ index 2acc14e86..c6aa89066 100644
751760

752761
// Inter-module signals
753762
.idle_o(aes_idle),
754-
@@ -666,8 +666,8 @@ module top_earlgrey #(
763+
@@ -666,8 +668,8 @@ module top_earlgrey #(
755764
.intr_hmac_err_o (intr_hmac_hmac_err),
756765

757766
// [1]: msg_push_sha_disabled
@@ -762,7 +771,7 @@ index 2acc14e86..c6aa89066 100644
762771
.clk_i (clkmgr_clocks.clk_main_hmac),
763772
.rst_ni (rstmgr_resets.rst_sys_n)
764773
);
765-
@@ -750,6 +750,8 @@ module top_earlgrey #(
774+
@@ -750,6 +752,8 @@ module top_earlgrey #(
766775
.rst_ni (rstmgr_resets.rst_sys_n)
767776
);
768777

@@ -771,7 +780,7 @@ index 2acc14e86..c6aa89066 100644
771780
pwrmgr u_pwrmgr (
772781
.tl_i (tl_pwrmgr_d_h2d),
773782
.tl_o (tl_pwrmgr_d_d2h),
774-
@@ -759,16 +761,16 @@ module top_earlgrey #(
783+
@@ -759,16 +763,16 @@ module top_earlgrey #(
775784

776785
// Inter-module signals
777786
.pwr_ast_o(),
@@ -792,7 +801,7 @@ index 2acc14e86..c6aa89066 100644
792801
.pwr_cpu_i(pwrmgr_pwr_cpu),
793802
.wakeups_i(pwrmgr_wakeups),
794803
.rstreqs_i('0),
795-
@@ -778,6 +780,8 @@ module top_earlgrey #(
804+
@@ -778,6 +782,8 @@ module top_earlgrey #(
796805
.rst_slow_ni (rstmgr_resets.rst_por_aon_n)
797806
);
798807

@@ -801,7 +810,7 @@ index 2acc14e86..c6aa89066 100644
801810
rstmgr u_rstmgr (
802811
.tl_i (tl_rstmgr_d_h2d),
803812
.tl_o (tl_rstmgr_d_d2h),
804-
@@ -786,9 +790,9 @@ module top_earlgrey #(
813+
@@ -786,9 +792,9 @@ module top_earlgrey #(
805814
.pwr_i(pwrmgr_pwr_rst_req),
806815
.pwr_o(pwrmgr_pwr_rst_rsp),
807816
.resets_o(rstmgr_resets),
@@ -813,7 +822,7 @@ index 2acc14e86..c6aa89066 100644
813822
.scanmode_i (scanmode_i),
814823
.scan_rst_ni (scan_rst_ni),
815824
.clk_i (clkmgr_clocks.clk_io_powerup),
816-
@@ -800,6 +804,8 @@ module top_earlgrey #(
825+
@@ -800,6 +806,8 @@ module top_earlgrey #(
817826
.rst_ni (rst_ni)
818827
);
819828

@@ -822,7 +831,7 @@ index 2acc14e86..c6aa89066 100644
822831
clkmgr u_clkmgr (
823832
.tl_i (tl_clkmgr_d_h2d),
824833
.tl_o (tl_clkmgr_d_d2h),
825-
@@ -812,7 +818,7 @@ module top_earlgrey #(
834+
@@ -812,7 +820,7 @@ module top_earlgrey #(
826835
.clk_aon_i(clkmgr_clk_aon),
827836
.pwr_i(pwrmgr_pwr_clk_req),
828837
.pwr_o(pwrmgr_pwr_clk_rsp),
@@ -831,7 +840,7 @@ index 2acc14e86..c6aa89066 100644
831840
.status_i(clkmgr_status),
832841
.clk_i (clkmgr_clocks.clk_io_powerup),
833842
.rst_ni (rstmgr_resets.rst_por_io_n),
834-
@@ -904,8 +910,8 @@ module top_earlgrey #(
843+
@@ -904,8 +912,8 @@ module top_earlgrey #(
835844
// [2]: imem_uncorrectable
836845
// [3]: dmem_uncorrectable
837846
// [4]: reg_uncorrectable

0 commit comments

Comments
 (0)