ibex icon indicating copy to clipboard operation
ibex copied to clipboard

Cadence simulator plusargs command line argument parsing error

Open sofoslav opened this issue 7 years ago • 2 comments

Verification environment uses SystemVerilog line argument for getting signature address (core_ibex_env_cfg.sv). Value is passed to environment at (makefile) at run_sim step. The problem is Cadence simulator cannot recognize this argument as hexadecimal number:

void'($value$plusargs("signature_addr=%0h", signature_addr));
                    |
ncsim: *E,SYSFMT (ibex/dv/uvm/env/core_ibex_env_cfg.sv,30|24): $value$plusargs --  value found '0x8ffffffc' for plusarg 'signature_addr=' does not match specified format.

This issue can be fixed with something like atohex() SystemVerilog function (this function should be supported by all simulators).

sofoslav avatar Nov 27 '19 15:11 sofoslav

Thanks for this bug report. Would you mind doing a pull request with your suggested change?

imphil avatar Nov 27 '19 15:11 imphil

Yes, I'm gonna to create one. Sorry for late response.

sofoslav avatar Dec 02 '19 10:12 sofoslav