Skip to content

Commit 97df7a5

Browse files
committedMay 26, 2023
Use correct format string for $value$plusargs
Not doing so causes VCS to spit out a warning message. The intention seems to be that the initial call to $value$plusargs will evaluate to true and will put the value that was assigned into the disable_pmp_exception_handler variable, which then gets checked.
1 parent b94ed28 commit 97df7a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎dv/uvm/core_ibex/riscv_dv_extension/ibex_asm_program_gen.sv

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ibex_asm_program_gen extends riscv_asm_program_gen;
5454

5555
riscv_csr_instr::create_csr_filter(cfg);
5656

57-
if ($value$plusargs("disable_pmp_exception_handler", disable_pmp_exception_handler) &&
57+
if ($value$plusargs("disable_pmp_exception_handler=%d", disable_pmp_exception_handler) &&
5858
disable_pmp_exception_handler) begin
5959
cfg.pmp_cfg.enable_pmp_exception_handler = 0;
6060
end

0 commit comments

Comments
 (0)
Please sign in to comment.