Skip to content

Commit

Permalink
NF: queue.sum() in constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Dec 20, 2024
1 parent 2dd1e74 commit 649b0c8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/riscv_instr_gen_config.sv
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,6 @@ class riscv_instr_gen_config extends uvm_object;
debug_sub_program_instr_cnt[i] inside {[100 : 300]};
}
}
`ifndef DSIM
main_program_instr_cnt + sub_program_instr_cnt.sum() == instr_cnt;
`else
// dsim has some issue supporting sum(), use some approximate constraint to generate
// instruction cnt
if (num_of_sub_program > 0) {
Expand All @@ -312,7 +309,6 @@ class riscv_instr_gen_config extends uvm_object;
} else {
main_program_instr_cnt == instr_cnt;
}
`endif
}

// Keep the number of single step iterations relatively small
Expand Down

0 comments on commit 649b0c8

Please sign in to comment.