From da1a486d22e6d2b2bc4e3eef90234863f310e8b1 Mon Sep 17 00:00:00 2001 From: Pagerd <1172482284@qq.com> Date: Thu, 19 Sep 2024 10:05:43 +0800 Subject: [PATCH] fix missing inxflag bug --- riscv_ctg/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv_ctg/generator.py b/riscv_ctg/generator.py index 9f3fc8d0..5e25cf17 100644 --- a/riscv_ctg/generator.py +++ b/riscv_ctg/generator.py @@ -888,7 +888,7 @@ def eval_inst_coverage(coverpoints,instr): if (is_fp_instruction(insn)): insn = "fadd.s" instr_obj = instructionObject(None, insn, None) - ext_specific_vars = instr_obj.evaluate_instr_var("ext_specific_vars", {**var_dict, 'flen': self.flen, 'iflen': self.iflen}, None, {'fcsr': hex(var_dict.get('fcsr', 0))}) + ext_specific_vars = instr_obj.evaluate_instr_var("ext_specific_vars", {**var_dict, 'flen': self.flen, 'iflen': self.iflen, 'inxFlag': self.inxFlag, 'xlen': self.xlen}, None, {'fcsr': hex(var_dict.get('fcsr', 0))}) if ext_specific_vars is not None: var_dict.update(ext_specific_vars)