From 13ce44d03f2cf6f04e7411c393306fda08e19183 Mon Sep 17 00:00:00 2001 From: Kunyan Liu Date: Fri, 1 Mar 2024 15:48:33 -0800 Subject: [PATCH] fixed cget_high data alignment --- rtl/cheri_ex.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtl/cheri_ex.sv b/rtl/cheri_ex.sv index 672e7020..2eeb7109 100644 --- a/rtl/cheri_ex.sv +++ b/rtl/cheri_ex.sv @@ -370,7 +370,7 @@ module cheri_ex import cheri_pkg::*; #( begin logic [65:0] tmp66; tmp66 = MemCapFmt ? reg2mem_fmt1(rf_rcap_a, rf_rdata_a) : - {reg2memcap_fmt0(rf_rcap_a), rf_rdata_a}; + {reg2memcap_fmt0(rf_rcap_a), 1'b0, rf_rdata_a[31:0]}; result_data_o = tmp66[64:33]; result_cap_o = NULL_REG_CAP; cheri_rf_we_raw = 1'b1;