We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c570d commit 3fe7815Copy full SHA for 3fe7815
src/isa/riscv_instr.sv
@@ -215,8 +215,12 @@ class riscv_instr extends uvm_object;
215
idx = $urandom_range(0, allowed_instr.size()-1);
216
name = allowed_instr[idx];
217
end else begin
218
- idx = $urandom_range(0, instr_names.size()-1);
219
- name = instr_names[idx];
+ if ( include_category.size() > 0 ) begin
+ return null;
220
+ end else begin
221
+ idx = $urandom_range(0, instr_names.size()-1);
222
+ name = instr_names[idx];
223
+ end
224
end
225
226
if (!std::randomize(name) with {
0 commit comments