Skip to content

Commit

Permalink
[dv] Fix use of plusargs
Browse files Browse the repository at this point in the history
Previously some $value$plusargs calls weren't explictly specifying a
format for a number to read from the plusarg. Under some simulators this
is acceptable under others it generates an error.
  • Loading branch information
GregAC committed Feb 5, 2024
1 parent d2c3c85 commit 4dc71e6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ class ibex_rand_cpuctrlsts_stream extends riscv_directed_instr_stream;
end

// DIT is Data Independent Timing
if (!$value$plusargs("toggle_dit", toggle_dit)) begin
if (!$value$plusargs("toggle_dit=%d", toggle_dit)) begin
toggle_dit = 1'b0;
end

if (!$value$plusargs("toggle_dummy_instr", toggle_dummy_instr)) begin
if (!$value$plusargs("toggle_dummy_instr=%d", toggle_dummy_instr)) begin
toggle_dummy_instr = 1'b0;
end

if (!$value$plusargs("toggle_icache", toggle_icache)) begin
if (!$value$plusargs("toggle_icache=%d", toggle_icache)) begin
toggle_icache = 1'b0;
end

Expand Down

0 comments on commit 4dc71e6

Please sign in to comment.