From 649b0c8f0b58b26105f1dcc4669c0c1a4df5dd8a Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Fri, 8 Nov 2024 13:37:46 +0100 Subject: [PATCH] NF: queue.sum() in constraints Signed-off-by: Ryszard Rozak --- src/riscv_instr_gen_config.sv | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/riscv_instr_gen_config.sv b/src/riscv_instr_gen_config.sv index 9abb1acf..9c5f5380 100644 --- a/src/riscv_instr_gen_config.sv +++ b/src/riscv_instr_gen_config.sv @@ -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) { @@ -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