Skip to content

Commit 515481d

Browse files
Verilator width resolution
1 parent 3a5588f commit 515481d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rtl/cheri_ex.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ module cheri_ex import cheri_pkg::*; #(
307307
unique case (1'b1)
308308
cheri_operator_i[CGET_PERM]:
309309
begin
310-
result_data_o = {19'h0, rf_fullcap_a.perms};
310+
result_data_o = {20'h0, rf_fullcap_a.perms};
311311
result_cap_o = NULL_REG_CAP; // zerout the cap msw
312312
cheri_rf_we_raw = 1'b1;
313313
cheri_ex_valid_raw = 1'b1;

rtl/cheri_trvk_stage.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module cheri_trvk_stage #(
5757
logic [2:1] range_ok_q;
5858

5959

60-
assign base32 = get_bound33(in_cap_q.base, {2{in_cap_q.base_cor}}, in_cap_q.exp, in_data_q);
60+
assign base32 = 32'(get_bound33(in_cap_q.base, {2{in_cap_q.base_cor}}, in_cap_q.exp, in_data_q));
6161
assign tsmap_ptr = (base32 - HeapBase) >> 3;
6262

6363
/* verilator lint_off WIDTH */

0 commit comments

Comments
 (0)