diff --git a/hw/dv/sv/dv_base_reg/dv_base_reg_field.sv b/hw/dv/sv/dv_base_reg/dv_base_reg_field.sv index 1e3effa5866806..cb4c6d672d075e 100644 --- a/hw/dv/sv/dv_base_reg/dv_base_reg_field.sv +++ b/hw/dv/sv/dv_base_reg/dv_base_reg_field.sv @@ -149,7 +149,7 @@ class dv_base_reg_field extends uvm_reg_field; begin // Some smoke checking of the byte enables. RTL does not latch anything if not all affected // bytes of the field are enabled. - if (be[(mubi_width+7)/8-1:0] == '1) begin + if (&be[(mubi_width-1)/8:0]) begin // In case this is a clearable MUBI field, we have to interpret the write value correctly. // ICEBOX(#9273): Note that this just uses bitwise functions to update the value and does // not rectify incorrect mubi values. At a later point, we should discuss if and how to