Fix simulation warning
@@ -210,14 +210,18 @@ class riscv_instr extends uvm_object;
allowed_instr = {allowed_instr, instr_category[include_category[i]]};
end
foreach (exclude_category[i]) begin
+ if (instr_category[exclude_category[i]].size() > 0) begin
disallowed_instr = {disallowed_instr, instr_category[exclude_category[i]]};
end
+ end
foreach (include_group[i]) begin
allowed_instr = {allowed_instr, instr_group[include_group[i]]};
end
foreach (exclude_group[i]) begin
+ if (instr_group[exclude_group[i]].size() > 0) begin
disallowed_instr = {disallowed_instr, instr_group[exclude_group[i]]};
end
+ end
disallowed_instr = {disallowed_instr, exclude_instr};
if (disallowed_instr.size() == 0) begin
if (include_instr.size() > 0) begin
